GAMES-Main Menu-HELP!

Rules / instructions - are they written down anywhere, or if not, does anyone have a synopsis?
Toshiba R15   Windows XP Pro   XP Tablet OS

Brick - Hit the ball and break all the bricks
Music Quiz - Get the name of the music
Solitaire - Card game
Parachute - Kill people

Similar Messages

  • Need help on mobile gaming development basic  {working the game main menu}

    package Assignment1;
    import java.io.IOException;
    import java.util.Random;
    import javax.microedition.lcdui.Canvas;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    import javax.microedition.lcdui.game.GameCanvas;
    import javax.microedition.lcdui.game.Sprite;
    public class a1Canvas extends GameCanvas implements Runnable{
        private Display display;
        private Sprite ufoSprite;
        private Image backgroundImage;
        private long frameDelay;
        private int ufoX;
        private int ufoY;
        private int ufoXDir;
        private int ufoXSpeed;
        private int ufoYSpeed;
        private Random rand;
        private Sprite[] roidSprite = new Sprite[3];
        private boolean gameOverState;
        //constructor
        public a1Canvas(Display display){
            super(true);
            this.display = display;
            frameDelay = 33;
            gameOverState = false;
        public void start(){
            display.setCurrent(this);
            //start the animation thread
             rand = new Random();     // Initialize the random number generator
             ufoXSpeed = ufoYSpeed = 0; // Initialize the UFO and roids sprites
            try {
                backgroundImage = Image.createImage("/background.jpg");
                ufoSprite = new Sprite(Image.createImage("/ufo.png"));
                //initialise sprite at middle of screen
                ufoSprite.setRefPixelPosition(25,25);
                ufoX = (int)(0.5 * (getWidth()- ufoSprite.getWidth()));
                ufoY = (int)(0.5 * (getHeight()- ufoSprite.getHeight()));
                ufoSprite.setPosition(ufoX, ufoY);
                Image img = Image.createImage("/Roid.png");
                roidSprite[0] = new Sprite(img, 42, 35);   //create 1st frame-animated asteroid sprite
                roidSprite[1] = new Sprite(img, 42, 35);
                roidSprite[2] = new Sprite(img, 42, 35);
            } catch (IOException ex) {
                System.err.println("Failed to load images");
            Thread t = new Thread(this);
            t.start();
        public void run() {
            while (!gameOverState){
                update();
                draw(getGraphics());
                try{
                    Thread.sleep(frameDelay);
                }catch(InterruptedException ie){}
            gotoMainMenu(getGraphics());
        private void draw(Graphics graphics) {
            //clear background to black
            graphics.setColor(0, 0, 0);
            graphics.fillRect(0, 0, getWidth(), getHeight());
            //draw the background
            graphics.drawImage(backgroundImage, getWidth()/2, getHeight()/2, Graphics.HCENTER | Graphics.VCENTER);
            ufoSprite.paint(graphics);
            for(int i=0;i<3;i++){
                roidSprite.paint(graphics);
    flushGraphics(); //flush graphics from offscreen to on screen
    private void update() {
    // Process user input to control the UFO speed
    int keyState = getKeyStates();
    if ( (keyState & LEFT_PRESSED) != 0 )
    ufoXSpeed--;
    else if ( (keyState & RIGHT_PRESSED) != 0 )
    ufoXSpeed++;
    if ( (keyState & UP_PRESSED) != 0 )
    ufoYSpeed--;
    else if ( (keyState & DOWN_PRESSED) != 0 )
    ufoYSpeed++;
    ufoXSpeed = Math.min(Math.max(ufoXSpeed, -8), 8);
    ufoYSpeed = Math.min(Math.max(ufoYSpeed, -8), 8);
    ufoSprite.move(ufoXSpeed, ufoYSpeed); // Move the UFO sprite
    checkBounds(ufoSprite); // Wrap UFO sprite around the screen
    // Update the roid sprites
    for (int i = 0; i < 3; i++) {
    roidSprite[i].move(i + 1, 1 - i); // Move the roid sprites
    checkBounds(roidSprite[i]); // Wrap asteroid sprite around the screen
    // Increment the frames of the roid sprites; 1st and 3rd asteroids spin in opposite direction as 2nd
    if (i == 1)
              roidSprite[i].prevFrame();
    else
              roidSprite[i].nextFrame();
    // Check for a collision between the UFO and roids
    if ( ufoSprite.collidesWith(roidSprite[i], true) ) {
    System.out.println("Game Over !");
    gameOverState = true;
    }//if
    }//for
    public void stop(){
    gameOverState = true;
    private void checkBounds(Sprite sprite) {
    // Wrap the sprite around the screen if necessary
    if (sprite.getX() < -sprite.getWidth())
         sprite.setPosition(getWidth(), sprite.getY());
    else if (sprite.getX() > getWidth())
         sprite.setPosition(-sprite.getWidth(), sprite.getY());
    if (sprite.getY() < -sprite.getHeight())
         sprite.setPosition(sprite.getX(), getHeight());
    else if (sprite.getY() > getHeight())
         sprite.setPosition(sprite.getX(), -sprite.getHeight());
    private void gotoMainMenu(Graphics graphics) {
    graphics.setColor(0, 0, 0);
    graphics.fillRect(0, 0, getWidth(), getHeight());
    graphics.setColor(255, 0, 0);
    graphics.drawRect(0, 0, getWidth()-1, getHeight()-1);
    graphics.setColor(255, 255, 255);
    graphics.drawString("GAME NAME", getWidth()/2 -50, 30, Graphics.LEFT | Graphics.TOP);
    graphics.setColor(255, 0, 0);
    graphics.drawString("Main Menu", getWidth()/2 -50, 50, Graphics.LEFT | Graphics.TOP);
    graphics.setColor(0, 255, 0);
    graphics.drawString("Start Game", getWidth()/2 , 80, Graphics.LEFT | Graphics.TOP);
    graphics.drawString("Instructions", getWidth()/2 , 110, Graphics.LEFT | Graphics.TOP);
    flushGraphics();
    int keyState = getKeyStates();
    if ( (keyState & FIRE_PRESSED) != 0 ){
    System.out.println("game start");
    gameOverState = false;
    The problem i am facing is :
    the FIRE button is not functioning, i put a system.out.println and it didnt print.
    i am unsure whether i put the key input listener at the correct function
    this button is supposed to start the game again.
    What i want to do :
    i want to display the main menu when i launched the game
    when game is over, it will display back to the main menu again
    when i press the fire button it will play the game again.
    i hope someone can help me on this :)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    kdoom wrote:
    The problem i am facing is :
    the FIRE button is not functioning, i put a system.out.println and it didnt print.
    i am unsure whether i put the key input listener at the correct function
    this button is supposed to start the game again.
    What i want to do :
    i want to display the main menu when i launched the game
    when game is over, it will display back to the main menu again
    when i press the fire button it will play the game again.
    i hope someone can help me on this :)You didn't have to create a whole new post just for the formatted code, silly. You could have just replied in the old thread. Anyway:
    Step through the program and think about what each line is doing. Most importantly:
        public void run() {
            while (!gameOverState){
                update();
                draw(getGraphics());
                try{
                    Thread.sleep(frameDelay);
                }catch(InterruptedException ie){}
            gotoMainMenu(getGraphics());
        }This says that while the game is being played, update( ), then draw( ). When the game is over, call gotoMainMenu( ).
       private void gotoMainMenu(Graphics graphics) {
            //do a bunch of graphics stuff
            int keyState = getKeyStates();
            if ( (keyState & FIRE_PRESSED) != 0 ){
                System.out.println("game start");
                gameOverState = false;
        }This says to do a bunch of graphics stuff, and then to check the key states. If fire is being pressed, print something out and set gameOverState to false. This check only happens once. When the state is being checked, most likely the user will not be pressing any keys, so the code is done.
    Also, simply setting the gameOverState variable to false outside of the loop you use it in won't do anything. For example:
    boolean doLoop = true;
    int count = 0;
    while(doLoop){
       count++;
       if(count > 10){
          doLoop = false;
    doLoop = true;Would you expect that second doLoop = true to start the while loop over?

  • Angry birds rio quit working on my ipad.  When I try to start the game, it shuts down completely and goes to the main menu screen.  This started when I downloaded the latest app.  The other angry bird games still work.  I really need help.

    Angry birds rio quit working when I installed the latest app.  I even uninstalled it and started over.  When I try to start the game, it goes back to the main menu.  I need help badly but in simplest of terms so I'll be able to follow.

    Have you tried closing the app completely ? From the home screen (i.e. not with Angry Birds 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Angry Birds app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How do I make a main menu for a game?

    Hi,
    I need to make a main menu for this tower defense game that I am making.  I have 2 parts to the menu that I need to put together.  I have it as follows:
    I have a start screen where the player presses the start button.  I now need it to take the user to the main menu itself.  I have both the start menu and main menu in the same document but on different layers.  I have a button labeled as start which I have set up to where when it is clicked, it changes colors but I also need it to hide/show the menu layer.  I just need the that start button to take users to the menu layer where I have 3 more buttons which are resume, new, and options.  I will need those buttons to go to their different layers also.  After users hit the resume or new buttons, I need the game itself to start which I will start making after I figure out the other issues. 
    I am new to Flash and I really want to learn how to make tower defense games.  For now, I am using http://www.ehow.com/how_7788131_make-tower-defense-game-flash.html as a guide to make the game stuff but it doesn't say anything about a main menu.  I am using a trial version of Flash Pro CS6 and it is due to expire in 28 days.
    Any and all help will be great! Thanks, xp3tp85

    I used this and it worked:
    import flash.events.MouseEvent;
    start_button.addEventListener(MouseEvent.CLICK,startF);
    function startF (e:MouseEvent):void{
    gotoAndStop("main_menu");
    On the next layer I used this and it worked too:
    back_button.addEventListener(MouseEvent.CLICK, buttonClick);
    function buttonClick(event:MouseEvent):void{
           gotoAndStop(1);
    Apparently it wont let me use the same code twice on one timeline.  Is there any way around this?  I need a few more buttons on the main menu for the game.

  • "Games" icon in nokia 5800 main menu

    hey,
    does anyone know how i could have a "games" icon on my nokia 5800 main menu similar to the one on the nokia n97, because i dont like how my games are mixed in with all my other applications under the "apps" icon.
    thanks.
    If iv helped in anyway, hit the kudos button

    hi, thanks for the suggestion but i am already aware of this...
    i wanted an actual "games" icon in the main menu, something similar to the one in the picture, instead of a folder, where i could put my games in.
    If iv helped in anyway, hit the kudos button

  • I have a new MacBook(2012). Being a new Mac user, I do not know what to do when Safari doesn't open at all. The icon just bounces up and down and when the cursor is on the top main menu bar it is the spinning rainbow wheel.  Any ideas for help?

    When I try to open safari the icon stats bouncing and then nothing happens other than the cursor turning to a spinning rainbow wheel when it hoovers on the top main menu bar. I have shut down and restart several times. My safari worked yesterday and then today this, but with. I indication of a problem. I can't even get the browser window to open so that I can clear caches or reset anything. When I opened my computer this time I don't even get a bouncing icon. No recognition of selecting the program at all. If I go to spotlight and try to open safari from here I still get no response. Can you help?

    Hi ...
    If you have moved the Safari application from the Applications folder, move it back.
    As far as the cache goes, there's a work around for that when you can't empty the Safari cache from the menu bar.
    Go to    ~/Library/Caches/com.aple.Safari.Cache.db.  Move the Cache.db file to the Trash.
    Try Safari.
    Mac OS X (10.7.2)   <  from your profile
    If that is corrrect, you need to update your system software. Click your Apple menu icon top left in your screen. From the drop down menu click Software
    Update ...
    ~ (Tilde) character represents the Home folder.
    For Lion v10.7x:  To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library

  • Mail returns to 'main menu'.  My mail worked for over a year - now when i enter mail it returns to the 'mail menu' immediately.  I disconnected wireless connection and it still returns to the main menu immediately. HELP!

    Mail returns to 'main menu/desktop'.  My mail worked for over a year - now when i enter mail it returns to the 'mail menu' immediately.  I disconnected wireless connection and it still returns to the main menu immediately. PLEASE HELP!

    - Have you tried resetting your iPod:
    Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Can you access the mail account(s) on another device and look for a problem email that may be causing the problem
    - You could try deleting account(s) and recreating them

  • [?] Main Menu not showing after "Restore", resetting not helping

    Hi,
    I recently received my 30GB iPod Video 5G (got it for myself for Christmas). I began charging it. Meanwhile, I uninstalled my old iTunes, and installed the iPod / iTunes / Quicktime software on the CD that came with the iPod. All fine.
    I checked the iPod after four-five hours and it had finished charging. I restarted my computer, plugged it in, and iTunes wouldn't detect it. After some frolick, I went to the iPod Updater and clicked Restore. Bad idea!
    Since then on, I haven't been able to access the main menu in any way. I've tried reinstalling the software a few times, and nothing helps. I've tried resetting the iPod, but I keep getting that little sign with the exclamation point. My iPod is fully charged.
    I'd try the "5 Rs", but I can't reset my iPod, and I restoring it doesn't help, and I've reinstalled all I can.
    I've a question - does restoring actually erase the little main menu? If so, where can I reinstall it? If not, what should I do?
    - by the way, throughout this little crisis, I got iTunes to start up at one point.
    Don't think it's my USB port.
    To recap, the problem is that I'm stuck, and I can't reach the main menu. I don't always see "Disk Mode", although I can get to it by holding the select button and the play/pause button at the same time.

    look here for info on the exclamation point.
    http://docs.info.apple.com/article.html?artnum=61003
    Pressing the center buton and the menu button does a soft reset.
    did you look hhere for general info
    http://www.apple.com/support/ipod101/
    Simply restoreing your ipod to factory settings resets your ipod to the way you recieved it when you unpacked it. It does not erase the main menu it simply erases all the music/photos/videos from your ipod if there was any.
    sound like when you say that your ipod is stuck its frozen did you folow this
    http://docs.info.apple.com/article.html?artnum=61705
    since you are using windows 200 do you have meet the tech specs in regards to the service pack? Do you have a USB 2 or earlier?
    GFF

  • Help! Cover art cropped on AppleTV main menu.

    Hello. I recently ripped up some VHS tapes to my appleTV and took photos of the cover art/boxes and cropped the images to the size of the box. They look fine in iTunes on my iMac; and also look fine when I view them via Computers/Movies on appleTV. However, on the main menu of appleTV they images are cropped. What am i doing wrong; is there a standard size I should stretch these to and re-add them to iTunes so they show correct on the appleTV main menu?
    Here is an example:
    Looks fine on iTunes:
    And also looks fine when viewing on appleTV via "Computers/Movies":
    However, it appears cropped on the main appleTV menu as shown here:
    What am I doing wrong? Help!.

    Looks to me as though the cover art 'placeholders' on AppleTV are designed for images of a specific aspect ratio (relative width:height).
    To get them to display properly you would need to add black bars either side of the image so that the overall cover art would be thinner but display in full.
    There is nosetting to modify this I'm afraid - it's a GUI choice and they've chosen to crop images to fit the 'placeholder' space rather than scale to fit and automatically add black either side.
    You could send feedback but I doubt it would be a high priority fix or option:
    Apple - Apple TV - Feedback

  • I can't open my games once i open they back in main menu.

    I can't open my games they always back in main menu.

    Please follow this article, if the issue persists contact the developer.
    http://support.apple.com/kb/ts1702?viewlocale=es_es

  • N81 8GB MAIN MENU PROBLEM!!! HELP PLS!!!!

    I've had the nokia n81 8gb for 1year + now and just last night after transferring data from my computer the main menu got all messed up, all the folders were gone and the applications were all over the place on the main menu, the only folders left is this "Demo" folder and the "Tools" folder.
    Pls help me fix this
    Thanks in advance

    Try these steps one by one:
    1. Take out your battery and SIM after turning off your device. Put everything back in after 5- 10 minutes and turn on the phone.
    2. Restore Factory settings: Type *#7780# at the standby screen.
    3. Format phone memory (WARNING: This might result in loss of data in the phone memory, so back up the contents in your phone memory using PC Suite before you proceed): Type *#7370# at the standby screen.
    Note that the default lock code for Steps 2 and 3 is 12345 unless you've changed it at any point.
    Hope this helps. Good luck
    Message Edited by deepestblue on 30-Aug-2009 08:57 PM
    Cheers,
    DeepestBlue
    5800 XpressMusic (Rock Stable) | N73 Music Edition (Never Say Die) | 1108 (Old and faithful)
    If you find any post useful, click on the Green "Kudos" Button on the left to say Thank You...

  • My ipod warranty ran out a few months ago I have a nano 5th gen. The problem is that if I want to play a song it would show the album artwork for about 3 seconds and go back to the main menu with no music playing. It'snot the head phones or ear jack. help

    My ipod warranty ran out a few months ago I have a nano 5th gen. The problem is that if I want to play a song it would show the album artwork for about 3 seconds and go back to the main menu with no music playing. It'snot the head phones or ear jack. Please I Need Help

    See this Troubleshooting Assistant
    http://www.apple.com/support/ipod/five_rs/nano5gen/
    Reset
    How to reset iPod

  • PLEASE HELP!!! Main Menu is Invisible?!

    I am experiencing a strange problem where everything looks fine in the "Simulator" but upon "Build and Format" my main menu becomes invisible in the output disc. The button highlights and menu transitions are all there, but the menu graphic itself does not appear, instead there's just a blank, black screen. Again, in the simulator everything is there, so I'm stumped. What could be causing this to happen???
    - Jordan

    I would also check just to be sure that your file is 720x480, at the correct pixel aspect ratio, and that none of your layers extend beyond the bounds of your canvas (just select all and crop in photoshop).
    I usually have no problems working with layered photohsop files, although I prefer to flatten the backgrounds as much as possible, so as not to leave the quality of the composited layers to the mercy of DVDSP's mpeg compression. Also, I always make sure all type and layer effects have been flattened out as well. I find this very useful for chapter menus - I can share one background and have the different chapter thumbnails and buttons on separate layers for each menu, usually sharing one overlay layer as well.
    If you still can't figure out why the menu is invisible, try taking a menu that works, do a save as, and paste your troublesome art into the new file. (the blunt instrument method)

  • Unable to see the main menu of crimson skies.

    Hi! I have a small problem with my latest purchase, crimson skies. I have tried it before and I know that it is a great game. It installs fine and starts up nicely, no problems there, but after it reaches "main menu", i cannot see it, only the backround shows (moving pirate flag). I tried software rendering and i can see the menu just fine but it aint really candy for eyes to use software rendering.    I read about this problem on other support forums and they said that it is because of "power 2?" texture rendering (no idea what it is) and they also said that it is a problem with "new" graphic cards (my system runs on MSI GF 4600 Ti). Last time i played it with an TNT 2 card and it worked fine.
    I was wondering would anyone know an way to get it to work (other than using software rendering or swaping tnt 2 back) or will the tnt 2 even work with it anymore because of detonator drivers? 
    Thank you for any answers you can provide and sorry for incorrect english!

    yeah but they are not helping  , i could try to swap to my tnt 2... but even IF it works, it lowers overall performance BADLY 

  • Page Forward & Reverse buttons do not work & are "grayed-out" after upgrading to, as is the Main-Menu Items such as File-Edit-view etc...

    After upgrading to Firefox 3.6.12 all functionality appeared to be intact. Then after a few days it lost the ability to "page forward" or to "page back" and are "grayed-out". Additionally, the Main menu items such as File, Edit, View, History, Bookmarks, Tools & Help are also grayed-out and non-functioning.
    Also, the "Search Window" does not search, Web Searches need to be performed from within the URL window instead, for some crazy reason. If the URL window is blank when I enter a search into the actual search window the following appears in the URL window, "Search Bookmarks and History", which makes no sense.
    I have noticed similar complaints in this Forum in the past but I have not seen any posted resolution to these issues. Is there a solution?

    Create a new profile as a test to check if your current profile is causing the problems.<br />
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

Maybe you are looking for

  • Inserting content in a Variable [HELP!]

    Hello all, I'm creating a business process using OBPM and my situation is: I have a web service that returns a XML file in string format. After this web service I have another one that receives a complex type sequence. Between these two services I pu

  • Pushing a 64 bit registry key

    Hi Guys, I am trying to push a reg key to 64 bit systems that falls in the wow6432node folder.  I have verified it works if I run it locally with the command C:\Windows\SysWOW64\regedit.exe /s "HKLM Field Mappings.reg".   I have tried pushing this us

  • Memory used by oracle 11g processes on solaris 10

    I am running oracle 11.1.0.7 on solaris 10. The database uses some 280M virtual memory size for each oracle backup or user process. See the SZ column in output of ps -efl below. I just wonder how come oracle that much of memory for each process. Is t

  • In java ,how to access the  user-defined type of pl/sql?

    in my application,i using the following code to access the pl/sql type self-defined,but it throws run-time exception,how can i resolve it?String sqlStr="{call BossStat.dunStat(?,?,?,?,?,?)}"; OracleCallableStatement ocstmt=(OracleCallableStatement)co

  • Editing application-j2ee-engine.xml file in Web Dynpro DC

    I'd like to set one of my web dynpro apps to automatically start whenever the J2EE engine is started. <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/94/0a5b422f786255e10000000a155106/frameset.htm">This SAP Library document</a> states that y