Posts
Filtered by “gamedev”: 23 Reset filter
A friend wanted a Secret of Evermore remake and I just wanted to pull the assets. I ended up letting the emulator render the game for me.
One ray per pixel, three balls on a checkerboard, shadows and reflections you can switch on and off. With a ray counter so you can see what…
Which 3D object is under the mouse? Pixel to ray, ray against sphere and box, the nearest hit wins. With a demo to try.
Is the cursor inside the shape? A ray to the right, count the crossings, and what happens when it hits a corner exactly. Ray casting and win…
Logic runs in fixed steps, drawing happens in between. Interpolation turns choppy motion into smooth motion.
A square that moves four pixels per frame runs at a different speed on every machine. With delta time it doesn't.
The simplest game loop depends on the speed of the machine. With a fixed timestep it doesn't.