Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411613 Posts in 69390 Topics- by 58447 Members - Latest Member: sinsofsven

May 10, 2024, 05:21:40 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Programming a simple game loop in Java for the Android
Pages: [1]
Print
Author Topic: Programming a simple game loop in Java for the Android  (Read 3527 times)
BrixxieBee
Level 2
**


View Profile
« on: November 08, 2009, 12:18:04 AM »

[link Fixed]
http://blorb.tumblr.com/post/236799414/simple-java-android-game-loop

Most of the tutorials out there for the Android show how to create game loops that use the refreshHandler or call invalidate (which the system might do, causing visual lag), so I spent several hours researching and designing code to mimic that of any solid game engine.

I wrote an article that includes my code for anyone that's interested. The code calls a standard gameLoop() which calls update() and render() and then sleeps taking into consideration the time required to render. This method is a lot more consistent than the other ways I've seen on the web for developing specifically for the Android.

If you need any help or love the post, let me know.

James

http://blorb.tumblr.com/post/236799414/simple-java-android-game-loop
« Last Edit: November 10, 2009, 02:50:58 PM by notthecommondose » Logged
Hima
Level 4
****


OM NOM NOM


View Profile WWW
« Reply #1 on: November 08, 2009, 01:48:39 AM »

I'm interested in this but it seems like the article is not finished? Anyway, looking forward to the article Smiley
Logged

deWiTTERS
Level 1
*


deWiTTERS


View Profile WWW
« Reply #2 on: November 08, 2009, 07:14:19 AM »

A long time ago I wrote an article about game loops. It might be interesting to see other possible solutions.
Logged

moi
Level 10
*****


DILF SANTA


View Profile WWW
« Reply #3 on: November 08, 2009, 07:41:19 AM »

I heard selling on the android was very difficult and the audience was generally cheap/pirates
Logged

subsystems   subsystems   subsystems
BrixxieBee
Level 2
**


View Profile
« Reply #4 on: November 10, 2009, 02:50:30 PM »

ARTICLE FIXED :D
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic