Battle Blocks
FJ Hagen
Game Programmer
Charge Prototype
I made this prototype based on the nominated, but ultimately not selected theme for Ludum Dare 48, "You are the power source". My goal was to create a game with systems that make level creation more streamlined. Designers can create levels with minimal configuration. I hope to expand on this idea in the future.
Level Manager
This code checks if all the chargers in a level are charged. If they are, it loads the next level after a short delay.
Charger
For each charger, this code checks if it's close enough to the player and nothing is blocking it. If it's close enough to the player, it charges with yellow lines representing the charge. Similar logic applies to the generators.
Switch
The switch blueprint allows a designer to set which platform to move as well as its beginning and ending position/rotation. The platform transitions to each position and rotation over a two second interval.