The HUD and minimap
Today we have to turn in our game-play for dinocalypse. We have been working hard all week to have the functionality in. Sound Effect integration went nice and smooth. The AudioManager was ready and had all the functionality to make all the music and sounds work with the game. After integrating that, I took ever the HUD and the minimap. The HUD was pretty straight forward, and didn’t present many problems, it was just a matter of tedious work to get everything to render in the right place.
The minimap on the other hand, presented a bit more of a challenge. For some reason our exporter was inverting the Z-axis, and everything in the world is mirrored. All the objects that are supposed to be on the left of the map are on the right and vice versa.
To show that the player is taking damage, I made 3 red semi-transparent images, each with more red than the previous and getting closer to the center. When the player starts taking damage, I overlap these textures on top of each other to simulate a gradient of hurt levels. I can detect what the level of ‘hurt’ is, and communicate this to the player by making the screen more red or less red.
This is the second iteration of the HUD. A little has changed. The player hurt images arent crayon drawn anymore.
0 Comments