-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
124 lines (97 loc) · 5.6 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="/manifest.json">
<title>Blipsy</title>
<style type="text/css">
body {
background: #250f2e;
}
#spr {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
#items {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
overflow: scroll;
}
#sprd {
display: flex;
align-items: flex-start;
flex-direction: column;
padding: 5px;
}
#pixeldraw {
cursor: crosshair;
}
#page {
display: flex;
align-items: flex-start;
flex-direction: column;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.32.8/ace.min.js" integrity="sha512-3c17/omJ/iHIFqPLIThx7TXuOuu1+umsw5SfeZhJxoYbCwTdnqbIlgnAUQOUBxvi6pl1Pu131NkC4ga0cliHHw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
</head>
<body>
<script type="text/javascript" src="src/globals.js"></script>
<div id="page">
<div id="items">
<div id="sprd" onload="Preview.init()">
<canvas id="preview"></canvas>
<div id="spr">
<button id="restart">Restart</button>
<button id="load">Load</button>
<button id="save">Save</button>
<button id="export">Export</button>
<input id="loadfile" type="file" style="display: none" accept=".txt,.json,.blipsy" />
</div>
</div>
<div id="sprd" onload="Canvas.init()">
<div id="spr">
<button id="mode">Brush</button>
<button id="sprsave">Save</button>
<button id="sprload">Load</button>
<input id="sloadfile" type="file" style="display: none" accept=".txt,.json,.blipsyspr" />
</div>
<canvas id="pixeldraw"></canvas>
<div id="spr" style="width:60%">
<button class="frame">0</button>
<button class="frame">1</button>
<button class="frame">2</button>
<button class="frame">3</button>
<button class="frame">4</button>
<button class="frame">5</button>
<button class="frame">6</button>
<button class="frame">7</button>
<button class="frame">8</button>
<button class="frame">9</button>
<button class="frame">10</button>
<button class="frame">10</button>
<button class="frame">10</button>
<button class="frame">10</button>
</div>
</div>
<div id="codewin">
<div id="codeedit" style="width: 600px; height: 300px; position: relative;"></div>
</div>
<script type="text/javascript" src="src/spritecanvas.js"></script>
<script type="text/javascript" src="src/preview.js"></script>
<script type="text/javascript">
let datajson = {"sprites":[[1,0,0,1,0,0,0,1,1,0,0,1,0,0,0,0,1,0,0,1,0,0,0,1,1,0,0,1,0,0,0,1,1,1,1,1,0,0,0,1,1,0,0,1,0,0,0,1,1,0,0,1,0,0,0,1,1,0,0,1,0,0,0,1],[1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],"code":"//You can edit this!\nvar x;\nvar y;\nvar dir = {\n x : Math.random(1),\n y: Math.random(1)\n}\nvar points;\nBlipsy.boot = () => {\n\tx = 0;\n\ty = 0;\n\tpoints = []\n};\n\nBlipsy.update = () => {\n Blipsy.clearScreen()\n\tx += dir.x;\n\ty += dir.y;\n\t\n\tif((x+8) > 64)\n\t{\n\t dir.x = -1\n\t}\n\t\n\tif((y+8) > 64)\n\t{\n\t dir.y = -1\n\t}\n\t\n\tif((x) <= 0)\n\t{\n\t dir.x = 1\n\t}\n\t\n\tif((y) <= 0)\n\t{\n\t dir.y = 1\n\t}\n\t\n\t\n\tBlipsy.drawSprite(0, x,y);\n\t\n\t\n\t\n};"}
Preview.load(datajson)
Blipsy.restart()
</script>
</div>
<p style="color: #FFFFFF;">Made with illegal organ donations by <a href="https://michealtheratz.neocities.org">michealtheratz</a>!</p>
<p style="color: #FFFFFF;">Github: <a href="https://github.com/gamemake-eng/Blipsy">https://github.com/gamemake-eng/Blipsy</a></p>
<p><a href="./docs.html">Blipsy Docs</a></p>
<p style="color: #FFFFFF;">Blipsy v0.0.2 alpha (Version jellyfish)</p>
</div>
</body>
</html>