Categories
Rust

World generation

I’m creating a console rpg to teach myself rust.Here’s the Git Hub repo of this project Let’s create a 2d grid world using tiles for the player to explore. First, we create a struct for the world containing a seed, width and height, a bool if it should wrap around, and a tile grid. Our […]

Categories
Rust

The Character

I’m creating a console rpg to teach myself rust.Here’s the Git Hub repo of this project Creating the character.rs, stats.rs, item.rs and inventory.rs Character We begin with the character, a struct that later will be used for both player npcs. A character has a name, a level, stats and an inventory. The stats are contained […]