a tool for converting images to rooms for use in Bitsy game maker
Go to file
synth-ruiner 7b7f13d0dd readme updates 2017-12-23 00:57:25 +00:00
node_modules initial 2017-12-22 17:22:08 +00:00
.gitattributes initial 2017-12-22 17:22:08 +00:00
.gitignore initial 2017-12-22 17:22:08 +00:00
Rubik-Regular.ttf initial 2017-12-22 17:22:08 +00:00
bitsy-default.txt better default palettes 2017-12-22 18:22:46 +00:00
croppie.css initial 2017-12-22 17:22:08 +00:00
croppie.js initial 2017-12-22 17:22:08 +00:00
dj-hamster.jpg initial 2017-12-22 17:22:08 +00:00
index.html update 2017-12-22 19:46:27 +00:00
index.pug add threshold slider 2017-12-22 19:46:19 +00:00
jquery.min.js initial 2017-12-22 17:22:08 +00:00
lodash.min.js initial 2017-12-22 17:22:08 +00:00
package-lock.json initial 2017-12-22 17:22:08 +00:00
package.json initial 2017-12-22 17:22:08 +00:00
readme.md readme updates 2017-12-23 00:57:25 +00:00
rubik-regular-webfont.woff initial 2017-12-22 17:22:08 +00:00
rubik-regular-webfont.woff2 initial 2017-12-22 17:22:08 +00:00
script.js allow user to select palettes 2017-12-22 19:45:33 +00:00
style.css styling 2017-12-23 00:14:54 +00:00
style.less styling 2017-12-23 00:14:54 +00:00

readme.md

bitsy image to room

about

a tool for Bitsy. upload any image and convert it into a room. the room will be added to the game data automatically and you can paste it back into Bitsy.

thanks

to Adam LeDoux for creating the wonderful and inspiring Bitsy

to J.P. LeBreton for creating Playscii which was a huge inspiration for this tool

to Mark Wonnacott for being relentlessly encouraging and making me want to work even an eighth as hard as them

to Foliotek for the Croppie image plugin

contributing

The stylesheet and html are autogenerated; if you want to alter them please edit the pug template or less stylesheet, e.g. from the command line as follows:

pug index.pug index.html lessc style.less style.css

pug and less can be installed via npm as follows:

npm install -g pug-cli npm install -g less

I had to hack the included Croppie plugin to allow the user to upload images from their own computer without falling foul of CORS restrictions. So the version bundled here is non-standard. It's a one-line change:

croppie.js:182 (original)
if (src.match(/^(https)?:\/\/|^\/\//)) {
croppie.js:182 (mine)
if (src.match(/^(file|https)?:\/\/|^\/\//)) {

to do

layout idea: game data | image | palette crop | preview | output

  • read Bitsy data ** tiles ** palettes
  • read Bitsy data from html file
  • add palette choice
  • create bitsy tiles from image ** only add unique new tiles ** find closest existing tiles and use those if desired *** add a slider? (always use existing tiles -> always create new tiles) (representing 0-64 threshold for # of common pixels)
  • style the damn thing
  • reorganise the page layout for a more logical workflow ** hide page sections the user does not need to know about yet?
  • handle animated tiles?

could do

  • add some default data ** tiles (e.g. petscii or some 'user-donated' tiles) ** palettes
  • add dithering options
  • add camera support so users can take a pic instead of uploading an image
  • add a 'smoothing' stage to remove errant pixels
  • allow user to add palettes to game data
  • allow user to draw to canvas