Basic Level Blocking


This is the second devlog for my game Last stand and it's on Basic Level Blocking. 

For this checkpoint,  I designed only one level, the world, as this this game is endless survival game. To make this level, I used a tilemap. I used a tilemap set to make a world which can be found here: (Manero, I, 2021).  I also used sprites that are buildings which was obtained and found here: (Hernandack, 2018). I first did the tilemaps by adding it some tiles that are dirt, bushes, path and even some fences, acting as a boundary. I then added in some house sprites and make it look like a ruin village of some kind. I used tilemap collider 2D on tiles like bushes and fences and polygon collider 2D on houses. Player also have a capsule collider 2D.  Player can use these environment to their advantages to quickly manoeuvre their way of zombie's grasp's or slowing them down. 

The world and the collisions is shown below:


In the GIF above, you would have probably noticed that I got a camera to follow the player and the camera doesn't go further past the fence. I created a game object called Virtual Camera and added CinemachineVirtualCamera and made it so it follows the player transform. For the camera not going past the fence, I created a game object called WorldBounds and put on a polygon collider 2D with 'Is Trigger' turned on and change the collider to wrap around the level. I then added Cinemachine Confiner 2D to Virtual Camera and assigned 'Bounding Shape 2D' to WorldBounds. This makes it so camera won't go past the WorldBounds. Alternative approach I considered to make the camera follow the player, was attaching the main camera to the player, which would make the camera automatically follow the player, however it doesn't provide as much flexibility as the cinemachine.

The feedback that I have received are that the level looks nice and liked that there are colliders to the environment. Some mentioned that there were collision issues in the level which I have fixed at the time of writing this and the fences are not properly connected which I know about and was planning on fixing later. It seems that they were pleased with how the level looked. A planned improvement is to expand the world and add more environments so player doesn't have to keeping running in circles, which can make the game boring.


References:

Hernandack. 2018. OpenGameArt.Org. [online] Available at: https://opengameart.org/content/free-reusable-vector-housing-asset [Accessed 25 September 2024]. 

Manero, I. 2021. itch.io. [online] Available at: https://ittaimanero.itch.io/zombie-apocalypse-tileset [Accessed at 16th September 2024].

Files

BasicLevelBlocking.zip Play in browser
51 days ago

Leave a comment

Log in with itch.io to leave a comment.