Android Studio 2D Game #1 – The Game Loop
In this tutorial series I will be showing you how to make a 2D game in Android Studio. This first episode shows you how to implement a simple game loop and by the end of the video you should be printing your FPS to the console.
Thanks for watching!
Instagram: @theretrochicken
Twitter: @theretrochicken
All credit for the code in this video goes to Paymon Wang-Lofti, his channel can be found at Note that I am not endorsed or sponsored by Paymon Wang-Lofti. This video has been made for educational purposes and for that reason it is not monetized.
Sorry guys but while(true) at minute 9:00 won't get stuck? should'nt we write while(retry)?
Im a noob for sure but when I type @Override I get error messege : method does not override method from its super class?????
It is very difficult to read what you're typing. Please make your text size bigger
Yo, you need to continue this series.
Nice tutorial very informative. if you like you can check mine. Ive created a small tutorial about "How to add a button to a SurfaceView in Android" https://www.youtube.com/watch?v=8qE9TQjQ5no and tell me your opinion or your suggestions
I followed all but my screen view is always black
Perfect speed for me to learn, you simply show how its done, awesome! Idk why people are bitching around here. Anyways, thank you very much!
MUMBO JUMBO MUSIC FOR INTRO!!!!!!!!!!!! Good choice tho cuz I dance to it
I kept getting error messages all over the place.
I think I should find another tutorial.
My biology teacher in highschool was like you. She was throwing all that scientific names to our face without an explaination and expecting us to understand them automaticaly. Then she was ending the class after all her bullshit. And when we asked her what are all these names what they mean what they do, she would get angry at us for being such idiots.
Can't seem to import Canvas, just straight up won't let me.
you must have to joom it.
How to add the gamePanel to an xml layout? It shows an error on inflating the class when I try doing that.
Baldi actually teaches something for once
usfeul bro
Thanks for sharing your knowledge! I created my own app after your tutorial and published it on Google PlayStore. It is called Rage of Aliens and I would share the source code with anyone who is interested.
Thank you for your effort. Please keep going uploading android tutorials.
I have just published my own casual game. Do you have any idea how I can get some downloads?
Upgrade your career in TIB Academy visit https://www.tibacademy.in/hadoop-training-in-bangalore/
if u want to see the way u make the game then save it on your computer
plz dont keep this kind of videos
such small font
I don't really know anything about cause I learned javascript
if anyone has an error where they cant reopen the app after going to home screen. it because surfaceDestroyed has a while(true) instead of while(retry).
Where can i add other activity (like a menu or highscore) i can't find where to call a new intent. Please help me it's really important for me 🙁
Maybe next time describe and explain what each of the functions do next time. This is more like copying your code rather understanding and writing it.
12:52 why would you ever declare it as short, when it's obvious you're going to add to it? I thought java parses short and byte before adition to an integer, than performs the operation and brings it back to what it was. Am I right?
I have like no idea what a surfaceholder is 😀
MUMMMBOOOOO
When I run the application I'm getting the below error , please help me fix it .This error occurs and application terminates , but hello world program works just fine.
Emulator: glTexImage2D: got err pre 🙁 0x502 internal 0x1907 format 0x1907 type 0x8363
Error:(16, 28) error: cannot find symbol class GamePanel, I cant seem to figure out the problem
click any add even if it isn't the official android website
cannot resolve symbol: 'getHolder'. @ 5:35. What's the solution to this? I set mine to API 21.
https://www.youtube.com/watch?v=fnqVEufnF6g&list=PLjej_Q1rDIipTmbbKs3fOixVOi2aLrh-a
Lol Mumbo Jumbo intro music.
Only who cross this road will understand who really makes the difference, well done Retro Chicken!