Profile avatar
iolivia.me
👩‍💻 staff eng 🦀 post a lot about rust and rust gamedev ✍️ wrote https://sokoban.iolivia.me 🔥 blog at https://iolivia.me
419 posts 310 followers 68 following
Regular Contributor
Active Commenter

🥡 Understanding Box<T> in #rustlang Box<T> is a smart pointer that allows storing values on the heap instead of the stack. Here's a basic example with our student example. Let’s break down further why and when to use it 🧵 👇

More HexGame updates, we add ports ⛵ In order to be able to reuse the same asset, I've added a rotation to the renderable component, so each port can be initialised with it's hex position and a rotation which matches where it is in the map! #rustlang #gamedev

#rustlang Crate Highlight ✨serde ✨ Serde is the go to framework for serializing and deserializing Rust data structures efficiently and generically. It's one of the most used crates (455M downloads as I write this). 📦 Crates:

#rustlang Ownership & Borrowing: 5 Techniques to Avoid Issues ⛵ Rust’s ownership model prevents a lot of bad things from happening , but let's be honest it can be a bit frustrating to work with as a beginner. Here are 5 techniques to avoid borrowing issues when managing data 🧵 👇

Next up on HexGame, rotating shapes when the R key is pressed ↪️ For now we only rotate in one direction but eventually we'll have a way to rotate left and right. The code is pretty simple, if the R key is pressed we change the shape based on the rotation. #rustlang #gamedev

💠 🤏 Creating and dragging shapes Next up, we create a single off screen draggable shape, and make sure it drags properly 1️⃣ Extend dragging component to have an offset 2️⃣ Create the shape 3️⃣ Include the offset when creating and dragging #rustlang #gamedev

#rustlang Crate Highlight ✨hecs ✨ My favourite ECS impl is hecs, it has a very simple API (actually bevy-ecs is a fork of hecs), minimal feature set so it's very light on dependencies and size, and I pretty much never ran into something it didn't do well. 📦 Crates: https://crates.io/crates/h…

What are your best resources about #gamedev Utility AI? This video was pretty good, deep in the rabbit hole now looking for more to read up on - www.youtube.com/watch?v=ejKr... #gamedev #indiedev #indiegamedev

Checking the stats for 2025 for the #rustlang Sokoban Book this morning 📘 👉 sokoban.iolivia.me Not sure what happened on the 11th of Feb but happy about it 🤷‍♀️

After the MacBook gave up and I had to buy a new one, I decided to improve my setup/try some new things. Editor: @zed.dev Terminal: Mac terminal Shell: @nushell.bsky.social Pretty happy with zed and nu, both work super well with #rustlang. Not sure about the terminal though.