scr_gameoverfunction
scr_gameover()
{
if (global.chapter == 2)
{
if (room == room_dw_mansion_b_west_2f)
global.tempflag[33]++;
if (room == room_dw_mansion_east_4f_d && i_ex(obj_queen_enemy))
{
global.hp[1] = global.maxhp[1];
global.hp[2] = global.maxhp[2];
global.hp[3] = global.maxhp[3];
scr_tempsave();
}
if (i_ex(obj_spamton_neo_enemy))
global.tempflag[37]++;
}
if (
global.flag[35 gameover_mode] == 0)
{
audio_stop_all();
snd_play(snd_hurt1);
global.screenshot = sprite_create_from_surface(application_surface, 0, 0, __view_get(e__VW.WView, 0), __view_get(e__VW.HView, 0), 0, 0, 0, 0);
snd_free_all();
room_goto(
room_gameover );
}
if (
global.flag[35 gameover_mode] == 1)
{
global.turntimer = -1;
global.flag[36 dojo_failure] = 1;
global.flag[39 dojo_abort?] = 1;
}
if (
global.flag[35 gameover_mode] == 2)
{
audio_stop_all();
snd_play(snd_hurt1);
snd_free_all();
global.entrance = 0;
global.tempflag[9] = 1;
global.fighting = 0;
global.interact = 0;
global.hp[0] = 1;
global.hp[1] = 1;
global.hp[2] = 1;
global.hp[3] = 1;
__room = room;
if (global.chapter == 2)
{
with (instance_create(0, 0, obj_persistentfadein))
image_alpha = 1.2;
}
room_goto(__room);
}
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
}