top of page
Search

My Adventure game

  • Writer: Randel Mezi
    Randel Mezi
  • Jun 20, 2024
  • 1 min read

Updated: Jul 1, 2024

This week, I focused on implementing enemy movement, player damage, enemy shooting, player knockback, and player health. As a result, the Ectorok enemy can now move and shoot. When shooting, it stops, and every time my player gets hit by the enemy, he experiences knockback in the same direction he is walking. My player starts with 100 health and loses 10 health every time he gets hit by the enemy, accompanied by a red flashing effect.

This is my enemy movement code

This is my Player Knockback, and Player Health code


 
 
 

Comentários


bottom of page