Added new tilesets
This commit is contained in:
parent
31e503faac
commit
24bc843e00
6
demo/README.md
Normal file
6
demo/README.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# Demo application for mapgen
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
This app uses:
|
||||||
|
* [Urizen OneBit Tilesets](https://vurmux.itch.io/urizen-onebit-tilesets)
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
BIN
demo/assets/texture/basic.png
Normal file
BIN
demo/assets/texture/basic.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
8
demo/assets/texture/basic.ron
Normal file
8
demo/assets/texture/basic.ron
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#![enable(implicit_some)]
|
||||||
|
|
||||||
|
Grid((
|
||||||
|
texture_width: 261,
|
||||||
|
texture_height: 261,
|
||||||
|
columns: 20,
|
||||||
|
rows: 20,
|
||||||
|
))
|
|
@ -98,7 +98,7 @@ impl SimpleState for PlayState {
|
||||||
init_map(&mut world);
|
init_map(&mut world);
|
||||||
|
|
||||||
let map_sprite_sheet_handle =
|
let map_sprite_sheet_handle =
|
||||||
load_tiles_sprite_sheet(world, "texture/cp437_20x20.png", "texture/cp437_20x20.ron");
|
load_tiles_sprite_sheet(world, "texture/ascii.png", "texture/ascii.ron");
|
||||||
|
|
||||||
let (width, height) = {
|
let (width, height) = {
|
||||||
let dim = world.read_resource::<ScreenDimensions>();
|
let dim = world.read_resource::<ScreenDimensions>();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user