Skip to content

Commit df62a78

Browse files
Cool-down is maxed if hit by balloon
1 parent ec8e3d6 commit df62a78

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

games/befana/befana.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ extern uint8_t MUSIC_ON;
144144
#define BEFANA_MAX_Y 214
145145

146146

147-
#define GIFT_ENERGY 25
147+
#define GIFT_ENERGY 20
148148

149149
#define LEVEL_DISTANCE 100U
150150

@@ -153,7 +153,7 @@ uint8_t forward_thrust;
153153
uint8_t accelleration;
154154
uint8_t cool_down;
155155

156-
#define MAX_COOL_DOWN 250
156+
#define MAX_COOL_DOWN 254
157157

158158
#define BOOST_DURATION 12
159159
#define BOOST_THRESHOLD 7
@@ -804,7 +804,7 @@ void init_player(uint8_t sprite_index)
804804
// SPRC[BEFANA_INDEX] = PINK;
805805

806806
SPRX[sprite_index] = 30;
807-
SPRY[sprite_index] = 50;
807+
SPRY[sprite_index] = 100;
808808
SPRC[sprite_index] = RED;
809809
SPRM[sprite_index] = 1;
810810

@@ -1778,6 +1778,10 @@ void handle_balloon_collision(void)
17781778
decrease_energy(BALLOON_DAMAGE);
17791779
freeze=FREEZE_DAMAGE;
17801780
display_energy();
1781+
if(cool_down>1)
1782+
{
1783+
cool_down=MAX_COOL_DOWN;
1784+
}
17811785
}
17821786
}
17831787
}

0 commit comments

Comments
 (0)