2D Animations | Coding a 2D Game Engine in Java #45

Sdílet
Vložit
  • čas přidán 20. 05. 2024
  • Join the Discord: / discord
    In this episode I go over how to implement a simple state machine based animator. This allows us to create different prefabricated game objects with state machines attached to them, and we can flip through multiple animations based on different triggers. I also go over a couple more bug fixes.
    0:00 Intro
    0:30 Visual Explanation
    3:28 Coding Animation State
    8:37 Coding State Machine
    19:41 Adding Prefabs with Animations
    23:36 Adding a State Machine to Mario
    27:07 Fixing Texture Refresh Bug
    ---------------------------------------------------------------------
    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 • 18

  • @buggybaka
    @buggybaka Před 3 lety +9

    Me: No you can't just put quality content for free on CZcams
    Gabe: haha free quality content go brrrr

    • @sadmansakibkhan8667
      @sadmansakibkhan8667 Před 3 lety

      are you a dani fan

    • @buggybaka
      @buggybaka Před 3 lety

      @@sadmansakibkhan8667 yea I know dani the guy how has more than 2Ml subs like mom jokes and is addicted to milk

  • @fudgeracoon2529
    @fudgeracoon2529 Před 3 lety +6

    Great content as always, never stop teaching us !!!

  • @ComputerScienceSimplified

    Awesome video, keep up the incredible work! :)

  • @MD-vc7oh
    @MD-vc7oh Před 3 lety +1

    please continue this series

  • @Destroyer19941995
    @Destroyer19941995 Před 3 lety +1

    Awesome tutorial thank you

  • @runpro933
    @runpro933 Před 3 lety +1

    Watch again and again this great series ! :)

  • @luandkg
    @luandkg Před 3 lety +1

    I love this series 😆😆😆😆

    • @GamesWithGabe
      @GamesWithGabe  Před 3 lety

      Thanks Luan! Hopefully I'll be getting Mario working within the next few episodes haha

  • @AROD-oh5ez
    @AROD-oh5ez Před 3 lety +1

    do you plan on making a game after youre finished with this? meaning, a tutoirial about making a game with this game engine

  • @extrem2497
    @extrem2497 Před 3 lety +2

    0:34 i think bone based animations looks better also most 2d games uses it. But sprite sheet method is much easier to implement on programming side.

  • @bytelaw1711
    @bytelaw1711 Před rokem

    where is editorUpdate coming from?

  • @sadmansakibkhan8667
    @sadmansakibkhan8667 Před 3 lety +1

    are you going to make a scripting language for the game ??

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

      Hey @Sadman! I won't be making a scripting language in Java for the game. I do want to have a series on writing a programming language in the future, but I'll probably be doing that in C++/C. If you want to read a good book that teaches you how to do this in Java though, check out this: craftinginterpreters.com/ . It's free and I cannot recommend it enough, and it teaches you how to write a programming language in Java :)

    • @sadmansakibkhan8667
      @sadmansakibkhan8667 Před 3 lety +1

      @@GamesWithGabe thank you