4
0
Fork 0
This repository has been archived on 2023-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
surprise_dungeon/objects/oGame/Draw_64.gml
2020-12-06 17:54:25 +01:00

35 lines
1 KiB
Plaintext

if (room != rOver) {
draw_rectangle_color(1280,0,display_get_gui_width(),96,c_black,c_black,c_black,c_black,false);
draw_text(1312,72,"map");
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");
draw_text(640,16,"vie : " + string(oPlayer.pv));
for (i = 0; i < 4; i++)
{
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,"-");
}
}
if (!global.perdu) draw_text(160,16, string(global.minutes) + " : " + string(global.secondes));
else draw_text(160,16, "PERDU");
draw_text(320,16,global.difficulty);
draw_text(480,16,"pos : (" + string(posX) + ", " + string(posY) + ")");
draw_text(800,16,room_get_name(room));
}
else {
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);
}