itch.io is community of indie game creators and players

Devlogs

A simple health system

UTAS KIT207 Portfolio
A browser game made in HTML5

This log is about a simple health value system. The main functional script is on the player, which calculates the player's health value from collisions with enemies and transfers it to the UI component on the left side of the screen.

GIF 1 shows that when an enemy touches the hero, the hero lost 1 point of health. at the same time the enemy will be destroyed! Sadness: (

GIF 2 shows that the hero will die too, he will disappear when his health goes to zero.

GIF 3, the sacred statue gives the hero strength and replenishes his health (50 is full).


Using scripts from KIT207 Week4.

Download UTAS KIT207 Portfolio
Leave a comment