-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.js
103 lines (83 loc) · 2.59 KB
/
variables.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
function variable() {
// Save Variables
// Load Variables
window.coinfile;
window.coalfile;
window.ironfile;
window.copperfile;
window.rubberfile;
// Resource Variables
window.resourceVisible = 'stone';
// Coins
window.coins = 0;
window.coinsspeed = 0;
window.coinsgatherers = 0;
// Coal
window.coal = 0;
window.coalvalue;
window.coalspeed = 0;
window.coalgatherers = 0;
window.coalSpeed;
window.outerCoal = 0;
// Stone
window.stone = 0;
window.stonevalue;
window.stonespeed = 0;
window.stonegatherers = 0;
// Iron
window.iron = 0;
window.ironvalue;
window.ironspeed = 0;
window.irongatherers = 0;
// Copper
window.copper = 0;
window.coppervalue;
window.copperspeed = 0;
window.coppergatherers = 0;
// Rubber
window.rubber = 0;
window.rubbervalue;
window.rubberspeed = 0;
window.rubbergatherers = 0;
// Button Variables
window.makecopperbutton;
window.gencopperbutton;
window.gencopperbutton1;
window.makerubberbutton;
window.genrubberbutton;
window.genrubberbutton1;
window.readyiron;
window.readycopper;
window.readyrubber;
window.genironbutton1;
window.genironbutton;
window.makeironbutton;
window.makeironbuttonclickedsuccess;
window.makecopperbuttonclickedsuccess;
window.makerubberbuttonclickedsuccess;
// Element Variables
window.divbuyiron = document.getElementById("buyiron");
window.divbuycopper = document.getElementById("buycopper");
window.divbuyrubber = document.getElementById("buyrubber");
window.triron = document.getElementById("triron");
window.trcopper = document.getElementById("trcopper");
window.trrubber = document.getElementById("trrubber");
window.pcoins = document.getElementById("coins");
window.pstone = document.getElementById("stone");
window.pcoal = document.getElementById("coal");
window.piron = document.getElementById("iron");
window.pcopper = document.getElementById("copper");
window.prubber = document.getElementById("rubber");
window.divload = document.getElementById("load");
window.divnav = document.getElementById("nav");
window.h2resourcetype = document.getElementById("resourcetype");
window.h3selltype = document.getElementById("selltype");
window.h3storagetype = document.getElementById("storagetype");
window.presourcedefine = document.getElementById("resourcedefine");
window.pselldefine = document.getElementById("selldefine");
window.pstoragedefine = document.getElementById("storagedefine");
window.btngainresource = document.getElementById("gainresource");
window.btnsellresource = document.getElementById("sellresource");
window.btngainstorage = document.getElementById("gainstorage");
gameStart()
}