2020-12-06 19:00:27 +01:00
|
|
|
if (room != rOver and room != rWin) {
|
2020-12-06 17:05:26 +01:00
|
|
|
draw_rectangle_color(1280,0,display_get_gui_width(),96,c_black,c_black,c_black,c_black,false);
|
|
|
|
draw_text(1312,72,"map");
|
2020-12-06 17:54:25 +01:00
|
|
|
draw_rectangle_color(0,0,display_get_gui_width() - 1280,96,c_black,c_black,c_black,c_black,false);
|
|
|
|
draw_sprite_ext(sSwordh,global.weapon, 0,0,2,2,1,c_white,1);
|
|
|
|
draw_text(16,72,"weapon");
|
2020-12-06 23:05:18 +01:00
|
|
|
draw_text(display_get_gui_width()/2,display_get_gui_height() - 32,"Attack : J");
|
|
|
|
draw_text(800,16,"vie : " + string(oPlayer.pv));
|
2020-12-06 16:25:20 +01:00
|
|
|
|
2020-12-06 18:37:38 +01:00
|
|
|
for (i = 0; i < 4; i++)
|
|
|
|
{
|
|
|
|
for(j = 0; j < 4; j++)
|
|
|
|
{
|
|
|
|
draw_text(i*16 + 1300,j*16 + 600,tableau[i, j]);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2020-12-06 16:25:20 +01:00
|
|
|
|
2020-12-06 17:05:26 +01:00
|
|
|
for (i = 0; i < 4; i++)
|
2020-12-06 16:25:20 +01:00
|
|
|
{
|
2020-12-06 17:05:26 +01:00
|
|
|
for(j = 0; j < 4; j++)
|
|
|
|
{
|
|
|
|
if (i = posX and j = posY) draw_text(i*16 + 1300,j*16,"o");
|
|
|
|
else draw_text(i*16 + 1300,j*16,"-");
|
|
|
|
}
|
2020-12-06 16:25:20 +01:00
|
|
|
}
|
|
|
|
|
2020-12-06 23:05:18 +01:00
|
|
|
if (!global.perdu) draw_text(320,16, "timer" + string(global.minutes) + " : " + string(global.secondes));
|
2020-12-06 17:05:26 +01:00
|
|
|
else draw_text(160,16, "PERDU");
|
|
|
|
|
2020-12-06 14:59:53 +01:00
|
|
|
|
2020-12-06 20:37:08 +01:00
|
|
|
// draw_text(480,16,"pos : (" + string(posX) + ", " + string(posY) + ")");
|
2020-12-06 16:25:20 +01:00
|
|
|
|
2020-12-06 17:05:26 +01:00
|
|
|
}
|
|
|
|
|
2020-12-06 19:00:27 +01:00
|
|
|
else if (room = rOver) {
|
2020-12-06 17:05:26 +01:00
|
|
|
draw_text_transformed(room_width / 2, room_height / 2, "GAME OVER!", 2, 2, image_angle);
|
|
|
|
draw_text_transformed(room_width / 2, room_height / 2 + 128, "PRESS R TO RESTART", 2, 2, image_angle);
|
|
|
|
}
|
2020-12-06 16:25:20 +01:00
|
|
|
|
2020-12-06 19:00:27 +01:00
|
|
|
else {
|
|
|
|
draw_text_transformed(room_width / 2, room_height / 2, "VICTORY!", 2, 2, image_angle);
|
|
|
|
draw_text_transformed(room_width / 2, room_height / 2 + 128, "PRESS R TO RESTART", 2, 2, image_angle);
|
2020-12-06 23:05:18 +01:00
|
|
|
draw_text(room_width / 2, room_height / 2 + 360, "Music credits : Reset - Jaunter (auboutdufil.com)");
|
2020-12-06 19:00:27 +01:00
|
|
|
}
|
|
|
|
|