RogerW

Ludum Dare 54

Atrocious code I wrote for LD54

Unsquished Smallest.gif

 For LD54, we made Unsquished, a 2-minute arcade rhythm-ish game where you punch the walls that are closing in on you! I learned Godot for this jam and wrote some pretty unmaintainable code. Find it all below:

 

We wanted to spawn spike traps at the player position, but add small random offset to not be completely determined. This random offset for x and y has a distribution equivalent to rolling 5 d41 dice that have faces from -20 to 20: badcode1.png

 

For spawning special trap formations right before beat drops in the song (the spawn time is 2 seconds): badcode2.png

 

Spike trap warning blink and SFX before spawning (please don't cancel me): badcode3.png

 

Manually setting the z-index changes the metal walls badcode4.png

to spawn looking like this: badcode4ex2 smaller.png

instead of this: badcode4ex1.png

 

The entire leaderboard is in one text box! badcode5.png

badcode5ex.png

 

See the source code for yourself here: https://github.com/Compsciler/Unsquished