mouse button rotation + minor fixes

This commit is contained in:
2023-08-08 02:22:51 -04:00
parent d5d5b3530d
commit 8ed66cfba8
4 changed files with 29 additions and 6 deletions

View File

@ -25,14 +25,16 @@ update_f(struct CRotation* self)
if
(
keyboard_held(&game.keyboard, KEYBOARD_LEFT) ||
keyboard_held(&game.keyboard, KEYBOARD_A)
keyboard_held(&game.keyboard, KEYBOARD_A) ||
mouse_held(&game.mouse, MOUSE_LEFT)
)
self->velocity += self->speed;
if
(
keyboard_held(&game.keyboard, KEYBOARD_RIGHT) ||
keyboard_held(&game.keyboard, KEYBOARD_D)
keyboard_held(&game.keyboard, KEYBOARD_D) ||
mouse_held(&game.mouse, MOUSE_RIGHT)
)
self->velocity -= self->speed;

View File

@ -428,10 +428,7 @@ void
play_update_f(struct Play* self)
{
if (keyboard_press(&game.keyboard, KEYBOARD_P))
{
game.isPaused = !game.isPaused;
printf("???\n");
}
if (game.isPaused)
return;

23
src/h Normal file
View File

@ -0,0 +1,23 @@
[?1049h[?1h=]11;?[?2004h[?u[?25h[?25l
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
(BGAME 0,0-1 All[2 q[2 q[?1002h[?1006h[?25h[?25l[?1004h[?25h