|
@@ -81,8 +81,7 @@ fn main() -> Result<(), GameError> {
|
|
|
game.register::<MoveLeft>();
|
|
|
game.world.print([1, 1], "Hello, world!");
|
|
|
|
|
|
- game.world.world
|
|
|
- .create_entity()
|
|
|
+ game.create_entity()
|
|
|
.with(Pos { x: 40, y: 25 })
|
|
|
.with(Renderable {
|
|
|
glyph: carpet::CP437::from_char('A'),
|
|
@@ -91,8 +90,7 @@ fn main() -> Result<(), GameError> {
|
|
|
.build();
|
|
|
|
|
|
for i in 0..10 {
|
|
|
- game.world.world
|
|
|
- .create_entity()
|
|
|
+ game.create_entity()
|
|
|
.with(Pos { x: i * 7, y: 20 })
|
|
|
.with(Renderable {
|
|
|
glyph: carpet::CP437::from_char('X'),
|