-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
128 lines (112 loc) · 5.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="author" content="Andrew Yolland" />
<meta name="description" content="A tool for extending Bitsy games" />
<meta name="keywords" content="borksy,bitsy,game,games" />
<link rel="shortcut icon" href="./borksy.gif" />
<link rel="stylesheet" href="./style/style.scss" type="text/css" />
<title>Borksy Game Hacker</title>
</head>
<body>
<div id="preloader">
<img src="./borksy.gif" class="preloader_animation" />
<p class="preloader_text">Loading...</p>
<noscript>You must enable javascript to use this tool.</noscript>
</div>
<div id="wrapper">
<header>
<div id="mascot"></div>
<h1><strong>Borksy</strong> Game Hacker</h1>
<noscript>You must enable javascript to use this tool.</noscript>
</header>
<details id="about" data-collapsible data-header="About Borksy" class="collapsible" open>
<div id="about_content"></div>
</details>
<form>
<details data-collapsible data-header="Page Title / Filename" class="collapsible">
<p>This is what the title of your page (not game) will be:</p>
<label data-pre="<title>" data-post="</title>">
<textarea data-save data-borksy-replace-single="TITLE" data-default-type="string"
data-default="My Bitsy Game By Me" rows="1" cols="50" wrap="hard" name="title"
id="title"></textarea>
</label>
<p>This is the filename that will be downloaded: <em>(only A-z,0-9,-,_ allowed)</em></p>
<label class="horizontal" data-post=".html">
<input data-save data-borksy-replace-single="FILENAME" data-default-type="string"
data-default="myBORKSYgame" data-clean-regex="^-|\W" name="filename" id="filename" />
</label>
</details>
<details data-collapsible data-header="Bitsy Version" class="collapsible">
<p>This is the version of the Bitsy engine you wish to include with your game.</p>
<label id="template-label">
<select data-save name="template" id="template" data-default="" data-default-type="option">
</select>
</label>
</details>
<details data-collapsible data-header="Game Data" class="collapsible">
<p>This is the gamedata from Bitsy:</p>
<label data-pre="<script type="bitsyGameData" id="exportedGameData">"
data-post="</script>">
<textarea data-save data-borksy-replace-single="GAMEDATA" data-default-type="textfile"
data-default="gamedata" rows="4" cols="50" wrap="hard" name="gamedata" id="gamedata"></textarea>
</label>
</details>
<details data-collapsible data-header="HTML / CSS Theme" class="collapsible">
<p>This is the HTML content of your game's body tag:<br>NOTE: the canvas#game tag is crucial for Bitsy
to work.</p>
<label data-pre="<body>" data-post="</body>">
<textarea data-save data-borksy-replace-single="MARKUP" data-default-type="textfile"
data-default="body" rows="4" cols="50" wrap="hard" name="markup" id="markup"></textarea>
</label>
<p>This is the CSS style for your page:</p>
<label data-pre="<style type="text/css">" data-post="</style>">
<textarea data-save data-borksy-replace-single="CSS" data-default-type="textfile"
data-default="style" rows="4" cols="50" wrap="hard" name="css" id="css"></textarea>
</label>
</details>
<details data-collapsible data-header="Hacks" class="collapsible" id="hacks-section">
<p>These are pre-loaded hacks that modify and extend Bitsy's behavior. Just check the box to include the
hack. Hacks with options have a expandable section with a modifiable JavaScript options object. If
you need a hack not seen here, use the Additional JavaScript field instead.</p>
</details>
<details data-collapsible data-header="Additional JavaScript" class="collapsible">
<p>This is JavaScript loaded into a script tag after all Bitsy code.<br>Other hacks can go in here
(among other things).</p>
<label data-pre="<script type="text/javascript" id="borksyAdditionalJS">"
data-post="</script>">
<textarea data-save data-borksy-replace-single="ADDITIONALJS" rows="4" cols="50" wrap="hard"
name="additionalJS" id="additionalJS"></textarea>
</label>
</details>
</form>
<div class="button-group">
<label>
<button id="restore-button">Restore Defaults</button>
<kbd>(<kbd>Ctrl</kbd>/<kbd>Cmd</kbd>+<kbd>D</kbd>)</kbd>
</label>
<label>
<button id="download-button">Download File</button>
<kbd>(<kbd>Ctrl</kbd>/<kbd>Cmd</kbd>+<kbd>S</kbd>)</kbd>
</label>
</div>
<footer>
<p>Borksy was originally built by AYolland: <a href="https://twitter.com/ayolland" target="_blank"
rel="noopener">Twitter</a> <a href="https://github.com/Ayolland" target="_blank"
rel="noopener">Github</a> <a href="https://ayolland.itch.io/" target="_blank"
rel="noopener">Itch.io</a></p>
<p>Bitsy is built by Adam Le Doux: <a href="https://twitter.com/adamledoux" target="_blank"
rel="noopener">Twitter</a> <a href="https://github.com/le-doux" target="_blank"
rel="noopener">Github</a> <a href="https://ledoux.itch.io/" target="_blank"
rel="noopener">Itch.io</a></p>
<p>Borksy and the hacks are maintained by Sean S. LeBlanc: <a href="https://twitter.com/SeanSLeBlanc"
target="_blank" rel="noopener">Twitter</a> <a href="https://github.com/seleb" target="_blank"
rel="noopener">Github</a> <a href="https://seansleblanc.itch.io/" target="_blank"
rel="noopener">Itch.io</a></p>
</footer>
</div>
<script type="module" src="./scripts/borksy.js"></script>
</body>
</html>