Slay the Spire Clone Godot 4 Tutorial: Card Dragging & State Machines (02/08)
GodotGameLab GodotGameLab
4.34K subscribers
24,390 views
0

 Published On Nov 25, 2023

Welcome to the second installment of the "Slay the Spire Clone in Godot" series using the powerful Godot engine! šŸŽ®
In this beginner-intermediate tutorial, we'll continue our game development journey by implementing the main card dragging mechanic for our game. Let's dive in!

šŸš€ Part 2 - Card Dragging Mechanic & State Machines
00:00 - Slay the Spire demo
00:40 - End result
01:29 - Creating the CardUI Scene
08:23 - Adding CardDropArea and Hand to the Battle Scene
13:06 - State Machine explanation
15:43 - Basic CardUI and CardState base class scripts
18:47 - Coding the CardStateMachine
21:06 - Adding Nodes and Scripts for the 4 States
23:00 - Coding the Base State
25:09 - Coding the Clicked State
26:21 - Coding the Dragging State
30:27 - Coding the first version of the Released State
30:55 - Hooking up all the systems, fixing bugs
42:10 - Using the CardDropArea do detect if we should reset the CardUI
46:27 - Fixing one last bug and wrapping up

šŸ‘©ā€šŸ’» Source code for Season 1 on GitHub:
https://github.com/guladam/deck_build...

šŸŽ“ Learn More About Godot:
Godot Docs:
https://docs.godotengine.org/en/stabl...
https://docs.godotengine.org/en/stabl...

Heartbeast:
Ā Ā Ā ā€¢Ā GodotĀ 4Ā TutorialĀ -Ā HeartĀ PlatformerĀ Ā 

Card Fanning Tutorial by Bramwell:
Ā Ā Ā ā€¢Ā HowĀ IĀ FanĀ 3DĀ CardsĀ inĀ GodotĀ 4Ā Ā 

ā˜• If you want to support me, buy me a coffee at:
https://ko-fi.com/godotgamelab

šŸ”„ Connect with Me:
Instagram: Ā Ā /Ā adamgulacsiĀ Ā 
Twitter: Ā Ā /Ā adam_gulacsiĀ Ā 
Mastodon: https://mastodon.gamedev.place/@guladev

#godot #godotengine #2d #tutorial #godotgamelab

show more

Share/Embed