mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-29 18:49:42 +00:00
Converted NES balls example to 32balls.
This commit is contained in:
parent
79484c4b37
commit
ad7b74ddac
@ -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 <nes.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#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;
|
||||
|
Loading…
Reference in New Issue
Block a user