Add project code

This commit is contained in:
Andrew Trieu
2025-04-20 15:57:23 +03:00
committed by Andrew Trieu
commit 3fbd0e4977
612 changed files with 11196 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
get_damaged(o_parent_hurt, false, false);
var _health_pct = 1 - (hp / max_hp);
image_index = _health_pct * (image_number - 1);
if hp <= 0 {
instance_create_depth(x, y, -1000, o_explosion);
audio_play_sound(explosion, 0, false);
create_screen_pause(12);
camera_shake(12);
instance_destroy();
}