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

Поділитися
Вставка
  • Опубліковано 10 лип 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...

КОМЕНТАРІ • 18

  • @buggybaka
    @buggybaka 3 роки тому +9

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

    • @sadmansakibkhan8667
      @sadmansakibkhan8667 3 роки тому

      are you a dani fan

    • @buggybaka
      @buggybaka 3 роки тому

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

  • @fudgeracoon2529
    @fudgeracoon2529 3 роки тому +6

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

  • @runpro933
    @runpro933 3 роки тому +1

    Watch again and again this great series ! :)

  • @ComputerScienceSimplified
    @ComputerScienceSimplified 3 роки тому +3

    Awesome video, keep up the incredible work! :)

  • @Destroyer19941995
    @Destroyer19941995 3 роки тому +1

    Awesome tutorial thank you

  • @luandkg
    @luandkg 3 роки тому +1

    I love this series 😆😆😆😆

    • @GamesWithGabe
      @GamesWithGabe  3 роки тому

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

  • @MD-vc7oh
    @MD-vc7oh 3 роки тому +1

    please continue this series

  • @AROD-oh5ez
    @AROD-oh5ez 3 роки тому +1

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

  • @sadmansakibkhan8667
    @sadmansakibkhan8667 3 роки тому +1

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

    • @GamesWithGabe
      @GamesWithGabe  3 роки тому +2

      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 3 роки тому +1

      @@GamesWithGabe thank you

  • @extrem2497
    @extrem2497 3 роки тому +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 2 роки тому

    where is editorUpdate coming from?