This site is currently a WIP

Aim Trainer

Using the 3d camera mode raylib example as a base, I experimented with raylib until I ended up with what is now a simple aim trainer.

The 3d camera mode example came with a camera already defined with a grid and cube already set up to look at. So quite a lot happened to get to the result in the video above. A brief breakdown of what I added:

Next I moved onto trying to make it a bit more dynamic. A new cube would spawn within a defined area, with up to 10 cubes being alive at any one time. And now instead of changing colour when you click the cube, it would be destroyed.

An issue I needed to solve was if you lined up more than one cube and clicked them, all the cubes under your reticle would be destroyed. To fix this I needed to get the cube which was the shortest distance from the camera and only destroy that one.

Which leads us to this more gamified version.