-
Notifications
You must be signed in to change notification settings - Fork 10
/
GlobalSettings.js
60 lines (48 loc) · 1.55 KB
/
GlobalSettings.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
'use strict';
gameApp.constant("GlobalSettings", {
spriteSize: 20,
spriteSheetWidth: 4,
playerAreaHeight: 6,
scoreBoardArea: 40,
scoreMarkerFont: "10px sans-serif",
scoreBoardFont: "16px Arial bold",
scoreBoardTitleFontColour: "red",
scoreBoardContentFontColour: "purple",
scoreBoardLivesXPositionText: 50,
scoreBoardLivesXPositionImage: 45,
scoreBoardScoreXPosition: 200,
scoreBoardLevelXPosition: 350,
scoreBoardHighScoreXPosition: 500,
scoreBoardTitleYPosition: 15,
scoreBoardContentYPosition: 35,
scoreBoardLivesYPosition: 20,
scoreBoardLivesOffset: 15,
gameOverXPosition: 210,
gameOverYPosition: 300,
gameOverFontColour: "yellow",
gameOverFont: "32px Arial bold",
gameBoardWidth: 30,
gameBoardHeight: 30,
gameBoardBackgroundColour: "black",
centipedeFramesPerMoveNormalSpeed: 2,
centipedeFramesPerMoveHighSpeed: 1,
// board creation
mushroomChanceNonPlayerArea: 10,
mushroomChancePlayerArea: 40,
minMushroomsBeforeFleaCreated: 40,
maxMushroomsAllowed: 140,
minMushroomsInPlayerAreaBeforeFleaCreated: 5,
delayAfterDeathBeforePlayerRegeneration: 5,
delayAfterDeathBeforeBulletDispose: 2,
fleaCreationChance: 100,
spiderCreationChance: 25,
snailCreationChance: 200,
maxBulletsOnScreen: 5,
lives: 3,
scoreHitMushroom: 10,
scoreHitPoisonMushroom: 25,
scoreHitCentipede: 100,
scoreHitSpider: 1000,
scoreHitFlea: 500,
scoreHitSnail: 2000
});