Add sprites that are a bit more fun
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 162 B After Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 131 B After Width: | Height: | Size: 397 B |
BIN
resources/images/original/box.png
Normal file
After Width: | Height: | Size: 197 B |
BIN
resources/images/original/box_spot.png
Normal file
After Width: | Height: | Size: 162 B |
BIN
resources/images/original/floor.png
Normal file
After Width: | Height: | Size: 131 B |
BIN
resources/images/original/player.png
Normal file
After Width: | Height: | Size: 264 B |
BIN
resources/images/original/wall.png
Normal file
After Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 669 B |
Before Width: | Height: | Size: 167 B After Width: | Height: | Size: 598 B |
64
src/main.rs
@ -172,6 +172,22 @@ pub fn initialize_level(world: &mut World) {
|
|||||||
z: 0, // we will get the z from the factory functions
|
z: 0, // we will get the z from the factory functions
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
create_floor(
|
||||||
|
world,
|
||||||
|
Position {
|
||||||
|
x: 0,
|
||||||
|
y: 1,
|
||||||
|
z: 0,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
create_player(
|
||||||
|
world,
|
||||||
|
Position {
|
||||||
|
x: 0,
|
||||||
|
y: 1,
|
||||||
|
z: 0, // we will get the z from the factory functions
|
||||||
|
},
|
||||||
|
);
|
||||||
create_wall(
|
create_wall(
|
||||||
world,
|
world,
|
||||||
Position {
|
Position {
|
||||||
@ -180,6 +196,14 @@ pub fn initialize_level(world: &mut World) {
|
|||||||
z: 0, // we will get the z from the factory functions
|
z: 0, // we will get the z from the factory functions
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
create_floor(
|
||||||
|
world,
|
||||||
|
Position {
|
||||||
|
x: 1,
|
||||||
|
y: 1,
|
||||||
|
z: 0,
|
||||||
|
}
|
||||||
|
);
|
||||||
create_box(
|
create_box(
|
||||||
world,
|
world,
|
||||||
Position {
|
Position {
|
||||||
@ -188,6 +212,46 @@ pub fn initialize_level(world: &mut World) {
|
|||||||
z: 0, // we will get the z from the factory functions
|
z: 0, // we will get the z from the factory functions
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
create_floor(
|
||||||
|
world,
|
||||||
|
Position {
|
||||||
|
x: 2,
|
||||||
|
y: 1,
|
||||||
|
z: 0,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
create_box(
|
||||||
|
world,
|
||||||
|
Position {
|
||||||
|
x: 2,
|
||||||
|
y: 1,
|
||||||
|
z: 0, // we will get the z from the factory functions
|
||||||
|
},
|
||||||
|
);
|
||||||
|
create_box_spot(
|
||||||
|
world,
|
||||||
|
Position {
|
||||||
|
x: 3,
|
||||||
|
y: 0,
|
||||||
|
z: 0, // we will get the z from the factory functions
|
||||||
|
},
|
||||||
|
);
|
||||||
|
create_box_spot(
|
||||||
|
world,
|
||||||
|
Position {
|
||||||
|
x: 3,
|
||||||
|
y: 1,
|
||||||
|
z: 0, // we will get the z from the factory functions
|
||||||
|
},
|
||||||
|
);
|
||||||
|
create_box(
|
||||||
|
world,
|
||||||
|
Position {
|
||||||
|
x: 3,
|
||||||
|
y: 1,
|
||||||
|
z: 0, // we will get the z from the factory functions
|
||||||
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|