summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-09-28 02:45:10 +0200
committernavewindre <boneyaard@gmail.com>2025-09-28 02:45:10 +0200
commit0db9c91742a6ab17c3d8a8b86a34392c1797740b (patch)
treec3b2595722f601c61b342cc470e9e7f8a13891d0 /src/game.cpp
parentae694bc0da98e45c5def20ac1d92f9d8aad65fd5 (diff)
input bettr
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;
}
}