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: Logo

You are commenting using your 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 )

Connecting to %s


redbubble.png   YouTube-logo-full_color   Tumblr_Logo.svg   ko-fi_horizontal.png
Follow Sadayoshi Entertainment on
%d bloggers like this: