norm
This commit is contained in:
parent
041bce2981
commit
da5f45a32e
2 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
# define FPS 30 // Number of frames per second (bonus only)
|
# define FPS 30 // Number of frames per second (bonus only)
|
||||||
# define NOBONUS_SPEED 500 // Number of calls to timedloop for one frame
|
# 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 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
|
# define ROT_SPEED_DIVIDE_PI 32 // Player turns by pi/N rad by tick
|
||||||
|
|
|
@ -40,6 +40,7 @@ int hook_buttonpress(int button)
|
||||||
{
|
{
|
||||||
static const t_point_int window_middle = {
|
static const t_point_int window_middle = {
|
||||||
SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2};
|
SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2};
|
||||||
|
|
||||||
if (button == Button1)
|
if (button == Button1)
|
||||||
{
|
{
|
||||||
g_intercept_mouse = !g_intercept_mouse;
|
g_intercept_mouse = !g_intercept_mouse;
|
||||||
|
|
Loading…
Add table
Reference in a new issue