Working on Hud – Trowl Robert Gustavsson

So before i start talking about what i am working on i should probably explain what our game is. Our game is Trowl, a game about an owl that has chosen the unfortunate place of a train to put her nest ontop on. so when the train started the owl and her children the owlets flew all across the train and got spread around everywhere.

So your job as the owl mother is to go across the train and rescue the owlets and avoid the other birds that are flying in the air.

Stressmeter

i tasked myself with working on the Hud for the game, more specifically i have been working on the stressmeter for the game. The owl in this game is getting more and more stress while being away from her children and also gets stress when being attacked by other birds. so we needed a meter to keep track of the stress of the owl and an effective way to convey to the player that it is a bad thing that the stressmeter is filling up because when the stressmeter is maxed out you lose the game. So during our meeting with markus we came up with many different ways of conveying this. for example you could do it like you have a visual heart that starts beating faster when the stressmeter goes up. another way is to have the owl start sweating and maybe make it look like the owl is having a harder time in flying forward.

So to start implementing the stressmeter in our game i had a graphic ready from the graphics people in our group that looked a little like this.

So to make this fill up i made another sprite which basically was a red sqaure that i need to stretch to fit the stressmeter we have and i need to increase the width with the amount of stress we have in the game real time.

so i made the variable named bar and tried to make it work using

bar->width = stress;

but first i drew both of the sprites ontop of eachother in the top left corner. but for some reason i cant draw them both i only get the stressbar or i only get the red square.

but i will keep trying to get it to work and will let you know how it went in the next blog post.

 

 

 

About Robert Gustavsson

2015 Programming