mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Hello WWWWWWorld!
This commit is contained in:
36
mobile_version/src/blockclass.as
Normal file
36
mobile_version/src/blockclass.as
Normal file
@@ -0,0 +1,36 @@
|
||||
package {
|
||||
import flash.display.*;
|
||||
import flash.geom.*;
|
||||
import flash.events.*;
|
||||
import flash.net.*;
|
||||
|
||||
public class blockclass extends Sprite {
|
||||
public function blockclass():void {
|
||||
rect = new Rectangle();
|
||||
clear();
|
||||
}
|
||||
|
||||
public function clear():void{
|
||||
active = false;
|
||||
type = 0; trigger=0;
|
||||
|
||||
xp = 0; yp = 0; wp = 0; hp = 0;
|
||||
rect.x = xp; rect.y = yp; rect.width = wp; rect.height = hp;
|
||||
|
||||
prompt = ""; script = ""; r = 0; g = 0; b = 0;
|
||||
}
|
||||
|
||||
public function rectset(xi:int, yi:int, wi:int, hi:int):void {
|
||||
rect.x = xi; rect.y = yi; rect.width = wi; rect.height = hi;
|
||||
}
|
||||
|
||||
//Fundamentals
|
||||
public var active:Boolean;
|
||||
public var rect:Rectangle;
|
||||
public var type:int;
|
||||
public var trigger:int;
|
||||
public var xp:int, yp:int, wp:int, hp:int;
|
||||
public var script:String, prompt:String;
|
||||
public var r:int, g:int, b:int;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user