mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-05 10:49:41 +01:00
72d018ea04
The android version just got a much needed update to fix some resolution issues on devices with cutouts. It turns out the mobile source was actually pretty out of date, like 3 versions out of date! This commit brings it up to date. All the changes have just been about keeping the game running on modern devices, though. The biggest change was adding the Starling library to the project, which made the game GPU powered and sped the whole thing up.
33 lines
806 B
ActionScript
33 lines
806 B
ActionScript
package {
|
|
import flash.geom.*;
|
|
|
|
public class blockclass {
|
|
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;
|
|
}
|
|
};
|