aspose file tools*
The moose likes Android and the fly likes Question about Games in Andorid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Question about Games in Andorid" Watch "Question about Games in Andorid" New topic
Author

Question about Games in Andorid

Stole Perov
Greenhorn

Joined: Feb 08, 2010
Posts: 12
So, Im trying to create my "skeleton" code for a gaming application.

I have understood the meaning of a thread leading the process through the game. However, I have no idea how to combine all classes and activity's into a single package.

What i would like is a guide in the following:

- I would like to have a class that will extend the View class in which the drawing will be taking place
- I would like to use the class above as display class (setContentView())
- Where do i create a class that implements the runnable class, where do I start the threads, how do I connect all these.

Thanks for your time in advance.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

The android distribution comes with a sample game application "LunarLander". You can view its source code to get the info you need...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Stole Perov
Greenhorn

Joined: Feb 08, 2010
Posts: 12
Thanks for the replay. However, i found the lunar lander and found it a bit messy.

If you understand it, can you please translate it for me?
Stole Perov
Greenhorn

Joined: Feb 08, 2010
Posts: 12
So, I have managed to find the perfect algorithm for GAMES.



So, my question is something like this:

1. In which class do i put all of these functions?
2. In which class do i implement the runnable class?
3. In which class do i put the View class?

Final and most important

4. HOW do i connect all of these together.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about Games in Andorid
 
Similar Threads
cannot create Hibernate project.
DB Connections and Exception Handling in Web Application
How to create class diagrams
how to program base class as singletone that other class's when extend it will become singletone
Getting input from the User