Screenshot Saturday

a blue ghost with a little tie
a grey box with little people in it, one is a ghost, the other look like they work in a supermarket

I just finished a thing called Ghost Boss, a month long project to learn Rust and Godot. It went well!

It exposed me to some ideas that I've had in my head and never been able to vocalize before, such as packing an object with different sized objects. This particular implementation drove me bonkers because I was working under the false assumption that a 10 pixel wide box would move the same as a 20 pixel wide box. Untrue. However after a day of making a mess of it, I managed to get it perfectly.

A little warehouse worker in front of a wrapped package, the package itself is sitting offset and to the top of the wrapping

Ok not perfectly, but it was the last thing I did, and it drained me to look at the code any more. The fix was to make all sprites the same size, so one 10 pixel wide box has a footprint of a 150x200 pixel person. Not ideal, but it worked. I was coming up on the deadline and was happy to be moving on to things I've never done, like optimization or managing memory bugs. I'm happy with the result. 0 leaks! (where your memory doesn't get cleared) 0 doublefrees!(where you clear a cleared bit of memory) Overall, I learned a lot. I'm also happy to state that I'm ready to work on something new. First order of business is reading The Rustonomicon and doing Blender Training for a month or however long it'll take me to make it through The Nomicon. I expect the blender training to be more of a longer term goal, as it's a new set of art to work at and I'll need at least a month before I'm creating a full project(I assume).

Anyways, cheers! Don't let (waves hands) all this kill your spirit of optimism!

Subscribe to localtoast.ca

Sign up now to get access to the library of members-only issues.
Jamie Larson
Subscribe