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/Create_0.gml

44 lines
698 B
Plaintext
Raw Normal View History

2020-12-06 00:04:50 +00:00
/// @description Insérez la description ici
// Vous pouvez écrire votre code dans cet éditeur
2020-12-06 17:37:38 +00:00
randomize();
2020-12-06 19:12:21 +00:00
audio_play_sound(snFond,1,true);
2020-12-06 00:04:50 +00:00
2020-12-06 17:37:38 +00:00
global.minutes = 2;
global.secondes = 60;
2020-12-06 15:25:20 +00:00
global.transition = -1;
2020-12-06 16:54:25 +00:00
global.weapon = 0;
2020-12-06 16:28:28 +00:00
global.spawn = -1;
2020-12-06 13:34:06 +00:00
2020-12-06 16:05:26 +00:00
global.perdu = false;
2020-12-06 00:04:50 +00:00
2020-12-06 17:37:38 +00:00
2020-12-06 18:00:27 +00:00
for (i = 0; i < 4; i++)
{
for(j = 0; j < 4; j++)
{
2020-12-06 18:53:51 +00:00
coffre[i][j] = 0;
2020-12-06 18:00:27 +00:00
tableau[i, j] = irandom(10);
2020-12-06 18:53:51 +00:00
if (tableau[i, j] = 9) coffre[i,j] = 1;
2020-12-06 18:00:27 +00:00
}
}
2020-12-06 17:37:38 +00:00
posXfin = irandom(3);
posYfin = irandom(3);
tableau[posXfin, posYfin] = 11;
2020-12-06 13:02:23 +00:00
posX = irandom(3);
2020-12-06 13:59:53 +00:00
posY = irandom(3);
2020-12-06 17:37:38 +00:00
while(posXfin = posX and posYfin = posY) {
posX = irandom(3);
posY = irandom(3);
}
room_goto(asset_get_index("r" + string(tableau[posX, posY])));
2020-12-06 13:59:53 +00:00
2020-12-06 18:00:27 +00:00