Results 1 to 2 of 2
  1. #1
    fresh83 is offline Member
    Join Date
    Dec 2009
    Posts
    55
    Rep Power
    0

    Default 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.

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default

    Quote Originally Posted by fresh83 View Post
    Random number generator
    Check out the Random class.

    Attach buttons to random numbers
    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.

    Countdown to game start
    Check out the Swing Timer class

    Game start method
    Yes every program needs an entry point.

    Timed and declining time to input button
    Once again the Timer class

    Generate button
    Display button
    Read a Swing tutorial about how to write GUI applications.

    receive button
    Huh? If you mean how to tell when a button was clicked then read about ActionListeners.

Similar Threads

  1. need a simple java game
    By Shashwat in forum New To Java
    Replies: 1
    Last Post: 01-03-2011, 02:42 PM
  2. Best way to design a simple database
    By bob89 in forum JDBC
    Replies: 3
    Last Post: 03-08-2010, 04:36 PM
  3. game board design
    By tomitu in forum New To Java
    Replies: 12
    Last Post: 02-27-2010, 05:31 PM
  4. Game design & where and how i should learn it
    By helpisontheway in forum New To Java
    Replies: 9
    Last Post: 01-14-2010, 03:45 AM
  5. Simple Game example
    By mayuresh34 in forum CLDC and MIDP
    Replies: 1
    Last Post: 10-08-2009, 01:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •