Raycast In tldraw
For one of my tldraw projects I’ve been working on, I need to be able to know if something is under a shape. As someone who dabbles in game development, naturally I wanted to reach for a raycast so I could send out a ray and see if any shapes intersected with it. I looked in the tldraw docs and it doesn’t seem like functionality that exists in the base API, which makes sense because tldraw is not a game engine. So I figure I create it myself, how hard could it be? Let’s find out.
Tldraw - Can It Run Doom (Shapes)?
Ok so we did this before at Tldraw - Can It Run Doom? but we cheated a bit, we just compiled for WebAssembly and placed the canvas Emscripten created on the tldraw canvas.
But now let’s do it for real. Can tldraw run Doom, but with tldraw shapes to render the game’s pixels.
So we’re going to have the same setup as the last post. We’re starting with the changes we made to SDL-Doom to get it to compile and Emscripten installed. I’ll only be going over the things that are different between that post and this one.
Learning Language Through Code Comments
I’ve been trying, mostly unsuccessfully, to learn another language. I tried Duolingo, even with a subscription, and felt it was too gamified. I didn’t feel like I retained much of anything. In reality, I’m sure I probably retained more than I realize but I can’t really recall any particular lesson. I didn’t feel like much of the information stuck with me, other than a few basic words. Near the end I would only log in to get on the leaderboard.