Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
FogNetwork
GitHub Repository: FogNetwork/Tsunami
Path: blob/main/public/games/files/garbage-collector/js/levels/level-end.js
1036 views
1
/*globals define*/
2
define(function( require ) {
3
'use strict';
4
5
var LevelUtils = require( 'levels/utils-level' );
6
7
var Settings = require( 'config/settings' );
8
9
return function( game ) {
10
game.clear();
11
12
game.player.x = 0;
13
game.player.y = 0;
14
15
Settings.background = false;
16
17
LevelUtils.playerMaterialOn( game );
18
LevelUtils.addTrail( game );
19
20
game.camera.setHeight( 24, {
21
maintainAspectRatio: true
22
});
23
24
game.font = '48pt Georgia, Times New Roman, serif';
25
game.text = 'the end';
26
};
27
});
28
29