3 Commits

Author SHA1 Message Date
b157007ff3 restrict file types and add help text about game data 2020-11-28 18:33:11 +00:00
704f710047 fix syntax 2020-11-28 15:57:19 +00:00
5c4259d222 better splash page for now 2020-11-28 15:15:40 +00:00
3 changed files with 20 additions and 16 deletions

View File

@@ -12,7 +12,7 @@ html(lang="en-gb")
| pixsy | pixsy
//img(alt="pixsy" src="includes/pixsy.png") //img(alt="pixsy" src="includes/pixsy.png")
p. p.
convert images to Bitsy rooms version 0.72.7
| |
#[a(href="http://tinybird.info/image-to-bitsy/old/" target="_blank") old version] #[a(href="http://tinybird.info/image-to-bitsy/old/" target="_blank") old version]
| |
@@ -21,12 +21,30 @@ html(lang="en-gb")
#[a(href="https://twitter.com/synth_ruiner") twitter] #[a(href="https://twitter.com/synth_ruiner") twitter]
.pages .pages
.page#start .page#start
p.
#[b pixsy] is a tool for #[a(href="http://bitsy.org/") Bitsy Game Maker]
that allows you to generate a room from an image and add it to your game.
p this version is compatible with Bitsy version 7.2 and earlier.
p.
#[b pixsy] does not currently work via the Itch desktop program.
some users are also currently reporting problems.
if pixsy does not work for you, please try the
#[a(href="http://tinybird.info/image-to-bitsy/old/") old version] instead.
p.
instructions can be found on the
#[a(href="https://ruin.itch.io/pixsy/") itch.io page] -
scroll down to "how to use".
button.normal.pagination.next#new create a new bitsy game button.normal.pagination.next#new create a new bitsy game
button.normal.pagination.next#load load an existing bitsy game button.normal.pagination.next#load load an existing bitsy game
.page.game-data .page.game-data
h2 game data h2 game data
input#game(type="file" autocomplete="off") p.
your game data is available from the #[i game data] window in bitsy,
under the #[i tools] dropdown.
input#game(type="file" accept=".bitsy,.txt" autocomplete="off")
br br
textarea#game-data( textarea#game-data(
@@ -78,11 +96,6 @@ html(lang="en-gb")
| dither | dither
br br
label
input#filter(type="checkbox")
| filter
br
button.pagination.prev#back-to-image previous button.pagination.prev#back-to-image previous
button.pagination.next#room-next add room button.pagination.next#room-next add room
.page.download .page.download

View File

@@ -8,7 +8,6 @@ import init, {
output, output,
set_brightness, set_brightness,
set_dither, set_dither,
set_filter,
set_palette, set_palette,
set_room_name, set_room_name,
} from './pkg/pixsy.js'; } from './pkg/pixsy.js';

View File

@@ -33,7 +33,6 @@ struct State {
room_name: Option<String>, room_name: Option<String>,
palette: SelectedPalette, palette: SelectedPalette,
dither: bool, dither: bool,
filter: bool,
brightness: i32, brightness: i32,
} }
@@ -45,7 +44,6 @@ lazy_static! {
room_name: None, room_name: None,
palette: SelectedPalette::None, palette: SelectedPalette::None,
dither: true, dither: true,
filter: false,
brightness: 0, brightness: 0,
} }
); );
@@ -133,12 +131,6 @@ pub fn set_dither(dither: bool) {
state.dither = dither; state.dither = dither;
} }
#[wasm_bindgen]
pub fn set_filter(filter: bool) {
let mut state = STATE.lock().unwrap();
state.filter = filter;
}
#[wasm_bindgen] #[wasm_bindgen]
pub fn set_palette(palette_id: &str, background: String, foreground: String) { pub fn set_palette(palette_id: &str, background: String, foreground: String) {
let mut state = STATE.lock().unwrap(); let mut state = STATE.lock().unwrap();