Nimbin[12]?Games / Entropie / entropie/src/game/player.h

Entropie git · main

Entropie festival game; first steps

sdl c game entropie cmake · first commit 2026-10-10 · last commit 2026-11-02 (18 hours ago) · synced 10 hours ago

C 88.5% Markdown 9.1% GLSL 2.3%
git clone https://git.christianimmanuel.de/games/Entropie.gitwget https://git.christianimmanuel.de/games/Entropie/archive/Entropie.tar.gz
entropie/src/game/player.h 395 B · 15 lines raw
#ifndef GAME_PLAYER_H
#define GAME_PLAYER_H

/* Turns input into player movement relative to the camera. */

#include "core/input.h"
#include "world/object.h"
#include "render/camera.h"

#define PLAYER_EYE_HEIGHT 1.62f

/* Hold Shift to jog; tap it again and again to sprint. */
void Player_update(Object *player, const Input *input, const Camera *camera, float dt);

#endif /* GAME_PLAYER_H */