Results 1 to 2 of 2
Thread: Simple Android Game Design
- 05-16-2011, 04:59 AM #1
Member
- Join Date
- Dec 2009
- Posts
- 55
- Rep Power
- 0
Simple Android Game Design
Ive been self teaching myself java and android for a while now and am feeling ready to tackle my first app that ive thought up. Im not sure if its been done before but, its more or less for myself just to say i did it before tackling something bigger .
All i want the game to do is have a game that has 4 buttons that picks which button the user needs to press randomly asks them to press it in a certain amount of time and repeat. with the time to press the button progressively declining.
I tryed to think it out myself and all i could come up with was this as far as the design.
Random number generator
Attach buttons to random numbers
Countdown to game start
Game start method
Timed and declining time to input button
Generate button
Display button
receive button
Game over
im not sure if im even close here or how to implement it completly any tips or snippets of implantation of how i could make something that stays alive only if the user responds in time would be very helpful even if it isnt android.Last edited by fresh83; 05-16-2011 at 05:05 AM.
- 05-16-2011, 05:40 AM #2
Check out the Random class.
This doesn't make sense. What you can do is place the 4 buttons into an array and use the random number as an index into that array.Attach buttons to random numbers
Check out the Swing Timer classCountdown to game start
Yes every program needs an entry point.Game start method
Once again the Timer classTimed and declining time to input button
Read a Swing tutorial about how to write GUI applications.Generate button
Display button
Huh? If you mean how to tell when a button was clicked then read about ActionListeners.receive button
Similar Threads
-
need a simple java game
By Shashwat in forum New To JavaReplies: 1Last Post: 01-03-2011, 02:42 PM -
Best way to design a simple database
By bob89 in forum JDBCReplies: 3Last Post: 03-08-2010, 04:36 PM -
game board design
By tomitu in forum New To JavaReplies: 12Last Post: 02-27-2010, 05:31 PM -
Game design & where and how i should learn it
By helpisontheway in forum New To JavaReplies: 9Last Post: 01-14-2010, 03:45 AM -
Simple Game example
By mayuresh34 in forum CLDC and MIDPReplies: 1Last Post: 10-08-2009, 01:21 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks