initial commit, kind of working.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.arc.flixel
|
||||
{
|
||||
import org.flixel.FlxG;
|
||||
import org.flixel.FlxRect;
|
||||
|
||||
public class ArcRect extends FlxRect
|
||||
{
|
||||
|
||||
public function ArcRect(param1:Number = 0, param2:Number = 0, param3:Number = 0, param4:Number = 0)
|
||||
{
|
||||
super(param1,param2,param3,param4);
|
||||
}
|
||||
|
||||
public function hover() : Boolean
|
||||
{
|
||||
var _loc1_:int = FlxG.mouse.screenX;
|
||||
var _loc2_:int = FlxG.mouse.screenY;
|
||||
return _loc1_ > left && _loc1_ < right && (_loc2_ > top && _loc2_ < bottom);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user