Mario Turtle AI | Coding a 2D Game Engine in Java #55 @GamesWithGabe
Mario Turtle AI | Coding a 2D Game Engine in Java #55  @GamesWithGabe
Uploaded August 2021 | Updated September 2026, 3 weeks ago
Join the Discord: discord.gg/4tHeAkxNg7

In this episode I go over how to code the Turtle AI for Mario. This is very similar to the Goomba AI, the main difference is for managing the turtle's state when he is spinning in a shell.

Code: github.com/codingminecraft/MarioYoutube/tree/5b0d14afae1c2ecff8525abdcc6c2e3e0da346ae

0:00 Intro
0:30 Adding a Button for Turtles
1:19 Adding a Turtle Prefab
3:44 Adding Physics to the Turtle AI
11:37 Handling Collisions with Turtles
18:23 Play Testing the Turtle AI

---------------------------------------------------------------------
Website: ambrosiogabe.github.io
Github: github.com/ambrosiogabe

Here are some books I recommend if you want to learn about game engine development more thoroughly. I do not profit off any of these sales, these are just some books that have helped me out :)

My Recommended Game Engine Books:
Game Engine Architecture: gameenginebook.com
Game Physics Cookbook (Read this before the next physics book): amazon.com/Game-Physics-Cookbook-Gabor-Szauer/dp/1787123669
Game Physics (Ian Millington): amazon.com/Game-Physics-Engine-Development-Commercial-Grade/dp/0123819768
Game Programming Patterns (Free): gameprogrammingpatterns.com

My Recommended Beginning Game Programming Books:
JavaScript Game Design: apress.com/gp/book/9781430247166

My Recommended Java Books:
Data Structures/Algorithms: amazon.com/Data-Structures-Algorithms-Java-6th-ebook/dp/B00JDRQF8C
LWJGL (Free, but I haven't read this thoroughly): lwjglgamedev.gitbooks.io/3d-game-development-with-lwjgl/content
Mario Turtle AI | Coding a 2D Game Engine in Java #55Dictionaries | Python for Absolute Beginners #10Editor Camera Controls with Lerp | Coding a 2D Game Engine in Java #33Alpha Blending and Z-Indexing | Coding a 2D Game Engine in Java #16What is Path??Translating 10,000 Lines of Java Code to C++ Part 1 | Cocoa Engine Devlog #9Particle Physics and Forces | Coding a 2D Physics Engine in Java #13Flipping Gravity PromoMouse Screen Coordinates to Game Viewport Coordinates  | Coding a 2D Game Engine in Java #30I Coded a Video Editor (and it kind of sucks)Debug Drawing Functions | Coding a 2D Game Engine in Java #24Creating 2D Primitives | Coding a 2D Physics Engine in Java #3
GamesWithGabe |

Mario Turtle AI | Coding a 2D Game Engine in Java #55

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER