forked from Fulox/FullScreenMario-JSON
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunner.js
31 lines (31 loc) · 1.08 KB
/
runner.js
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
FullScreenMario.prototype.settings.runner = {
"upkeepScheduler": setTimeout,
"upkeepCanceller": clearTimeout,
"interval": 1000 / 60,
"adjustFramerate": true,
"games": [
function () {
this.QuadsKeeper.determineAllQuadrants("Scenery", this.GroupHolder.getSceneryGroup());
this.QuadsKeeper.determineAllQuadrants("Text", this.GroupHolder.getTextGroup());
},
function () {
this.maintainSolids(this, this.GroupHolder.getSolidGroup());
},
function () {
this.maintainCharacters(this, this.GroupHolder.getCharacterGroup());
},
function () {
this.maintainPlayer(this, this.player);
},
function () {
this.TimeHandler.handleEvents();
},
function () {
this.PixelDrawer.refillGlobalCanvas(this.MapsHandler.getArea().background);
// this.PixelDrawer.refillQuadrantGroups(
// this.QuadsKeeper.getQuadrantRows(),
// this.MapsHandler.getArea().background
// );
}
]
}