CODENAME LITHIUM is a 2D platformer with interesting shooting mechanics. The game, when finished, will tell a personal story that I wish to share.
This video shows my first AI test for CODENAME LITHIUM.
Right now, the AI have only 3 actions they can do. They can move forward, jump, or turn around. Based on what the AI can see around it, it will pick an action to do.
The blue line that extends down from each AI is a depth test. If this line does not intersect the ground at any point, the AI will either turn around or, if it can find ground a short distance in front of it, attempt to jump the gap.
The green lines left behind each AI show the path that the AI took. Over time, some parts become brighter than others, so it also acts as a heatmap of sorts.
Finally, each AI also has a small red line in front of them. This line isn't visible in the video. It represents the eyes of the AI. If something intersects this line, the AI will look above it at 2 points (one for a small jump and one for a large jump), and try to jump the object. If the AI can't jump it, it will turn around. If 2 AI run into each other, they will either try to jump one another, or (more likely) turn around.