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

42 lines
624 B
Text
Raw Normal View History

2020-12-06 01:04:50 +01:00
/// @description Insérez la description ici
// Vous pouvez écrire votre code dans cet éditeur
2020-12-06 18:37:38 +01:00
randomize();
2020-12-06 01:04:50 +01:00
2020-12-06 14:02:23 +01:00
global.difficulty = 1;
2020-12-06 18:37:38 +01:00
global.minutes = 2;
global.secondes = 60;
2020-12-06 16:25:20 +01:00
global.transition = -1;
2020-12-06 17:54:25 +01:00
global.weapon = 0;
2020-12-06 17:28:28 +01:00
global.spawn = -1;
2020-12-06 14:34:06 +01:00
2020-12-06 17:05:26 +01:00
global.perdu = false;
2020-12-06 01:04:50 +01:00
2020-12-06 18:37:38 +01:00
2020-12-06 19:00:27 +01:00
for (i = 0; i < 4; i++)
{
for(j = 0; j < 4; j++)
{
tableau[i, j] = irandom(10);
}
}
2020-12-06 18:37:38 +01:00
posXfin = irandom(3);
posYfin = irandom(3);
tableau[posXfin, posYfin] = 11;
2020-12-06 14:02:23 +01:00
posX = irandom(3);
2020-12-06 14:59:53 +01:00
posY = irandom(3);
2020-12-06 18:37:38 +01: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 14:59:53 +01:00
2020-12-06 19:00:27 +01:00