Sadayoshi Entertainment

Home » Grimoire Bullet » Work – 1/23/2017

Work – 1/23/2017

I continue work on my new Level Generator for my game. It was working pretty well, up until I developed an infinite loop, which is never a good thing.

I’ve spent today working through the cause of the loop. It’s because the SpawnRoom function only spawns rooms if “roomsSpawned IS LESS THAN numRoomsInLevel“. But “roomsSpawned EQUALS numRoomsInLevel” by the time I’m trying to spawn additional treasure rooms, meaning no treasure rooms get spawned and we’re stuck in an infinite loop.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: