Browse Source

fix: newborn rats are now stunned for 1 second to avoid overlapping with parents

master
Matteo Benedetto 3 days ago
parent
commit
c7f3c996e8
  1. 3
      src/rat.c

3
src/rat.c

@ -98,7 +98,8 @@ void spawn_rat(uint8_t x, uint8_t y, uint8_t initial_dir) {
rats[i].pixel_x = x * 8;
rats[i].pixel_y = y * 8;
rats[i].reproduce_timer = 0;
// Il nuovo ratto resta fermo 1 secondo (60 frame) alla nascita usando lo stesso timer
rats[i].reproduce_timer = 60;
rats[i].cooldown_timer = 120; // Il cucciolo non si riproduce subito
rats[i].is_mother = 0;
play_sfx_plop(); // Suono di nascita!

Loading…
Cancel
Save