90 lines
3.0 KiB
HTML
90 lines
3.0 KiB
HTML
<!DOCTYPE html><html><head><meta charset="utf-8"><title>image to bitsy</title><!-- lodash--><script src="includes/lodash.min.js"></script><!-- jquery--><script src="includes/jquery.min.js"></script><!-- croppie--><link rel="stylesheet" href="includes/croppie.css"><script src="includes/croppie.js"></script><!-- main stuff--><link rel="stylesheet" type="text/css" href="includes/style.css"><script src="includes/script.js"></script></head><body><header><h1>image-to-bitsy</h1><p>convert any image to a <a href="https://ledoux.itch.io/bitsy">bitsy</a> room</p><p><a href="https://github.com/synth-ruiner/bitsy-image-to-room">about</a>
|
|
|
|
|
please contact me if you have any issues:
|
|
<a href="https://twitter.com/synth_ruiner">twitter</a>,
|
|
<a href="mailto:max@tinybird.info">email</a>
|
|
</p></header><div class="flex-container"><div class="section" id="game-data"><h2>game data</h2><textarea id="bitsy-data" placeholder="Bitsy data or html">Write your game's title here
|
|
|
|
# BITSY VERSION 5.3
|
|
|
|
! ROOM_FORMAT 1
|
|
|
|
PAL 0
|
|
0,82,204
|
|
128,159,255
|
|
255,255,255
|
|
|
|
ROOM 0
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
0,a,a,a,a,a,a,a,a,a,a,a,a,a,a,0
|
|
0,a,0,0,0,0,0,0,0,0,0,0,0,0,a,0
|
|
0,a,0,0,0,0,0,0,0,0,0,0,0,0,a,0
|
|
0,a,0,0,0,0,0,0,0,0,0,0,0,0,a,0
|
|
0,a,0,0,0,0,0,0,0,0,0,0,0,0,a,0
|
|
0,a,0,0,0,0,0,0,0,0,0,0,0,0,a,0
|
|
0,a,0,0,0,0,0,0,0,0,0,0,0,0,a,0
|
|
0,a,0,0,0,0,0,0,0,0,0,0,0,0,a,0
|
|
0,a,0,0,0,0,0,0,0,0,0,0,0,0,a,0
|
|
0,a,0,0,0,0,0,0,0,0,0,0,0,0,a,0
|
|
0,a,0,0,0,0,0,0,0,0,0,0,0,0,a,0
|
|
0,a,0,0,0,0,0,0,0,0,0,0,0,0,a,0
|
|
0,a,0,0,0,0,0,0,0,0,0,0,0,0,a,0
|
|
0,a,a,a,a,a,a,a,a,a,a,a,a,a,a,0
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
PAL 0
|
|
|
|
TIL a
|
|
11111111
|
|
10000001
|
|
10000001
|
|
10011001
|
|
10011001
|
|
10000001
|
|
10000001
|
|
11111111
|
|
|
|
SPR A
|
|
00011000
|
|
00011000
|
|
00011000
|
|
00111100
|
|
01111110
|
|
10111101
|
|
00100100
|
|
00100100
|
|
POS 0 4,4
|
|
|
|
SPR a
|
|
00000000
|
|
00000000
|
|
01010001
|
|
01110001
|
|
01110010
|
|
01111100
|
|
00111100
|
|
00100100
|
|
DLG SPR_0
|
|
POS 0 8,12
|
|
|
|
ITM 0
|
|
00000000
|
|
00000000
|
|
00000000
|
|
00111100
|
|
01100100
|
|
00100100
|
|
00011000
|
|
00000000
|
|
NAME tea
|
|
DLG ITM_0
|
|
|
|
DLG SPR_0
|
|
I'm a cat
|
|
|
|
DLG ITM_0
|
|
You found a nice warm cup of tea
|
|
|
|
VAR a
|
|
42
|
|
|
|
</textarea><p><input class="game-data" type="file"></p><p>paste or upload your game data (or html) here</p><p>(maybe make a backup first)</p></div><div class="section" id="image"><h2>image</h2><div id="croppie"></div><input id="imageUpload" type="file" accepts="image/*"></div><div class="section" id="palette"><h2>palette</h2><form id="palettes"><table><tbody></tbody></table></form></div><div class="section" id="crop"><h2>preview</h2><canvas id="preview" width="128" height="128"></canvas><input id="brightness" type="range" min="-255" max="255" value="0"><label for="brightness">brightness</label></div><div class="section" id="output"><h2>output</h2><canvas id="room-output" width="128" height="128"></canvas><label id="never">never</label><input id="threshold" type="range" min="0" max="64" value="64"><label id="always"> always</label><br><label for="threshold">create new tiles</label><br><input id="roomName" type="text" placeholder="room name"><button id="save">write to game data</button></div></div></body></html> |