Basic Blocking
Level Blocking
For the layout of the level, I’ve used lava from here OpenGameArt.Org (Derio 2017). The sprites for the platforms were taken from OPenGameArt.Org (Nowaczyck 2014). The level starts with the player dropping from above and landing on the starting platform. This will be timed to disappear. This object has a 2D box collider and a 2D Rigid Body. It also has a script attached to make the platform disappear. I’ve set this to a timer of 5 seconds. In the script, it uses the Invoke statement (Unity, n.d.)
I’ve created two prefabs for the platforms; SpinningPlatform and StaticPlatform. The idea is that the game will spawn a combination of spinning and static platforms for the player to jump to. Each prefab has a 2D Box collider and 2D rigidBody. The Spinning Platform prefab also contains a Script to make the platform spin. And the speed of the spin is a public float so that it can be changed. These platforms will randomise across the screen. The spawner game object also includes a statement so that they don’t appear over each other, however this currently doesn’t seem to work (GIF below).
These platforms are designed to challenge the player so they can time their jumps between to platforms to try and stay within the game for as long as possible. The idea is that these platforms will also be timed and gradually increase in spinning speed and the time they appear for will vary.
To the left and right of the screen are empty game object with a 2D box collider attached. These act as a buffer to the player, so they stay within the confines of the game world.
Feedback from the other students was generally positive. Someone did make mention of a possible glitch. What happened is in the current build, there is a wrap around for when the player hits the lava, they automatically return to the top of the game world. However, if the player doesn’t hit a platform, they player just goes into a constant loop through the game world (GIF below). This makes it look like a jitter or glitch. This was just an interim measure until I worked on adding a game over screen once the player hits the lava.
References
Unity, N.d. MonoBehaviour.Invoke. Unity. https://docs.unity3d.com/ScriptReference/MonoBehaviour.Invoke.html
Nowaczuck, M. 2014. 2D Platform Ground Stone Tiles. https://opengameart.org/content/2d-platform-ground-stone-tiles
Derio. 2017. Lava River. https://opengameart.org/content/lava-river
Files
Don't Touch The Lava
More posts
- User GuideMay 31, 2024
- Game UpdatesMay 30, 2024
- Game TestingMay 29, 2024
- User InterfaceMay 25, 2024
- Graphics and AnimationsMay 18, 2024
- Enemies and InteractionsMay 12, 2024
- Player MovementApr 27, 2024
- Game Concept - Don't Touch The LavaApr 18, 2024
Leave a comment
Log in with itch.io to leave a comment.