-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
146 lines (121 loc) · 4.61 KB
/
index.html
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link id="iconLink" rel="icon" type="image/x-icon" href=""#>
<link rel="stylesheet" type="text/css" href="css/grindcraft.css">
<meta property="og:title" content="Grindcraft Game Creator"> <!-- Title for Discord links -->
<meta property="og:description" content="A tool for creating Grindcraft-like games!"> <!-- Description for Discord links -->
<meta property='og:image' content=""> <!-- Image for Discord links -->
<meta property="og:type" content="website">
<meta name="theme-color" content="#60ff52"> <!-- Color for Discord links -->
</head>
<body>
<div class="top-div">
<h1>Grind</h1>
<h1>Craft</h1>
<div class="top-sub-div">
<h2 class="tps-text"></h2>
<button class="settings-top-button"><img src="images/system/settings.png"></button>
</div>
</div>
<div class="main-div">
<div class="left-div">
<div class="left-top-div"></div>
<h1>Areas</h1>
<div class="left-bottom-div"></div>
</div>
<div class="right-div"></div>
</div>
<div class="recipe-div">
<p class="recipe-name"></p>
<div class="recipe-cost-div"></div>
<p class="recipe-desc"></p>
</div>
<div class="grind-resource-div"></div>
<div class="message-div">
<p class="message-text"></p>
<button class="message-button">Ok</button>
</div>
<div class="settings-div">
<h2 class="setting-header">Settings:</h2>
<div class="setting">
<p class="setting-text">Max FPS: </p>
<div class="setting-input-div">
<label for="maxFPSInput" id="maxFPSLabel">100</label>
<input id="maxFPSInput" type="range" min="1" max="1000" value="100" class="settingInput">
</div>
</div>
<div class="setting">
<p class="setting-text">Show Grind Materials: </p>
<label class="container">
<input id="showGrindMaterialsInput" checked="true" type="checkbox" class="setting-input">
<span class="checkmark"></span>
</label>
</div>
<div class="setting">
<p class="setting-text">Show Craft Recipes: </p>
<label class="container">
<input id="showCraftRecipesInput" checked="true" type="checkbox" class="setting-input">
<span class="checkmark"></span>
</label>
</div>
<div class="setting">
<p class="setting-text">Enable Auto-Crafts: </p>
<label class="container">
<input id="enableAutobuysInput" checked="true" type="checkbox" class="setting-input">
<span class="checkmark"></span>
</label>
</div>
<div class="setting">
<p class="setting-text">Auto-Save: </p>
<label class="container">
<input id="autoSaveInput" type="checkbox" checked="true" class="setting-input">
<span class="checkmark"></span>
</label>
</div>
<div class="setting">
<p class="setting-text">Manual Save: </p>
<div>
<button id="saveButton">Save</button>
</div>
</div>
<div class="setting">
<p class="setting-text">Import Save: </p>
<div>
<input id="importSaveInput" type="text" class="setting-input">
<button id="importSaveButton">Import</button>
</div>
</div>
<div class="setting">
<p class="setting-text">Export Save: </p>
<div>
<button id="copySaveButton">Copy Save</button>
</div>
</div>
<div class="setting">
<p class="setting-text">Reset Save: </p>
<div>
<button id="resetSaveButton">Reset Save</button>
</div>
</div>
<p class="setting-text">Made with the <a href="https://github.com/MiraTheCat/Grindcraft-Game-Maker" target="_blank">Grindcraft Game Maker</a> tool!</p>
<p id="toolVersion" class="setting-text">(Version X)</p>
<button class="settings-button">Ok</button>
</div>
<script src="js/main.js"></script>
<script src="js/areas.js"></script>
<script>
// Set up game
setupGame();
// Check if there is a saved game version and tool version
if (player.savedGameVersion === undefined) player.savedGameVersion = player.gameInfo.gameVersion;
if (player.savedToolVersion === undefined) player.savedToolVersion = player.toolVersion;
// Fix things that have been changed between updates
onLoad(player.savedGameVersion);
// Start the screen update function
screenUpdate(Date.now() - player.lastScreenUpdate);
</script>
</body>
</html>