ludum-dare-22/objects/obj_player/Destroy_0.gml

22 lines
398 B
Plaintext
Raw Normal View History

if global.life > 0
{
instance_create(room_width/2,room_height/2,obj_player)
}
else
{
global.death = true
if (instance_exists(obj_spirit) ) {
with (obj_spirit) {
instance_destroy();
}
}
}
global.life -= 1
global.mult = 1
global.bombs = 2
with (obj_enemymanager)
instance_destroy()
instance_create(x,y,obj_bombeffect)
global.timeout = 15