Android Game Tutorial - THE JOYSTICK - Ep06

Опубликовано: 21 Октябрь 2024
на канале: Kaarin Gaming
1,984
73

⏱ ** Timestamps ** ⏱
00:00 Intro
01:22 Recap
01:52 Joystick Explained
02:46 TouchEvent Class
10:08 Inside Circle Check
15:58 Triangle Draw
22:22 Update Player Move
36:20 Player Direction Check
41:04 Outro

🤖 ** LINKS ** 🤖
🤝 Membership -    / @kaaringaming  
🙌 Support - https://www.buymeacoffee.com/kaaringa...
😸 gitHub - https://github.com/KaarinGaming/Andro...
🖼 Website - https://www.kaaringaming.com/
🗨 Discord -   / discord  
🗯 Twitter -   / kaaringaming  

🎨 ** Graphics and Audio ** 🎨
I am not the author of the assets used in this turorial.
I am using this: https://pixel-boy.itch.io/ninja-adven...
If you end up using the same assets in your project, give them credit.

🎬 ** This Episode Unique Information ** 🎬
Today we add a "joystick" to our game. This is to allow the player to move in any direction. We also go over how this works with a temporary triangle. It helps us to visualize the angle.
With some sin, cos and tan we can get speeds for our x and y direction for the player, to move in a constant speed, regardless of the direction.


📚 ** Android Game Tutorial ** 📚
In this tutorial we will learn how to create a game in android.
Some of the things we will cover are:
Rendering
Gameloop
User Inputs
Load & Save
Audio
Gamestates
Animation
Events
and much more!

The code & assets for this tutorial will be uploaded to github.
There is a discord server for this YouTube channel that you can join to discuss game development and the tutorials of this channel.

#android #howto #code #gamedev #java #kaaringaming