aboutsummaryrefslogtreecommitdiff
path: root/src/c/shell
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2022-06-29 01:52:48 +0200
committerAleksa Vučković <aleksav013@gmail.com>2022-06-29 16:44:25 +0200
commit1f57e99720c4bc5e3e27a88ff469cef43c202a43 (patch)
tree8161bd72d272009a520dd173eac3658a48a9f096 /src/c/shell
parent58240b0509d11b09ce2994b88308650e7cfb93bd (diff)
HigherHalf
Diffstat (limited to 'src/c/shell')
-rw-r--r--src/c/shell/game.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/c/shell/game.c b/src/c/shell/game.c
index ce7793b..9e7323e 100644
--- a/src/c/shell/game.c
+++ b/src/c/shell/game.c
@@ -56,8 +56,8 @@ void game_keyboard_handler(uint16_t keycode)
void game_init(void)
{
- x=VGA_WIDTH/2;
- y=VGA_HEIGHT/2;
+ x=(uint16_t)VGA_WIDTH/2;
+ y=(uint16_t)VGA_HEIGHT/2;
game_time=0;
game_tick=0;
duzina=1;
@@ -80,7 +80,7 @@ void game_timer_handler()
{
case 1:
if(y>0) y--;
- else y=VGA_HEIGHT-1;
+ else y=(uint16_t)VGA_HEIGHT-1;
break;
case 2:
if(y<VGA_HEIGHT-1) y++;
@@ -88,7 +88,7 @@ void game_timer_handler()
break;
case 3:
if(x>0) x--;
- else x=VGA_WIDTH-1;
+ else x=(uint16_t)VGA_WIDTH-1;
break;
case 4:
if(x<VGA_WIDTH-1) x++;