initial commit, kind of working.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package com.arc.dh.state
|
||||
{
|
||||
import com.arc.flixel.ArcSprite;
|
||||
|
||||
public class Background extends ArcSprite
|
||||
{
|
||||
|
||||
public var vertical:Boolean = true;
|
||||
|
||||
public function Background(param1:Number = 0, param2:Number = 0, param3:Class = null)
|
||||
{
|
||||
super(param1,param2,param3);
|
||||
}
|
||||
|
||||
override public function draw() : void
|
||||
{
|
||||
super.draw();
|
||||
if(this.vertical)
|
||||
{
|
||||
y += 420;
|
||||
super.draw();
|
||||
y -= 420;
|
||||
}
|
||||
else
|
||||
{
|
||||
x += 360;
|
||||
super.draw();
|
||||
x -= 360;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user