summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-11-28 14:41:22 +0100
committerGitHub <noreply@github.com>2025-11-28 14:41:22 +0100
commit9c05c795d7b59c5ab94fb769f315c712b37df0cd (patch)
tree16cccf8cbb88703de798066a06f94013f89a8a5a /src/game.cpp
parentf8b92ce3aa08b1445c9f956d8166830946562d12 (diff)
parent3e094f20d4dda90e0356aba3f0abc4b7c7015844 (diff)
Merge pull request #1 from navewindre/windows-compat
Windows compat
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index bd3c4c8..285f288 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -120,6 +120,7 @@ void game_main_loop( GAME_DATA* game ) {
gl_beginframe( gl );
gl_2d_frect( gl2d, s_tl(), s_br(), { 0.f, 0.f, 0.f, 1.f } );
+ player_input( game, objl->pl );
if( game->state.ingame ) {
game_on_tick( game );
@@ -139,7 +140,7 @@ void game_main_loop( GAME_DATA* game ) {
void game_on_tick( GAME_DATA* game ) {
U64 tick = u_tick();
if( tick - game->state.last_tick > (U64)(TICK_INTERVAL * 10000) ) {
- player_input( game, objl->pl );
+ player_move( game, objl->pl );
game->state.last_tick = tick;
}
}