Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ww = sprite_width;
- var choice = choose(0,1,2);
- var lastchoice = choice;
- var inst = instance_create_depth(x,y,depth,obj_room);
- inst.image_blend = c_blue;
- x+= ww;
- instance_create_depth(x,y,depth,obj_room);
- rooms = 7+global.level;
- if (global.level mod 5 == 0) {
- rooms = 0;
- }
- for (var i = 0; i < rooms; i ++) {
- choice = choose(0,0,1,2);
- if (lastchoice == 0) {
- choice = choose(0,1,2);
- }
- if (lastchoice == 1) {
- choice = choose(0,0,1);
- }
- if (lastchoice == 2) {
- choice = choose(0,0,2);
- }
- switch (choice) {
- case 0: x += ww; break;
- case 1: y += ww; break;
- case 2: y -= ww; break;
- }
- instance_create_depth(x,y,depth,obj_room);
- lastchoice = choice;
- }
- x += ww;
- var inst = instance_create_depth(x,y,depth,obj_room);
- inst.image_blend = c_red;
- alarm[0] = 4;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement