Merge branch 'main' of ssh://tudbut.de:222/HAWGameJam13/game
This commit is contained in:
commit
c59b0bd20d
4 changed files with 2 additions and 2 deletions
BIN
assets/Block_jugenstil1.png
Normal file
BIN
assets/Block_jugenstil1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 MiB |
BIN
assets/Block_jugenstil2.png
Normal file
BIN
assets/Block_jugenstil2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 MiB |
Binary file not shown.
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 1.5 MiB |
|
@ -67,8 +67,8 @@ pub(super) fn import_text_world(
|
||||||
mut player_spawn_oneshot: Res<PlayerSpawnOneshot>,
|
mut player_spawn_oneshot: Res<PlayerSpawnOneshot>,
|
||||||
) {
|
) {
|
||||||
let world_string = fs::read_to_string("assets/world.txt").expect("need a world to load");
|
let world_string = fs::read_to_string("assets/world.txt").expect("need a world to load");
|
||||||
let [info_string, world_string] = &readf("info section\n{}\nworld section\n{}", &world_string)
|
let [info_string, world_string] =
|
||||||
.expect("world does not have sections")[..]
|
&readf("header\n{}\nbody\n{}", &world_string).expect("world does not have sections")[..]
|
||||||
else {
|
else {
|
||||||
unreachable!()
|
unreachable!()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue