2D Animations | Coding a 2D Game Engine in Java #45
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...
Me: No you can't just put quality content for free on CZcams
Gabe: haha free quality content go brrrr
are you a dani fan
@@sadmansakibkhan8667 yea I know dani the guy how has more than 2Ml subs like mom jokes and is addicted to milk
Great content as always, never stop teaching us !!!
Awesome video, keep up the incredible work! :)
Thanks @ComputerScienceSimplified!
please continue this series
Awesome tutorial thank you
Watch again and again this great series ! :)
Thanks Demotrix!
I love this series 😆😆😆😆
Thanks Luan! Hopefully I'll be getting Mario working within the next few episodes haha
do you plan on making a game after youre finished with this? meaning, a tutoirial about making a game with this game engine
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.
where is editorUpdate coming from?
are you going to make a scripting language for the game ??
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 :)
@@GamesWithGabe thank you