Skip to content

Commit f355f61

Browse files
committed
Fixing number of mobs spawned due to memory limits
1 parent 0ea526d commit f355f61

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

source/game_loop.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ void gameloop::populate_cave_moniez() {
130130

131131
int last_placement = 3;
132132

133-
int gold_bars_left = 8;
134-
int rubies_left = 8;
135-
int rocks_left = 8;
136-
int jars_left = 8;
133+
int gold_bars_left = 6;
134+
int rubies_left = 6;
135+
int rocks_left = 4;
136+
int jars_left = 4;
137137
int chests_left = 3;
138-
int crates_left = 3;
138+
int crates_left = 2;
139139

140140
std::cout << '\n' << '\n';
141141

@@ -285,10 +285,10 @@ void gameloop::populate_cave_npcs() {
285285

286286
int last_placement = 3;
287287

288-
int bats_left = 5;
288+
int bats_left = 4;
289289
int damsels_left = 1;
290-
int spiders_left = 5;
291-
int snakes_left = 5;
290+
int spiders_left = 4;
291+
int snakes_left = 4;
292292
int spikes_left = 4;
293293
int cavemen_left = 3;
294294

source/sprites/main_dude/main_dude.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ void MainDude::handle_key_input() {
124124
if (global::game_state->in_main_menu && !global::game_state->exiting_game) {
125125
if (y <= 100) {
126126
global::game_state->exiting_game = true;
127-
// exit(0);
128127
}
129128
}
130129

spelunkyds.elf

0 Bytes
Binary file not shown.

spelunkyds.nds

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)