Skip to content

Commit

Permalink
fix point repaints
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmolina committed May 24, 2019
1 parent e005623 commit d145448
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions logic.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void reset_map() {
}

}

sp1_PrintAtInv(0, 19, INK_RED | PAPER_BLACK, 'P');
sp1_PrintAtInv(0, 20, INK_RED | PAPER_BLACK, 'O');
sp1_PrintAtInv(0, 21, INK_RED | PAPER_BLACK, 'I');
Expand All @@ -28,6 +28,9 @@ void reset_map() {
sp1_PrintAt(0, 4, INK_RED | PAPER_BLACK, 'V');
sp1_PrintAt(0, 5, INK_RED | PAPER_BLACK, 'E');
sp1_PrintAt(0, 6, INK_RED | PAPER_BLACK, 'S');
// as points are restored...
remaining_points = 238;

}

void show_cherry() {
Expand Down Expand Up @@ -297,7 +300,6 @@ void next_level() {
zx_border(INK_BLUE);
bit_beepfx_di_fastcall(BEEPFX_SCORE);
zx_border(INK_BLACK);
remaining_points = 238;
reset_map();
nampac_go_home();
all_ghosts_go_home();
Expand Down
1 change: 0 additions & 1 deletion msnampac.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ void all_lives_lost() {
speed = 5;
nampac_go_home();
repaint_lives = 1;
remaining_points = 238;

ghost_red.offset = GHOST_RED;
ghost_red.currentoffset = GHOST_RED;
Expand Down

0 comments on commit d145448

Please sign in to comment.