Compare commits
3 Commits
noise-redu
...
b157007ff3
| Author | SHA1 | Date | |
|---|---|---|---|
| b157007ff3 | |||
| 704f710047 | |||
| 5c4259d222 |
27
index.pug
27
index.pug
@@ -12,7 +12,7 @@ html(lang="en-gb")
|
||||
| pixsy
|
||||
//img(alt="pixsy" src="includes/pixsy.png")
|
||||
p.
|
||||
convert images to Bitsy rooms
|
||||
version 0.72.7
|
||||
|
|
||||
#[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]
|
||||
.pages
|
||||
.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#load load an existing bitsy game
|
||||
.page.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
|
||||
|
||||
textarea#game-data(
|
||||
@@ -78,11 +96,6 @@ html(lang="en-gb")
|
||||
| dither
|
||||
br
|
||||
|
||||
label
|
||||
input#filter(type="checkbox")
|
||||
| filter
|
||||
br
|
||||
|
||||
button.pagination.prev#back-to-image previous
|
||||
button.pagination.next#room-next add room
|
||||
.page.download
|
||||
|
||||
@@ -8,7 +8,6 @@ import init, {
|
||||
output,
|
||||
set_brightness,
|
||||
set_dither,
|
||||
set_filter,
|
||||
set_palette,
|
||||
set_room_name,
|
||||
} from './pkg/pixsy.js';
|
||||
|
||||
@@ -33,7 +33,6 @@ struct State {
|
||||
room_name: Option<String>,
|
||||
palette: SelectedPalette,
|
||||
dither: bool,
|
||||
filter: bool,
|
||||
brightness: i32,
|
||||
}
|
||||
|
||||
@@ -45,7 +44,6 @@ lazy_static! {
|
||||
room_name: None,
|
||||
palette: SelectedPalette::None,
|
||||
dither: true,
|
||||
filter: false,
|
||||
brightness: 0,
|
||||
}
|
||||
);
|
||||
@@ -133,12 +131,6 @@ pub fn set_dither(dither: bool) {
|
||||
state.dither = dither;
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn set_filter(filter: bool) {
|
||||
let mut state = STATE.lock().unwrap();
|
||||
state.filter = filter;
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn set_palette(palette_id: &str, background: String, foreground: String) {
|
||||
let mut state = STATE.lock().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user