mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Hello WWWWWWorld!
This commit is contained in:
75
mobile_version/levels/newgameclass.as
Normal file
75
mobile_version/levels/newgameclass.as
Normal file
@@ -0,0 +1,75 @@
|
||||
package {
|
||||
import flash.display.*;
|
||||
import flash.geom.*;
|
||||
import flash.events.*;
|
||||
import flash.net.*;
|
||||
|
||||
public class newgameclass {
|
||||
public function newgameclass():void {
|
||||
tmap.reset();
|
||||
}
|
||||
|
||||
public function changemapsize(xw:int, yh:int):void {
|
||||
mapwidth = xw; mapheight = yh;
|
||||
}
|
||||
|
||||
public function loadlevel(t:String, obj:entityclass, music:musicclass):void {
|
||||
if(t=="newgame_enter"){
|
||||
changemapsize(40,30);
|
||||
tmap.push("2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1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|
||||
tmap.push("2,2,2,2,2,2,2,2,2,2,1,1,1,2,2,1,2,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2");
|
||||
|
||||
obj.createdoor(8, 12, "newgame_room2", 4, 10);
|
||||
}else if(t=="newgame_room2"){
|
||||
changemapsize(20,15);
|
||||
tmap.push("2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2");
|
||||
tmap.push("2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2");
|
||||
tmap.push("2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2");
|
||||
|
||||
obj.createdoor(16, 12, "newgame_enter", 7, 22);
|
||||
}
|
||||
}
|
||||
|
||||
public var mapwidth:int, mapheight:int;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user