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

Rust Limericks

Rust concepts in Limerick form I asked ChatGPT to explain the fundamentals of Rust in limerick form. It helped me gain a quick grasp of the core concepts. Chapters Chapter 1: Ownership Chapter 2: Borrowing Chapter 3: Lifetimes Chapter 4: Pattern Matching Chapter 5: Traits & Generics Chapter 6: Result & Option Chapter 7: Modules […]

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 […]