From ad7b74ddacd3b689b5f35f8d95f5be9c7d1cb416 Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Mon, 28 Sep 2020 19:59:03 +0200 Subject: [PATCH] Converted NES balls example to 32balls. --- src/test/kc/complex/nes-balls/kickballs-2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/kc/complex/nes-balls/kickballs-2.c b/src/test/kc/complex/nes-balls/kickballs-2.c index 7654894a5..98d2a84ec 100644 --- a/src/test/kc/complex/nes-balls/kickballs-2.c +++ b/src/test/kc/complex/nes-balls/kickballs-2.c @@ -1,9 +1,9 @@ #pragma target(nes) -#pragma emulator("java -jar /Applications/Nintaco_bin_2020-05-01/Nintaco.jar") +//#pragma emulator("java -jar /Applications/Nintaco_bin_2020-05-01/Nintaco.jar") #include #include -#define MAX_BALLS 50 +#define MAX_BALLS 32 #define WEIGHT 0x0010 #define RELEASE_TIMER 0x09 @@ -66,7 +66,7 @@ int main(void) // Enable vertical blank interrupt, select sprite pattern table 1 PPU->PPUCTRL = 0b10001000; - unsigned int i; + unsigned char i; unsigned char active_balls = 0; unsigned char timer = 0; unsigned char timer_2 = 0;