This commit is contained in:
mcolonna 2024-11-21 16:21:44 +01:00
parent 041bce2981
commit da5f45a32e
2 changed files with 2 additions and 1 deletions

View file

@ -19,7 +19,7 @@
# define FPS 30 // Number of frames per second (bonus only)
# define NOBONUS_SPEED 500 // Number of calls to timedloop for one frame
// (mandatory only)
// (mandatory only)
# define MOVE_SPEED 0.1 // Player oves by N cases by tick
# define ROT_SPEED_DIVIDE_PI 32 // Player turns by pi/N rad by tick

View file

@ -40,6 +40,7 @@ int hook_buttonpress(int button)
{
static const t_point_int window_middle = {
SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2};
if (button == Button1)
{
g_intercept_mouse = !g_intercept_mouse;