GoedWare Game Jam #6 DevLog


This is my first time making a videogame and participating in a Jam, but i have some experience programming, so i found some issues to solve while i was developing the videogame inside Unity.

- The firt issue that i found was the alpha management of the Image with the progression of the healthbar, i need that the image of the Human start disolving according the healthbar, and at the same time, i want that the Zombie image start appearing while the Human image was disolving. 

I have to play with the RENDERER and COLOR data, first declaring the "Renderer hum, zomb;" and then a  "Color newcolorH;" and "Color newcolorZ;".

Then i have to add "newcolorH = hum.material.color;" and "newcolorZ = zomb.material.color;" and also have to say that "newcolorH.a = 1.0f;" and "newcolorZ.a = 0.0f;"

And finally at the healthbar analysis "newcolorH.a = human / 100;" and "newcolorZ.a = zombie / 100;", human is the normal state of the healthbar, decresing, while the zombie data of the healtbar is growing, so the alpha of the human is going from 1 to 0, and zombie alpha from 0 to 1.

- The second issue was the handle of the animations with the mouse click and also the Audio play, i need that some animations starts after a mouse click, and i didn't know how to solve it. 

I have to declare "public Animation ani;" and "public AudioSource snd;" in a new Script called "Animations", and then make a function called "StartAnimation" and there i put "ani.Play();" and "snd.Play();".

 After solving this i felt very dumb, because i found it was very simple hehehe. Went to Unity and put the objects that contains the animation and sound in place, and it worked fine.

And thats it, the game took me like 3 days of working, between my work free time and night time, and i thisnthe final result is very nice hehe


For the Images that i used in the project, heres the copyright for it

Cellphone: pikisuperstar de Freepick

Boss Face: brgfx de Freepick

Intro Images: upklyak de Freepick

Office and Zombies: vectorpocket de Freepick

Human Face: upklyak de Freepick

Files

GAME.zip 33 MB
Oct 02, 2022

Get Get a Job

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.