I'm an Aussie highschool student in year 12. I code, I music, I play hockey, I code, I play TF2. Oh, and I do homework. I'm making CODENAME LITHIUM, a 2D platformer with a personal story to tell.

  • View media
  • View media
Report RSS CODENAME LITHIUM: AI Test1
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

Description

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.