Goomba AI | Coding a 2D Game Engine in Java #52

Sdílet
Vložit
  • čas přidán 17. 05. 2024
  • Join the Discord: / discord
    In this episode we implement a Goomba AI. This involves adding an enemy that paces back and forth and will kill Mario, or damage Mario, whenever he runs into Mario. So, we also have to implement a death animation for Mario where he jumps up and falls off the screen, and we have to implement a damage animation for Mario. We make use of several different features of this game engine to get the Goomba AI working pretty quickly. Finally we switch back to the base scene if the character dies, which reloads the level from the beginning.
    Code: github.com/codingminecraft/Ma...
    0:00 Intro
    0:33 Adding More Block Types
    3:50 Adding Goomba Prefab Selection
    5:49 Creating Goomba Prefab
    10:41 Abstracting Custom Physics Logic
    13:55 Giving the Goomba Custom Physics
    19:47 Making Goombas Smart
    24:54 Killing Goombas
    28:34 Making Goombas Deadly
    35:31 Blinking Mario when Damaged
    ---------------------------------------------------------------------
    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...

Komentáře • 9

  • @oguzhantopaloglu9442
    @oguzhantopaloglu9442 Před 2 lety +6

    Please never stop making this series, these videos are amazing

    • @GamesWithGabe
      @GamesWithGabe  Před 2 lety +2

      Once I finish coding Mario I plan on moving onto a new series. I'll definitely continue to add Game Engine specific content, but it will be in the form of standalone videos. And I think most people will enjoy the next series I have in mind as well :). I'll be making an announcement about it in another couple of weeks

  • @TheCodeHunter
    @TheCodeHunter Před 2 lety

    Love your videos don't stop plz

  • @meccraft0418
    @meccraft0418 Před 2 lety +1

    Congratulations for the 3000 subscribers!!! 🥳

  • @marcusslover
    @marcusslover Před 2 lety

    Awesome

  • @buggybaka
    @buggybaka Před 2 lety

    Please stop the series i am addicted!!

    • @GamesWithGabe
      @GamesWithGabe  Před 2 lety +1

      Lol reverse psychology? Don't worry I'll be releasing the next episode in a couple days :)