Devlog 03 - Day/Night Cycle, Collision Detection, Inventory and more!


Welcome back!

This week I had a little bit of time and added some basic, but important features to the game. First of all I made the height of the terrain based on height maps and made a way to find out the height of the map for a specific x and z coordinate.


After that I added GUIs to the game and created a very basic inventory. Right now you can move around with the items in your inventory and you can also drop them out of your inventory, but they will appear on the ground only in some later update. Right now your dropped items just get lost.

The next big feature I added was a day/night cycle with a moving sun object and light source and also a skybox that also changes from day to night texture. The skybox will probably be removed later, but right now it just looks cool enough to leave it there for now. 

The most important feature I added this week to the game is the collision detection. Right now all objects that have collision enabled can have 1 or more collision boxes. These boxes determine the regions of the object where player can't move.  Right now the player also has a cuboid collision box, but I might change it later to an ellipsoid form.

The last big feature is a basic map editor that can be enabled or disabled by pressing the m key.  This editor right now allows only to place objects on the ground and outputs a line to the console. By copying this line to the maps file, we can add it to the map and it will act as a fully functional object when we start the game next time.

And this brings us to the last things I want to mention in this post. The smaller features that I'm not going to write a lot about are loading the map from a text file, 3rd person camera view, multiple light sources and some smaller improvements to the method of rendering the objects and their textures.

Thanks for reading, hit a like if you liked this weeks updates and don't forget to come back next week, when I add more new features to the game.

Files

The Zombie Apocalypse.exe 51 MB
Feb 16, 2020

Get The Zombie Apocalypse Game

Buy Now$1.00 USD or more

Leave a comment

Log in with itch.io to leave a comment.