Day 0, Tuple Basics
Oops, I started a day early.
So, this book really builds from the bottom, starting out by defining a basic 4D tuple (x,y,z,w)
, and a neat trick for representing 3D points and vectors by storing a magic value in the w
component. To keep with that intent, and to refresh my linear algebra skills, I’ll pretend the matrix
package in Ruby stdlib doesn’t exist, and build everything from scratch.
Pushed to GitHub, and done for the day.
Next related
Day 1, Overdoing it
The first proper day of Devember is here. Of course I overdid it and spent all day coding, instead of just that one hour.
Previous related
Devember is Coming
It’s that time of the year again.
Momentum Lost
All the setbacks and distractions made me lose the momentum I needed to keep going at this thing, despite everything else that exhausts my energy.
SpriteKit evolved
While poking around, I saw an intriguing class named SKTileMapNode, and it turns out that SpriteKit has gained support for rectangular, isometric, and hexagonal tile maps since last year. Looks like I can drop all of the plans for GridMapKit and just use what’s there in the SDK already. Maybe I’ll still need some of it to implement the plans for hierarchical maps of different scale, e.g. world map, detailed terrain maps, and building/dungeon maps.