Skip to content
Permalink
Browse files

updated game code

  • Loading branch information...
brovador committed Jul 19, 2015
1 parent d2de7df commit 4a2d04c425eae87256bda65d44c6e3369d0793fa
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/game.c
@@ -42,10 +42,9 @@ void main(void)
palette += 1 & (0x0 - ((pad & PAD_A) && 1));
palette -= 1 & (0x0 - ((pad & PAD_B) && 1));


//Poll for arrow movement
pad = pad_poll(0);


x -= POINTER_SPEED & (0x0 - (pad & PAD_LEFT && x >= 2));
x += POINTER_SPEED & (0x0 - (pad & PAD_RIGHT && x < (SCREEN_WIDTH - POINTER_SIZE)));
y -= POINTER_SPEED & (0x0 - (pad & PAD_UP && y >= 2));

0 comments on commit 4a2d04c

Please sign in to comment.
You can’t perform that action at this time.