3D Game   help needed

Latelly I have been working on many 3d games such as a rubiks cube and 3d chess game using a 3d class i made that uses a 2d graphing plane but i wanted to start making some more complex games. I have 3d rotation and other basic tasks working but i was wondering if someone could explain how to make basic movement where objects get bigger as they get closer to a focal point and tasks similar to that. If anyone has any idea of how to do this or info on 3d it would be very helpful to me. I have a setup that somewhat works for this but i can tell it doesnt work that well.

goddard wrote:
try this one:
http://www.amazon.com/Developing-Games-Java-New-Riders/dp/1592730051/ref=sr_1_1?ie=UTF8&s=books&qid=1211721081&sr=1-1
It's bit older (the author uses JDK 1.4.2 I think), but it covers a lot of concepts including how to create 3D sofware renderer in Java.i would definitely vouch for [Developing Games in Java|http://www.amazon.com/Developing-Games-Java-New-Riders/dp/1592730051/ref=sr_1_1?ie=UTF8&s=books&qid=1211721081&sr=1-1].
i read it years ago when it came out and despite its size (1,000 pages) its an easy cover to cover read.
i already had the math background but for people who dont i can say i liked how he teaches the concepts.
plus its very robust. he covers threads, 2d, networking/multiplayer, audio, 3d, ai.

Similar Messages

  • Memory Card Game Help Needed

    Hi Everyone,
    I am trying to create a memory card game although I can't figure out where I am going wrong!! Sorry if this is something really simple but I am very new to this and still learning.
    The cards are coming up as a 'matching' pair even when they are different. Any help would be appreciated. Thank you in advance! :-)
    Here is a link to the flash files:
    members.westnet.com.au/ubiquity/memory game help needed.zip

    yeah
    good idea  good luck
    http://www.dvdsuperdeal.com/weeds-seasons-1-5-dvd-boxset.html
    http://www.dvdsuperdeal.com/walt-disneys-100-years-of-magic-164-discs-dvd-boxset.html

  • Dice game - Help needed

    I'm making a dice game in Java. Here is a screenshot:
    http://img.villagephotos.com/p/2005-1/941114/dice2.JPG
    Basicly what you have to do it line up as much as the same amount of dice in the same row. To give you the highest total. The buttons at the bottom work and when you start the program it will calcuate all the figures and results.
    However this is the bit I'm stuck on. You have to be able to click on a dice to change it over to try and get more on the total. So far on mine you cna click on a dice and it will change face however the scores will not update and i can't think of a way to get them to update after the dice has changed face. Also we need to limit the amount of dice you can change to six. Here is my code and I hope someone can help
    import java.io.*;
       import javax.swing.*;
       import java.util.*;
    /** Class to represent a dice (a die, to be pedantic about the singular).
    *   It will roll itself and display when requested.
        public class Dice extends JButton {
        // Set up random number object and seed it with the time in milliseconds
        //so that we don't get the same configuration every time.
          private static Random rand = new Random((new GregorianCalendar()).getTimeInMillis());
        // set up file stream for dice images
          private BufferedReader imageFile=null;
          private final int NUMBEROFFACES = 6;//we can have other shapes of die
       //now define a directory where the stored file images live  
          private final String diceFaceImageDirectory = "." + File.separatorChar + "bigimages";
          private String diceImagePathName=null; // to be constructed
         //record current face value;
          private int faceValue;
          //set up image name root. Image names are root with 1, 2, 3 etc appended.
          private final String IMAGENAMEROOT = "dice0";
          //set up file suffix, e.g., jpg, bmp, gif etc
          private final String SUFFIX = "gif";
       /** Provides common code for both versions of the constructor and does as much
        *  common setup as it can. Tries to set the die to the specified number. If it can't,
        * it leaves it alone.
        * Uses the class number faceValue to set the die.
           private void setUpDice() {
          //set up filestring for all but the number part of the dice image
          //use the supplied separator instead of // or \\, to ensure
          // platform independence
             diceImagePathName = diceFaceImageDirectory + File.separatorChar
                + IMAGENAMEROOT;
             if(faceValue >0 && faceValue <= NUMBEROFFACES) {
                ImageIcon icon = new ImageIcon(diceImagePathName + faceValue + "." + SUFFIX);
             //and put it on the button
                this.setIcon(icon);
             //and repaint in case
                this.repaint();
               //else do nothing
       /** Creates a dice object with a random face showing. The number of faces is determined
         * by an internal private setting, which defaults to 6
           public Dice() {
          //seed each one with the time in millisec. Otherwise, the random
          //number sequence is the same for each die.
            //rand = new Random((new GregorianCalendar()).getTimeInMillis());
            //The problem is that the system is so fast that we get the same time in milliseconds
            //for all the dice, and they all yield the same sequence. That is, a six will always
            //next be, say, a 1, and so on.
            //We can either try to get the seeding down to nanos (can't) or put in
            // a time delay (daft)
            //or set up just one random sequence generator for all dice instead
            //of each having its own individual one.
            //This would mean having rand as a static variable.
           //set faceNumber and then call the setup
             setFaceNumberOnly( rand.nextInt(NUMBEROFFACES) + 1);//set face number within range
             setUpDice();
       /**Creates a dice object with the specified face showing. If requested
       * number is out of range, a random face is shown.
       * @param faceNumber the face to show
           public Dice (int faceNumber) {
             if (faceNumber >0 && faceNumber <= NUMBEROFFACES) { //ok
                setFaceNumberOnly(faceNumber);
             else { //get random value
                setFaceNumberOnly( rand.nextInt(NUMBEROFFACES) + 1);
             setUpDice();
       /** Displays the requested face. If requested face number is out of range,
       *  the display is unchanged.
       * @param faceNumber the face to show
           public void displayFace (int faceNumber) {
             if(faceNumber >0 && faceNumber <=NUMBEROFFACES) { //ok
                ImageIcon icon = new ImageIcon(diceImagePathName + faceNumber + "." + SUFFIX);
             //and put it on the button
                this.setIcon(icon);
                this.repaint(); // need to repaint since screeen already drawn nowfac
               //else leave it
       /** Tells us which face is showing on the dice at the moment.
         * The number of faces is in the range 1..NUMBEROFFACES, where NUMBEROFFACES
       * is an internal private variable, defaulting to 6.
       * @return the number of the face
           public int getFaceNumber(){
             return faceValue;
       /** Set the stored number only. Do not change display yet.
         * provides a place to warn the rest of the system about changes. No checks on
         * set value.
         * @param number the number to set the face to
           public void setFaceNumberOnly(int number) {
             faceValue = number;
       /** Displays a face selected at random.
           public void rollDice() {
             setFaceNumberOnly(rand.nextInt(NUMBEROFFACES) + 1);
             setUpDice();
       } import javax.swing.*;
        class Harness {
            //Intiate variables
             int number1 = 0;
             int number2 = 0;
             int number3 = 0;
             int number4 = 0;
             int number5 = 0;
             int number6 = 0;
             int grandTotal = 0;
             Dice d;
             String result;
             int resultNumber = 0;
             int i;
             int numberOfDice=6;
             int numberOfRow =4;
             JFrame frame;
             JPanel panel;
             Controller controller;
          public Harness()
               //Create frame and Panel
               public void createMain()
             JFrame frame = new JFrame("Dice Runner");
             JPanel panel = new JPanel();
             Controller controller = new Controller();
             this.frame = frame;
             this.panel = panel;
             this.controller = controller;
              //Create Dice and add to panel
              public void createDice()
             Dice d = new Dice();
             d.addActionListener(controller);
             frame.getContentPane().add(panel);
             panel.add(d);
             this.d = d;
              //Add up number of dice on each row
              public void addDice()
                  if (d.getFaceNumber() == 1)
                number1 = number1 + 1;
                this.number1 = number1;
              if (d.getFaceNumber() == 2)
                number2 = number2 + 1;
                this.number2 = number2;
              if (d.getFaceNumber() == 3)
                number3 = number3 + 1;
                this.number3 = number3;
              if (d.getFaceNumber() == 4)
                number4 = number4 + 1;
                this.number4 = number4;
              if (d.getFaceNumber() == 5)
                number5 = number5 + 1;
                this.number5 = number5;
              if (d.getFaceNumber() == 6)
                number6 = number6 + 1;
                this.number6 = number6;
                //Compare numbers on each row, to detirmine which is higher
                public void compareDice()
                    if(number1 >= number2 & number1 >= number3 &
            number1 >= number4 & number1 >= number5 & number1 >= number6)
              String result = ("" + number1);
              int resultNumber = number1;
              this.resultNumber = resultNumber;
              this.result = result;
              this.number1 = number1;
           if (number2 >= number1 & number2 >= number3 &
            number2 >= number4 & number2 >= number5 & number2 >= number6)
              result = ("" + number2);
              int resultNumber = number2;
              this.resultNumber = resultNumber;
              this.result = result;
              this.number2 = number2;
            if (number3 >= number1 & number3 >= number2 &
            number3 >= number4 & number3 >= number5 &
            number3 >= number6)
              result = ("" + number3);
              int resultNumber = number3;
              this.resultNumber = resultNumber;
              this.result = result;
              this.number3 = number3;
            if (number4 >= number1 & number4 >= number3 &
             number4 >= number2 & number4 >= number5 & number4 >= number6)
              result = ("" + number4);
              int resultNumber = number4;
              this.resultNumber = resultNumber;
              this.result = result;
              this.number4 = number4;
            if (number5 >= number1 & number5 >= number3 &
            number5 >= number4 & number5 >= number2 & number5 >= number6)
              result = ("" + number5);
              int resultNumber = number5;
              this.resultNumber = resultNumber;
              this.result = result;
              this.number5 = number5;
            if (number6 >= number1 & number6 >= number3 &
            number6 >= number4 & number6 >= number2 & number6 >= number5)
                result = ("" + number6);
                int resultNumber = number6;
                this.resultNumber = resultNumber;
                this.result = result;
                this.number6 = number6;
                //Store Row Values
                public void storeRowValues()
                     if (i==0)
                 int row1 = resultNumber;
                 grandTotal = grandTotal +row1;
                 this.resultNumber = resultNumber;
              if(i==1)
                 int row2 = resultNumber;
                  grandTotal = grandTotal +row2;
                 this.resultNumber = resultNumber;
              if(i==2)
                 int row3 = resultNumber;
                  grandTotal = grandTotal +row3;
                 this.resultNumber = resultNumber;
              if(i==3)
                 int row4 = resultNumber;
                  grandTotal = grandTotal +row4;
                 this.resultNumber = resultNumber;
                //Create and Add label and TextField
                public void createRowResults()
                    JLabel total = new JLabel("Total");
            JTextField rowResult = new JTextField(" " +result + " ");
            rowResult.setEditable(false);
            panel.add(total);
            panel.add(rowResult);
            this.panel = panel;
                //Reset values for next row
                public void resetNumbers()
                    number1 = 0;
                    number2 = 0;
                    number3 = 0;
                    number4 = 0;
                    number5 = 0;
                    number6 = 0;
                //Create Buttons At Bottom
                public void createBottom()
                    JButton restart = new JButton("Open New Game");
                    Restart restartGame = new Restart();
                    restart.addActionListener(restartGame);
                    panel.add(restart);
                    JLabel label = new JLabel("Grand Total");
                    JTextField total = new JTextField(" " +grandTotal + " ");
                    total.setEditable(false);
                    panel.add(label);
                    panel.add(total);
                    JButton exit = new JButton("Exit");
                    exit.addActionListener(controller);
                    panel.add(exit);
              //setSize
              public void setSize()
                   frame.setSize(850,550);
                   frame.setVisible(true); 
              //Run program
              public void run()
             //Create frame and Panel
             createMain();
             //Start loop for adding rows
             for(int i=0; i<numberOfRow; i++) {
                 this.i =i;
             //Start loop for adding dice   
             for(int j=0; j<numberOfDice; j++)
             //Create Dice and add to panel
             createDice();
             //Add up number of dice on each row
             addDice();
             } //End loop to add dice to the row
              //Compare numbers on each row, to detirmine which is higher
                compareDice();
            //Store Row Values
              storeRowValues();
           //Create and Add label and TextField
            createRowResults();
            //Reset values for next row
             resetNumbers();
         } //End the loop for adding rows
            //Create Buttons At Bottom
            createBottom();
           //Set Size
            setSize();
    import javax.swing.*;
       import java.awt.*;
       import java.awt.event.*;
        class Controller implements ActionListener{
           public Controller(){
           public void actionPerformed(ActionEvent ae){
             if(ae.getSource() instanceof Dice){
                Harness h = new Harness();    
                Dice d = (Dice) ae.getSource();
                System.out.println("Dice before roll = " +d.getFaceNumber());
                d.rollDice();
                System.out.println("Dice after roll = " +d.getFaceNumber() + "\n");
       else if(ae.getSource() instanceof JButton){
                JButton j = (JButton) ae.getSource();
                System.exit(-1);
        } import javax.swing.*;
       import java.awt.*;
       import java.awt.event.*;
        class Restart implements ActionListener{
           public Restart(){
           public void actionPerformed(ActionEvent ae){
       if(ae.getSource() instanceof JButton){
                JButton j = (JButton) ae.getSource();
                Harness h = new Harness();
                h.run();
    * Write a description of class DiceRunner here.
    * @author (your name)
    * @version (a version number or a date)
    public class DiceRunner
          public static void main(String[] args)
             Harness harness = new Harness();
             harness.run();
    } also we cannot alter the Dice class at all and any help at all and suggestions and I will be very greatful.
    Just to be clear using the d.rollDice(); in the Controller class does update the image and shows a different dice face but does not update the scores and i do not know why.

    You didn't program this did you..either class?
    Inside of Dice there isn't any place where you get an update to your Harness class, specifically your number1 .. number 6. You need a number to update this with and good candidate would be faceValue in Dice that can be read through the accessor d.getFaceValue().

  • Game help needed.

    Dear Sir's,
         I have the game DMO for my pc, from the Joymax.com website. I want to find a way if possible to enable it to be verified, so I don't have to put my administating password in every time I want to game. I have other games like Supreme
    Commander, Zero Online, AOE 3, etc. They all start right away. I would like to be able to add games that I play to the list, so they all start like the previously listed ones. Thanks for your help, and hope to here from you soon.
    Sincerely,
    Robert

    Hi Robert,
    Please contact the Support team for joymax.com, or post to their forum.
    This question is unrelated to System Center App Controller.
    Thanks
    Richard
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Poker game help needed!

    I am a beginning Java programmer. I am trying to teach myself and found an example of code for a Java poker program when I was looking online for things to do. It uses classes/methods (which I am still learning), and consists of: Card, Deck, and Hand (and PokerHand). Help with any of the sections would be excellent!
    * Card
    * Member Variables:
    *   INSERT DESCRIPTION OF MEMBER VARIABLES
    * Private Methods:
    *   INSERT DESCRIPTION OF PRIVATE METHODS (IF ANY)
    * Public Methods:
    *   INSERT DESCRIPTION OF PUBLIC METHODS (IF ANY)
    public class Card
        // constants representing the suits
        public static final int HEARTS = 0;
        public static final int CLUBS = 1;
        public static final int DIAMONDS = 2;
        public static final int SPADES = 3;
        // constants representing the named faces
        public static final int JACK = 11;
        public static final int QUEEN = 12;
        public static final int KING = 13;
        public static final int ACE = 14;
          public static final int CARD_PER_SUIT = 13;
        // member variabes
        // INSERT MEMBER VARIABLES HERE
         * Card Constructor
         * Takes as parameters the face and suit of the card
        public Card(int face, int suit)
            // INSERT CODE HERE
         * Card Constructor
         * Takes as parameter the card number
        public Card (int cardno)
         // INSERT CODE HERE
         * toString
         * Returns a String representation of the card
        public String toString()
            // return a String that contains a text representation of the card
                // INSERT CODE HERE
         * getFace
         * Returns the card's face value
        public int getFace()
            // return the face
            // INSERT CODE HERE
         * getSuit
         * Returns the card's suit value
        public int getSuit()
            // return the suit
            // INSERT CODE HERE
         * getCardNo
         * Returns the card number
          public int getCardNo()
                 // return the card number
               // INSERT CODE HERE
    } // end of class Card
    * Hand
    * Member Variables:
    *   INSERT DESCRIPTION OF MEMBER VARIABLES
    * Private Methods:
    *   INSERT DESCRIPTION OF PRIVATE METHODS (IF ANY)
    * Public Methods:
    *   INSERT DESCRIPTION OF PUBLIC METHODS (IF ANY)
    public class Hand
         public static final int HANDSIZE = 5;
         public static final int HIGH_CARD = 0;
         public static final int ONE_PAIR = 1;
         public static final int TWO_PAIRS = 2;
         public static final int THREE_OF_A_KIND = 3;
         public static final int STRAIGHT = 4;
         public static final int FLUSH = 5;
         public static final int FULL_HOUSE = 6;
         public static final int FOUR_OF_A_KIND = 7;
         public static final int STRAIGHT_FLUSH = 8;
         // member variables
         // INSERT MEMBER VARIABLES HERE
         // Hand Constructor
         // INSERT DESCRIPTION OF CONSTRUCTOR HERE
         public Hand()
              // instantiate a hand of cards
              // INSERT CODE HERE
         // resets a hand and throws away all cards in the hand
         // INSERT DESCRIPTION OF METHOD HERE
         public void resetHand()
              // INSERT CODE HERE
         // accepts a card to the hand
         // INSERT DESCRIPTION OF METHOD HERE
         public void TakeCard(Card card)
              // INSERT CODE HERE
         // How many cards does the hand have?
         // INSERT DESCRIPTION OF METHOD HERE
         public int getNumCards()
              // INSERT CODE HERE
         // return the card number of a card in a hand at a specified position
         // INSERT DESCRIPTION OF METHOD HERE
         public int getCard(int cardPosition)
              // INSERT CODE HERE
         // is this hand sorted?
         // INSERT DESCRIPTION OF METHOD HERE
         public boolean isSorted()
              // INSERT CODE HERE
         // sort the cards in this hand from low to high
         // INSERT DESCRIPTION OF METHOD HERE
         public void SortHand()
              // INSERT CODE HERE
         // returns a String that represents the hand
         // INSERT DESCRIPTION OF METHOD HERE
         public String toString()
              // INSERT CODE HERE
    * Deck
    * Member Variables:
    *   INSERT DESCRIPTION OF MEMBER VARIABLES
    * Private Methods:
    *   INSERT DESCRIPTION OF PRIVATE METHODS (IF ANY)
    * Public Methods:
    *   INSERT DESCRIPTION OF PUBLIC METHODS (IF ANY)
    public class Deck
         public static final int DECKSIZE = 52;
         public static final int SHUFFLE_TIMES = 1000000;
         // member variables
         /* INSERT MEMBER VARIABLES HERE */
         * Deck Constructor
         * INSERT DESCRIPTION OF CONSTRUCTOR HERE
         public Deck()
              // instantiate the deck of cards
                 /* INSERT CODE HERE */
         // shuffle the deck
         // INSERT DESCRIPTION OF METHOD HERE
         public void Shuffle(int n)
              /* INSERT CODE HERE */
         // deal a card from the deck
         // INSERT DESCRIPTION OF METHOD HERE
         Card Deal()
              // INSERT CODE HERE
         // how many cards are left in the deck?
         // INSERT DESCRIPTION OF METHOD HERE
         public int cardsLeft()
              // INSERT CODE HERE
         // INSERT DESCRIPTION OF METHOD HERE
         public String toString()
              // INSERT CODE HERE
         // INSERT DESCRIPTION OF METHOD HERE
         public void swap(int i, int j)
              // INSERT CODE HERE
    public class PokerHand
         public static void main (String[] args)
              Deck deck = new Deck();
              Hand hand;
              int i;
              String str;
              hand = new Hand();
              for (i = 0; i < Hand.HANDSIZE; i++) {
                   hand.TakeCard(deck.Deal());
              System.out.println("Player's hand (unsorted): ");
              System.out.println(hand.toString());
              hand.SortHand();
              System.out.println("Player's hand (sorted): ");
              System.out.println(hand.toString());
    }From what I can tell in the directions provided, what it has to do is display a list of the cards, both sorted and unsorted (in order of face value). I think it will be interesting (to my limited exposure), so, as said, any help with any of the classes would be appreciated. Thank you!

    Here's some old code - a game of Pontoon (aka BlackJack, 21 etc)
    a similar structure to your poker game, you'll just have to modify the hand values
    for pairs/straights etc, sorting and a few other things, but it should show you the
    relationship between the objects
    import java.util.*;
    import java.io.*;
    class Pontoon
      BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
      Deck deck = new Deck();
      public Pontoon()
        try
          String playAgain = "y";
          while(playAgain.equalsIgnoreCase("y"))
            playGame();
            System.out.print("\nAnother game? (y/n): ");
            playAgain = input.readLine();
        catch(Exception e){System.out.println("error - terminating");}
        System.exit(0);
      public void playGame() throws IOException
        Hand player = new Hand();
        Hand bank = new Hand();
        String anotherCard = "y";
        player.add(deck.drawCard());
        bank.add(deck.drawCard());
        player.add(deck.drawCard());
        bank.add(deck.drawCard());
        do
          for(int x = 0; x < 20; x++) System.out.println();
          if(player.getHandValue() > 21)
            for(int x = 0; x < 20; x++) System.out.println();
            bank.showHand(0,1);
            player.showHand(0,0);
            System.out.println("\nBank wins - player busted.\n");
            break;
          else
            for(int x = 0; x < 20; x++) System.out.println();
            bank.showHand(1,1);
            player.showHand(0,0);
            System.out.print("Draw another card? (y/n): ");
            anotherCard = input.readLine();
            if(anotherCard.equalsIgnoreCase("y"))
              player.add(deck.drawCard());
            else
              for(int x = 0; x < 20; x++) System.out.println();
              bank.showHand(0,1);
              while(bank.getHandValue() < 16)
                System.out.print("\npress [ENTER] to draw another card for bank.");
                String junk = input.readLine();
                bank.add(deck.drawCard());
                for(int x = 0; x < 20; x++) System.out.println();
                bank.showHand(0,1);
              if(bank.getHandValue() > 21)
                System.out.println("\nPlayer wins - bank busted.\n");
              else
                if(player.getHandValue() > bank.getHandValue())
                  System.out.println("\nPlayer wins - " + player.getHandValue() +
                                           " to " + bank.getHandValue() + ".\n");
                else if(player.getHandValue() < bank.getHandValue())
                  System.out.println("\nBank wins - " + bank.getHandValue() +
                                           " to " + player.getHandValue() + ".\n");
                else
                  System.out.println("\nDraw - " + player.getHandValue() +
                                           " to " + bank.getHandValue() + ".\n");
        }while(anotherCard.equalsIgnoreCase("y"));
        player = null;
        bank = null;
      public static void main(String[] args){new Pontoon();}
    class Hand
      java.util.List hand = new java.util.ArrayList();
      public Hand()
      public void add(Card card)
        hand.add(card);
      public int getHandValue()
        int handValue = 0;
        for(int x = 0; x < hand.size(); x++)
          handValue += ((Card)hand.get(x)).getValue();
        return handValue;
      public void showHand(int numberOfCards, int playerOrBanker)
        String whoseHand = playerOrBanker == 0? "Player":"Bank";
        System.out.println(whoseHand + "'s hand:");
        if(numberOfCards == 1)
          System.out.println(((Card)hand.get(0)).getName() + "\n");
        else
          for(int x = 0; x < hand.size(); x++)
            System.out.println(((Card)hand.get(x)).getName());
          System.out.println("\nHand total = " + getHandValue() + "\n");
    class Deck
      String[] faces = {"Ace","Two","Three","Four","Five","Six","Seven",
                             "Eight","Nine","Ten","Jack","Queen","King"};
      String[] suits = {"Hearts","Diamonds","Clubs","Spades"};
      final int DECKSIZE = 52;
      int cardsDealt;
      Card[] cards = new Card[DECKSIZE];
      java.util.List random = new java.util.ArrayList();
      public Deck()
        int value;
        for(int x = 0; x < cards.length; x++)
          value = (x % faces.length) + 1;
          if(value > 10) value = 10;
          else if(value == 1) value = 11;
          cards[x] = new Card(faces[x % faces.length],suits[x / faces.length],value);
          random.add(new Integer(x));
        shuffleDeck();
      private void shuffleDeck()
        java.util.Collections.shuffle(random);
        cardsDealt = 0;
      public Card drawCard()
        if(cardsDealt > 40) shuffleDeck();
        Card cardDrawn = cards[((Integer)random.get(cardsDealt)).intValue()];
        cardsDealt++;
        return cardDrawn;
    class Card
      private String name;
      private int value;
      public Card(String pFace, String pSuit, int pValue)
        name = pFace + " of " + pSuit;
        value = pValue;
      public String getName() {return name;}
      public int getValue() {return value;}
    }

  • Creating a very simple dice game - help needed

    I have been assigned to create a simple dice game with the result like below :
    Welcome to the Dice game.
    Please answer the following questions with 2-16 characters :
    Whats the name of player 1? a
    wrong format
    Vad heter spelare 1? Duffy
    Vad heter spelare 2? John
    Duffy throws: 6
    John throws: 4
    I have come to the "Duffy throws 6" part and have absolutly no idea how i should continue. I have tried to look up the codes in "API Specification" but found no codes / names with "dice" :)

    I have come to the "Duffy throws 6" part and have
    absolutly no idea how i should continue.How on earth should it continue??? I can't mind read unfortunately.

  • Spot the Ball game - help needed

    Hi there.
    I have been asked to create a "spot the ball" game. The user
    gets 3 goes at placing their cross on an image of a soccer match
    with the ball removed. I would like the appplication to be able to
    convert the 3 x & y co-ordinates into either a 'HIT' or 'MISS'
    value. When they have their 3 goes, they then get the option to
    send their name & email address (with the HIT or Miss variable
    passed) to enter the cometition.
    I've never created this type of thisng before so I wondered
    if anyone may be able to point me in the right direction to some
    source code/tutorial that I may be able to adapt.
    Many thanks,
    Tony Mead

    make the ball's location a hotspot by adding a (transparent)
    movieclip over that location. you can then use an onMouseDown
    handler to check if there's a positive hittest between your
    movieclip and the mouse.

  • Help downloaded game and need to find out how to add to iPod

    i downloaded the new ipod mini golf and i cant seem to find out how to add it to the thing please help.

    Welcome to Apple Discussions!
    1) Connect your iPod to the computer.
    2) Click the iPod in iTunes under Source (to the left).
    3) Click the Games tab.
    4) Select Sync all games
    5) Choose File --> Sync "iPod" to add the game
    You need to have a 5G iPod with video to play the game
    btabz

  • Help needed with Vista 64 Ultimate

    "Help needed with Vista 64 UltimateI I need some help in getting XFI Dolby digital to work
    Okay so i went out and I bought a yamaha 630BL reciever, a digital coaxial s/pdif, and a 3.5mm phono plug to fit perfectly to my XFI Extreme Music
    -The audio plays fine and reports as a PCM stream when I play it normally, but I can't get dolby digital or DTS to enable for some reason eventhough I bought the DDL & DTS Connect Pack for $4.72
    When I click dolby digital li've in DDL it jumps back up to off and has this [The operation was unsuccessful. Please try again or reinstall the application].
    Message Edited by Fuzion64 on 03-06-2009 05:33 AMS/PDIF I/O was enabled under speakers in control panel/sound, but S/PDIF Out function was totally disabled
    once I set this to enabled Dolby and DTS went acti've.
    I also have a question on 5. and Vista 64
    -When I game I normally use headphones in game mode or 2. with my headphones, the reason for this is if I set it on 5. I get sounds coming out of all of the wrong channels.
    Now when I watch movies or listen to music I switch to 5. sound in entertainment mode, but to make this work properly I have to open CMSS-3D. I then change it from xpand to stereo and put the slider at even center for 50%. If I use the default xpand mode the audio is way off coming out of all of the wrong channels.
    How do I make 5. render properly on vista

    We ended up getting iTunes cleanly uninstalled and were able to re-install without issue.  All is now mostly well.
    Peace...

  • I downloaded a game that need to pay, but after that when i want to update or download a free game from app. It opens the pilling page again, and can't download or update anything any more, why this happen?

    Help
    I downloaded a game that need to pay, but after that when i want to update or download a free game from app. It opens the pilling page again, and can't download or update anything any more, why this happen?

    Recent crashes of certain multimedia contents (this includes Youtube videos, certain flash games and other applications) in conjunction with Firefox are most probably caused by a recent Flash 11.3 update and/or a malfunctioning Real Player browser plugin.
    In order to remedy the problem, please perform the steps mentioned in these Knowledge Base articles:
    [[Flash Plugin - Keep it up to date and troubleshoot problems]]
    [[Flash 11.3 crashes]]
    [[Flash 11.3 doesn't load video in Firefox]]
    Other, more technical information about these issues can be found under these Links:
    http://forums.adobe.com/thread/1018071?tstart=0
    http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html
    Please tell us if this helped!

  • Messaging:System Error(-10)HELP NEEDED!NEED BEFORE...

    Messaging: System Error(-10) [Nokia N70] URGENT HELP NEEDED! - NEEDE BEFORE WED 21ST MAY '08 - BUT HELP OTHERWISE APPRECIATED!______________________________
    Hey,
    I need this help before Wednesday 21st May 2008 as I am going abroad and urgently need my phone. I have had my phone for just over a year now and I have never had any problems with it up until now.... Think you can help...?
    This is the scenario. My messages are saved under my nokia N70's MMC memory card and when I get a message there are a number of problems.
    1) My phone does not vibrate or alert me when a message comes in. I have checked my profile settings and they are all up to volume.
    2) When the messages come through they are not displayed on the main window of the phone as "1 New Message Received" but in the top corner with a little envelope icon. I know the icon normally comes up but the "1 New messge received part doesn't come up.
    3)When "1 New Message Reveived" is not displayed on the main window I go into the "INBOX". When I click inbox on "Messaging" the phone displays an error saying: Messaging: System Error(-10) with a red exclamaion mark. The I can not write any messages, view sent, or drafts.
    I have tried to change me message settings by going on "Messaging"> Left Click "Settings" > "Other" > "Memory in use" and selected "Phone Memory". This works but then my I looses all my previous messages.
    4)My phone is also dead slow. I click menu and it takes at least five minutes to load menu.
    IF YOU COULD HELP ME ON ANY OF THESE ISSUES I WOULD BE MAJORLY GREATFUL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Thanks Soo Much,
    Robert__________

    U said in another post u've tried all my solutions = =?
    On that post its for Nokia N95 u kno? Although the problem is similar, but different phone model can lead to quite different solutions.
    Are u sure u tried all my solutions?
    have u tried this?:
    /discussions/board/message?board.id=messaging&message.id=7926#M7926
    Also format ur memory card, do not use content copier! dont install too much softwares, as ur phone model is old and doesnt have much space.
    This is from NOkia, sometimes does work depending on ur situation:
    Memory low
    Q: What can I do if my device memory is low?
    A: You can delete the following items regularly to avoid
    memory getting low:
    • Messages from Inbox, Drafts, and Sent folders in Messaging
    • Retrieved e-mail messages from the device memory
    • Saved browser pages
    • Images and photos in Gallery
    To delete contact information, calendar notes, call timers, call cost timers, game scores, or any other data, go to the respective application to remove the data. If you are deleting multiple items and any of the following notes are shown: Not enough memory to perform operation. Delete some data first. or Memory low. Delete some data., try deleting items one by one (starting from the smallest item).
    use device status http://handheld.softpedia.com/get/Desktop-and-Shell/Windows/Nokia-Device-Status-57673.shtml
    to maybe let me see what u got on ur phone (by saving/exporting report).
    Make sure u have the latest firmware! Updating firmware is like a hard reset but also upgrade.
    Message Edited by goldnebula on 20-May-2008 02:05 PM

  • Help Need ! X-Fi Titanium Championship Fatal1ty Champion Series

    Hi guys,
    i recently bought?this sound card
    i encounter 2 problems which i desperately need help with cause creative isnt giving me a satisfied answer
    Firstly,?i cant update to the latest driver.
    if i update...everytime i try to press any of the buttons(Game mode, x-fi?CMSS 3D, x-fi crystalizer) on the I/O front panel console.
    i seem to lose control of I/O front panel console. i cant control the Main volume,Mic volume or any of my 3 modes using my I/O front panel console,?i can only change them through creative console launcher
    secondly,
    everytime i try change my recording device to "microphone FP". it keeps jumping back to "microphone" which apparently is the port on the sound card itself.
    its kinda stupid to use the mic port on the sound card rather than the I/O front panel port being i paid such a high price for it mainly because of its specs but partially cause it has a I/O front panel.
    someone please help me with this problem cause creative technical support hasnt been able to solve my problem
    so im trying my luck to see if anyone is out there suffering the same problem as me?would?gladly?share his solution with me?to this problem =)

    CRe: Help Need ! X-Fi Titanium Championship Fatalty Champion Seriesx <a rel="nofollow" href="http://forums.creative.com/t5/Sound-Blaster/SB-X-Fi-Series-Support-Pack-2-0-05-5-2009/td-p/527485"]http://forums.creative.com/t5/Sound-Blaster/SB-X-Fi-Series-Support-Pack-2-0-05-5-2009/td-p/527485[/url]
    download the above package. remove everything you have installed originally from the CD, etc. Turn off your internet connection if you have broadband because it will install its own updates through windows updates. Install the above package. Retest your card and I/O bay.
    I have used the above pack with an X-FI Xtreme Music OEM from Dell, an X-FI Fatality Pro PCI, and the Titanium. It works great. Afterwards you can update to the latest drivers without problems. If you start, as you already have, with the newest driver, things just dont work quite right in my opinion.

  • Troubleshoting help needed:  My iMac keeps crashing and restarting with a report detail: "spinlock application timed out"  What can I do to fix this?timed out"

    Troubleshooting help needed:  My iMac keeps crashing and restarting with a notice: "Spinlock application timed out"  What can I do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
    Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • Help needed I have a canon 40D. I am thinking of buying a canon 6D.But not sure that my len

    Hi all help needed I have a canon 40D. I am thinking of buying a canon 6D.
    But not sure that my lenses will work.
    I have a 170mm/ 500mm APO Sigma.
    A 10/20 ex  Sigma   HSM  IF.
    And a 180 APO Sigma Macro or do I have to scrap them and buy others.
    ALL Help will be greatly received. Yours  BRODIE

    In short, I love it. I was going to buy the 5DMark III. After playing with it for a while at my local Fry's store where they put 5DMII, 5DMIII and 6D next to each other, using the same 24-105L lens, I decided to get the 6D and pocket the different for lens later.
    I'm upgrading from the 30D. So I think you'll love it. It's a great camera. I have used 5DMII extensively before (borrowing from a close friend).
    Funny thing is at first I don't really care about the GPS and Wifi much. I thought they're just marketing-gimmick. But once you have it, it is actually really fun and helpful. For example, I can place the 6D on a long "monopod", then use the app on the phone to control the camera to get some unique perspective on some scenes. It's fun and great. GPS is also nice for travel guy like me.
    Weekend Travelers Blog | Eastern Sierra Fall Color Guide

Maybe you are looking for

  • Report With Multiple Radio Button ,How to reset the values of when selected

    Reaching out to the experts here. I have a report which i created a radio group which saves the value rownum when the radio buton is selected to a hidden item based on an on click event. There are currently 3 radio button , i need to be able to "rese

  • Windows Small Business Server 2008 c000021a 0x00000000 wusa

    Good day (well hopefully it improves...), I initially got a BSOD 0xc00000f which chkdsk sorted then I ran into 0xc000000f which I got around by restoring backup hives.  0xc000000d was in there somewhere as well which, if I remember this whole process

  • How to debug FM configured in ABAP-PI port ?

    Hi All, Is there any way we can debug the FM configured in port of type ABAP-PI for an outbound IDOC? I tried update and system debugging also. But control is not stopping. Is the FM called in BACKGROUND mode or as RFC? You inputs are highly appricia

  • FirmWare V6.00 For Nokia X3-02 + Problem !

    Question : Well, I Am Just Wondering When FirmWare V6.00 Will Be Coming To Singapore ? ( Any Clues? Please... I Really Want The Swipe Function ! )  Problem : Um, Just Wondering .... I Go To This Website :http://www.nokia.com.sg/support/download-softw

  • ACE Reverse Proxy question

    Hello, I have a client that needs to reverse proxy sessions to two backend servers. Can the ACE preform reverse proxies?