mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
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.
34 lines
1.4 KiB
ActionScript
34 lines
1.4 KiB
ActionScript
// =================================================================================================
|
|
//
|
|
// Starling Framework
|
|
// Copyright Gamua GmbH. All Rights Reserved.
|
|
//
|
|
// This program is free software. You can redistribute and/or modify it
|
|
// in accordance with the terms of the accompanying license agreement.
|
|
//
|
|
// =================================================================================================
|
|
|
|
package starling.events
|
|
{
|
|
/** An EnterFrameEvent is triggered once per frame and is dispatched to all objects in the
|
|
* display tree.
|
|
*
|
|
* It contains information about the time that has passed since the last frame. That way, you
|
|
* can easily make animations that are independent of the frame rate, taking the passed time
|
|
* into account.
|
|
*/
|
|
public class EnterFrameEvent extends Event
|
|
{
|
|
/** Event type for a display object that is entering a new frame. */
|
|
public static const ENTER_FRAME:String = "enterFrame";
|
|
|
|
/** Creates an enter frame event with the passed time. */
|
|
public function EnterFrameEvent(type:String, passedTime:Number, bubbles:Boolean=false)
|
|
{
|
|
super(type, bubbles, passedTime);
|
|
}
|
|
|
|
/** The time that has passed since the last frame (in seconds). */
|
|
public function get passedTime():Number { return data as Number; }
|
|
}
|
|
} |