Skip to content

Commit

Permalink
Tune C64 version
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrizio-Caruso committed Dec 5, 2020
1 parent a70415d commit a61377b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.snake
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ c64: $(ASSETS_PATH)/cc65_udc.s
--config $(CFG_PATH)/cc65/c64_GFXat0xC000.cfg \
-DCBM_SCREEN_CODES \
-DMEMORY_MAPPED \
-DSLOW_DOWN=2000 \
-DSLOW_DOWN=800 \
$(CROSS_LIB_PATH)/sound/cc65/sid/sid_sounds.c \
$(ASSETS_PATH)/cc65_udc.s \
$(CROSS_LIB_PATH)/display/init_graphics/cc65/c64/c64_init_graphics.c \
Expand Down
8 changes: 4 additions & 4 deletions src/games/snake/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ static uint8_t energy;


#define IF_POSSIBLE_INCREASE_SPEED() \
if(slow_down>SLOW_DOWN/50) \
if(slow_down>SLOW_DOWN/40) \
{ \
slow_down -= SLOW_DOWN/50; \
slow_down -= SLOW_DOWN/40; \
} \
else \
{ \
Expand All @@ -129,7 +129,7 @@ static uint8_t energy;

#define INIT_APPLE_COUNT 10

#define INIT_APPLES_ON_SCREEN 3
#define INIT_APPLES_ON_SCREEN 4

#define APPLE_COUNT_INCREASE 5

Expand Down Expand Up @@ -379,7 +379,7 @@ int main(void)

build_level(level);

for(i=0;i<INIT_APPLES_ON_SCREEN;++i)
for(i=0;i<INIT_APPLES_ON_SCREEN+level/4;++i)
{
spawn(APPLE, &APPLE_IMAGE);
}
Expand Down

0 comments on commit a61377b

Please sign in to comment.