Skip to content

Commit

Permalink
Add scoring SFX for players 3 and 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroldo de Oliveira Pinheiro committed Dec 11, 2021
1 parent b8982bd commit 523f2ac
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ OBJS := data.rel actor.rel chicken_crossing.rel
all: $(PRJNAME).sms

data.c: data/* data/sprites_tiles.psgcompr data/background_tiles.psgcompr \
data/player_1_score.psg data/player_2_score.psg
data/player_1_score.psg data/player_2_score.psg data/player_3_score.psg data/player_4_score.psg
folder2c data data

data/sprites_tiles.psgcompr: data/img/sprites.png
Expand Down
4 changes: 2 additions & 2 deletions chicken_crossing.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void handle_player_input() {
}
}
player_knockback(player3);
check_player_reached_top(player3, score3, player_1_score_psg);
check_player_reached_top(player3, score3, player_3_score_psg);

// Player 4
if (!player4->state) {
Expand All @@ -193,7 +193,7 @@ void handle_player_input() {
}
}
player_knockback(player4);
check_player_reached_top(player4, score4, player_2_score_psg);
check_player_reached_top(player4, score4, player_4_score_psg);
}

void adjust_facing(actor *act, char facing_left) {
Expand Down
Binary file added data/deflemask/player_3_score.dmf
Binary file not shown.
Binary file added data/deflemask/player_3_score.vgm
Binary file not shown.
Binary file added data/deflemask/player_4_score.dmf
Binary file not shown.
Binary file added data/deflemask/player_4_score.vgm
Binary file not shown.
Binary file added data/player_3_score.psg
Binary file not shown.
Binary file added data/player_4_score.psg
Binary file not shown.

0 comments on commit 523f2ac

Please sign in to comment.