-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
61 lines (56 loc) · 1.03 KB
/
constants.js
File metadata and controls
61 lines (56 loc) · 1.03 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
49
50
51
52
53
54
55
56
57
58
59
60
61
//Canvas with context2d
const canvas = document.getElementById("tree");
const ctx = canvas.getContext("2d");
//canvas width, height
const cWidth = canvas.width;
const cHeight = canvas.height;
//treeupgrades
const maxTreeLevel = 2;
const treeUpgrades = [{
uID: 0,
name: "Allow for passive generation of Upgrade Points.",
price: 0,
level: 0,
unlocks: [1, 2, 3],
needs: [],
maxLevel: 1
},
{
uID: 1,
name: "Get 1 up/min generation.",
price: 0,
level: 1,
unlocks: [],
needs: [0],
maxLevel: 1
},
{
uID: 2,
name: "Get +1 up/min generation",
bName: "+10 up/min generation",
price: 1,
level: 1,
unlocks: [],
needs: [0],
maxLevel: 10
},
{
uID: 3,
name: "Unlocks adventure.",
price: 5,
level: 0,
unlocks: [],
needs: [0],
maxLevel: 1,
cClass: "advButton"
}
];
const treeLevels = [{
level: 0,
empty: [0]
}
];
const emptyButton = {
uID: -1,
maxLevel: 0
};