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

Поделиться
HTML-код
  • Опубликовано: 4 июл 2024
  • Join the Discord: / discord
    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/Ma...
    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: www.gameenginebook.com/
    Game Physics Cookbook (Read this before the next physics book): www.amazon.com/Game-Physics-C...
    Game Physics (Ian Millington): www.amazon.com/Game-Physics-E...
    Game Programming Patterns (Free): gameprogrammingpatterns.com/
    My Recommended Beginning Game Programming Books:
    JavaScript Game Design: www.apress.com/gp/book/978143...
    My Recommended Java Books:
    Data Structures/Algorithms: www.amazon.com/Data-Structure...
    LWJGL (Free, but I haven't read this thoroughly): lwjglgamedev.gitbooks.io/3d-g...

Комментарии • 18

  • @hilbert_curve3680
    @hilbert_curve3680 2 года назад +4

    This has come a long way from rendering the first triangle. Keep up the good work!

    • @GamesWithGabe
      @GamesWithGabe  2 года назад +1

      That is true. I always like how development seems to "speed up" once you get all the core engine parts out of the way :)

  • @DevNugget
    @DevNugget 2 года назад +1

    Poggers! I say this everytime but its so cool how long this series has come out

    • @GamesWithGabe
      @GamesWithGabe  2 года назад +1

      Thanks DevNugget! And it has been awhile haha. Hopefully I'll be moving on to another series pretty soon though :)

  • @christianzimmer647
    @christianzimmer647 2 года назад +1

    Thank you Gabe for these awesome tutorials ! Cool to see someone spreading his knowledge in such a good and informative way.

    • @GamesWithGabe
      @GamesWithGabe  2 года назад

      No problem! I'm glad that they're still helping you guys out, and hopefully I can start another series pretty soon :D

  • @DavidB-ln6rd
    @DavidB-ln6rd 2 года назад +1

    Awesome work

  • @hugoblommaskog7268
    @hugoblommaskog7268 2 года назад +4

    Gabe I watched the first videos in this series about a year ago and I was happy to find that you are still working on it. I was wondering if you could maybe move on to 3d as your tutorials are both instructive and up to date, as opposed to all others I find.

    • @GamesWithGabe
      @GamesWithGabe  2 года назад +1

      Hey Hugo, I'm glad that you've been finding the tutorials useful! I do plan on transitioning to 3D pretty soon, however it will be an introduction to 3D by coding a Minecraft clone. So I won't be covering "traditional" 3D techniques, but it should still be pretty helpful if you've never worked with it before :)

    • @hugoblommaskog7268
      @hugoblommaskog7268 2 года назад +1

      @@GamesWithGabe For sure I'll be following that series. I'm currently working on an engine and it'll be a great addition with whatever you provide 3D-wise :)

  • @luandkg
    @luandkg 2 года назад +1

    The best notification of my day !

    • @GamesWithGabe
      @GamesWithGabe  2 года назад +2

      It's funny you say that, because your comments are always best notifications of my day :D

  • @buggybaka
    @buggybaka 2 года назад

    Hey gabe!!, i git my nee pc ryzen 9 3900XT, and i am so excited i will go through all of your videos, expect to get a view for every video from me!!

    • @GamesWithGabe
      @GamesWithGabe  2 года назад

      Haha nice CGO Clan! That's a pretty sick PC, and hopefully you'll be able to play some cool games with it and develop some cool games as well :)

  • @Speiger
    @Speiger 2 года назад +1

    Why don't you suggest "refactor" options when editing code on this scale. Yes the editor tells you variable is no longer present, but it fixes potential problems of a mistake.
    Also i would suggest a "Prefab" registry that imgui is using that would clean the code too where you don't have to copy paste code and could even simplify the code very easily.
    Why i suggest this. Because registries are really important in general. It allows to reduce "Hardcoding" of things and add dynamically too. You still get the same examples but if you want to add something dynamic to it a registry would allow it to be added later. (Expansions etc) Its also a good practice too.

    • @GamesWithGabe
      @GamesWithGabe  2 года назад

      I'm not worrying too much about the code in this tutorial series at this point because I'm mainly trying to finish the series. I feel like all the core features of the engine have been completed, and everything I'm adding now is just to demonstrate how you could use it.
      When I close off the series though I do want to add a "things I would change/refactor" section of the last video. Can you give me any tutorials you've found about the registry too? I've looked around a bit, but I haven't found anything very good and didn't know if you had some good articles on hand :)

  • @gentworm2377
    @gentworm2377 2 года назад +1

    Automatic like