-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathController.as
More file actions
48 lines (46 loc) · 1.16 KB
/
Controller.as
File metadata and controls
48 lines (46 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package
{
// adobe
import com.kiko.ui.UiController;
import com.ScreenController;
import flash.display.Sprite
import flash.events.StatusEvent;
import flash.ui.Keyboard;
import flash.events.EventDispatcher;
import flash.display.MovieClip;
import net.hires.debug.Stats;
//
// curve
import com.curve.CurveController;
import com.curve.powerup.Powerup;
import com.curve.powerup.PowerupController;
//
/*
* Controller - Version 1.1
* MainController
*/
public class Controller extends Sprite
{
// controllers
static public var curveController:CurveController;
static public var powerupController:PowerupController;
static public var uiController:UiController;
static public var screenController:ScreenController;
//
//
public function Controller():void {
// Module aktivieren
addChild(View.init());
Keys.init();
//
var s:Stats = new Stats();
addChild(s);
s.y = stage.stageHeight - s.height;
// Controllers aktivieren
screenController = new ScreenController();
curveController = new CurveController();
powerupController = new PowerupController();
uiController = new UiController();
}
}//end-class
}//end-pack