-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathscript.js
More file actions
33 lines (31 loc) · 1.09 KB
/
script.js
File metadata and controls
33 lines (31 loc) · 1.09 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
/**
* Created by aarnavjindal on 30/01/18.
*/
resumeDownloadURL ='https://firebasestorage.googleapis.com/v0/b/attendancemanager-6fbf7.appspot.com/o/Aarnav\'s%20Resume.pdf?alt=media&token=5255dd9b-b62e-457f-96e1-1dca1ad2a9e3';
WebFont.load({
custom : {
families: ['frank_plain','frank_medium']
},
timeout:1000,
fontactive: function(familyName,fvd){
console.log(familyName);
},
});
var game_height = window.innerHeight, game_length = 22600,
screen_width = window.innerWidth, starting_ground = 9000,
work_ground = 5500,beach_ground = 3800,sea_length = 3000;
var game = new Phaser.Game(screen_width, game_height, Phaser.AUTO,'canvas');
game.width = screen_width;
game.height = game_height;
console.log(game.width+","+game.height);
console.log(screen_width+","+game_height);
game.state.add('BootState',BootState);
game.state.add('PreloadState',PreloadState);
game.state.add('GameState',GameState);
game.state.start('BootState');
window.onload = ()=>{
resume = document.getElementById('resume');
resume.onclick = ()=>{
window.open(resumeDownloadURL);
};
};