pixsy/index.pug

96 lines
2.7 KiB
Plaintext
Raw Normal View History

2017-12-22 17:22:08 +00:00
doctype html
html
head
2019-03-31 13:24:58 +00:00
meta(charset="utf-8")
title image to bitsy
2017-12-22 17:22:08 +00:00
// lodash
2017-12-23 16:45:27 +00:00
script(src="includes/lodash.min.js")
2017-12-22 17:22:08 +00:00
// jquery
2017-12-23 16:45:27 +00:00
script(src="includes/jquery.min.js")
2017-12-22 17:22:08 +00:00
// croppie
2017-12-23 16:45:27 +00:00
link(rel="stylesheet" href="includes/croppie.css")
script(src="includes/croppie.js")
2017-12-22 17:22:08 +00:00
2017-12-23 16:45:27 +00:00
// main stuff
link(rel="stylesheet" type="text/css" href="includes/style.css")
script(src="includes/script.js")
2017-12-22 17:22:08 +00:00
body
2018-03-03 11:55:42 +00:00
header
h1 image-to-bitsy
p convert any image to a #[a(href="https://ledoux.itch.io/bitsy") bitsy] room
p.
#[a(href="https://github.com/synth-ruiner/bitsy-image-to-room") about]
|
please contact me if you have any issues:
#[a(href="https://twitter.com/synth_ruiner") twitter],
#[a(href="mailto:max@tinybird.info") email]
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
.flex-container
#game-data.section
h2 game data
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
textarea#bitsy-data(placeholder="Bitsy data or html")
include includes/default.bitsy
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
p
input.game-data(type="file")
p paste or upload your game data (or html) here
p (maybe make a backup first)
2018-03-03 11:55:42 +00:00
#image.section
h2 image
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
#croppie
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
input#imageUpload(type="file" accepts="image/*")
2017-12-23 23:34:17 +00:00
2018-03-03 11:55:42 +00:00
#palette.section
h2 palette
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
form#palettes
table
tbody
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
#crop.section
h2 preview
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
canvas#preview(width=128, height=128)
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
input#brightness(type="range" min=-255 max=255 value=0)
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
label(for="brightness") brightness
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
//- to do
input#dithering(type="checkbox")
label(for="dithering") dithering
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
//- to do
input#smoothing(type="checkbox")
label(for="smoothing") smoothing
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
#output.section
h2 output
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
canvas#room-output(width=128, height=128)
2017-12-22 17:22:08 +00:00
label#never never
input#threshold(type="range" min=0 max=64 value=64)
label#always always
br
label(for="threshold") create new tiles
br
2018-03-03 11:55:42 +00:00
input#roomName(type="text", placeholder="room name")
2017-12-23 20:41:40 +00:00
2018-03-03 11:55:42 +00:00
button#save write to game data
2017-12-23 20:41:40 +00:00
2018-03-03 11:55:42 +00:00
//- to do
2018-03-03 11:55:42 +00:00
//-label favour broad strokes | favour details
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
br
2017-12-22 17:22:08 +00:00
2018-03-03 11:55:42 +00:00
//-button Download