Today I worked on vector math to eventually implement back-face culling. I spent about an hour on that and then I ported the renderer so far to PICO-8: And it only took about 30 minutes! Working in C really makes me appreciate how much PICO-8 does behind the scenes. PICO-8 can’t load files directly, so…
Learning C, Day 8 (Loading OBJ Files)
Today I spent about two and a half hours on the course and I got my renderer loading OBJ files! So I had to render the Blender Suzanne monkey: I’m pretty sure my method of parsing OBJ files is awful, so I’ll probably rewrite it at some point. Here’s the code snippet: I’ll see you…
Learning C, Day 7 (Wireframe Cube)
I spent about four hours on the course today and I made a new cube: Things I worked on: Fixing the game loop to run at a constant speed Adding types for working with triangles DDA line drawing Maybe it doesn’t look as cool as the last one, but this one uses a system of…
Learning C, Day 6 (Point Cube)
Finally some 3D today! But first, Vim. I spent about half an hour just messing around in Vim and after that I used it for the rest of the day. Vim is so cool. It has shortcuts and commands for everything. A few times I found myself guessing commands correctly. For example, “$” means “move…
Learning C, Day 5 (Drawing Grids)
About an hour and a half learning C and 3D graphics today. I’m really enjoying the course so far. Not a whole lot to report on, I just refactored the code and wrote functions for drawing rectangles, grids, and single pixels. Note: I’ve got to learn vim. The course instructor is zooming in vim. Makes…
Learning C, Day 4 (3D Graphics Beginning)
Recently I’ve been playing some 3D PICO-8 games and I’m intrigued as to how the game creators squished 3D graphics into PICO-8’s limitations. I have experience with Blender, so I’m familiar with the high level concepts of 3D graphics, but I don’t understand how they work at a low level. So… I got a course…
Recipe for an Epic Sandwich
This recipe makes one classic sandwich, although it can be adapted to triple decker or standwich. Ingredients 2+ slices of ham or turkey lunch meat 2+ slices of mid-sourdough bread 2+ slices of colby jack or smoked gouda cheese 2 tbs butter 1 egg Aldi Everything Bagel Seasoning (not totally essential, but it does elevate…
Learning C, Day 3
I spent about 3 hours today learning C. I found an excellent blog with C tutorials: flaviocopes.com I also cobbled together a text colorizing program for Windows. Windows Batch can’t print colored text without changing the already printed text, but this program can do that. I’m at the point of being able to copy and…
Learning C, Day 2
So I spent about 2 hours today learning C and I finally got to pointers. C is so quirky and I love it. I finished the first tutorial and now I’m reading Modern C by Jens Gustedt. I’m working on a text adventure game and I’m googling how to do almost everything. Most of the…
Learning C
Earlier today I was reading an older book about microcomputers and how the only languages available at the time were FORTRAN, Basic, and Assembly. The book was published in 1977, so I wondered if C was available at the time. Turns out it was, but while I was on the Wikipedia page about C, I…
Optimizing The Bubbles Screensaver (PICO-8)
I was tinkering with the PICO-8 bubble screensaver today and I found a simple optimization that allows the game to support 50 bubbles instead of 40. (Edit: I’ve since optimized it again) Background The game needs to know which bubbles are colliding so that it can push them apart. The easiest method of finding which…
Mini Programs in ><>
Some mini programs I made in ><>, which is a 2D esoteric programming language. Here’s the wiki page about it. To run these programs, paste them into the online interpreter (the site is down right now, so that link is to the internet archive). The programs A mini text game, use y/n to answer questions:…
Peepo Drawing #7, “Looking Outside”
Peepo Drawing #6, “Sandwich”
Peepo Drawing #5, “Reading”
Physics Demo (PICO-8)
Verlet integration! The physics code is from Coding Math’s excellent tutorial series on youtube. I finished the tutorial and thought it would be fun to make an editor to go along with it. Controls: Left click and drag to move points Left click on a point to make it static Left click on an empty…
Bubbles Screensaver (PICO-8)
Hey Everyone! I’m making things in PICO-8! If you’re unfamiliar with PICO-8, it’s a fantasy console for making small games and other programs. Here’s their website. As a kid, I remember being fascinated by the Windows 7 bubbles screensaver and I thought the bubbles would work well in PICO-8. So here it is! Controls: Z…