First Games in C++: Krazy Karts (v0.72) - AI Finishes Complex Lap (Just!!) @s0lly
First Games in C++: Krazy Karts (v0.72) - AI Finishes Complex Lap (Just!!)  @s0lly
Uploaded March 2019 | Updated September 2026, 2 hours ago
A video in a series, finishing with my next game, Krazy Karts!

This video is from the perspective of an AI Kart and demonstrates the first time I've been able to get AI to complete a lap on a "complex" track - i.e. a track that is not simply "turn left" or "drive straight" as per my other map / video.

The technique I've used so far (very simple, needs a lot of work of course!) is a "feeler" approach. The AI currently extends 3 feelers that "see" what the racecourse looks like in the distance, and decides whether to turn or continue straight, and whether to accelerate or break.

I'm planning on building on this approach by adding more "feelers" and have a relatively complex set of "thoughts" for the AI to decide what actions to take.

To simplify things, I've made a second map that looks exactly as the racecourse but has the general area that the AI should drive in laid out. This just simplifies the calculations but does lead to some driving on the yellow sideroad areas at the moment.

Clearly, the AI needs work as all the other Karts got completely sidetracked! I'll be focusing on fine-tuning the behaviour so they can all complete the race on this map and hopefully on others.

This game uses a simple 2D game engine with pseudo-3d techniques: decidedly retro. I'm using a tweaked version of the one presented by javidx9; watch his brilliant tutorial here: youtu.be/ybLZyY655iY

Using the Chili Framework: http://wiki.planetchili.net/index.php... - thanks Chili!

I will release the game on itch and all code on GitHub once I've finalised the game.
First Games in C++: Krazy Karts (v0.72) - AI Finishes Complex Lap (Just!!)Ray Tracing in C++: Setting the SceneKrazy Karts Intro (COMING SOON)Channel SoundtrackGame Engine 22: Simple DronesOpenGL Engine - Showcase 5: Particle EffectsSimple 2D Game Engine in C++: Draft 4 - Advanced PhysicsFirst Games in C++: Krazy Karts (v0.79) - Jumps!Pseudo 3D Graphics Engine! [v2 - Sprite Animation]Building PlatformsOpenGL Engine - Showcase 1: 10k CubesFirst Games in C++: Krazy Karts (v0.1)
s0lly |

First Games in C++: Krazy Karts (v0.72) - AI Finishes Complex Lap (Just!!)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER