• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating a Grid Frogger Game  RSS feed

 
Bamidele Oguntuga
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys i was giving an assignment to create a primitive frogger game with the following details needed in the game am using eclipse as my IDE but am stuck when to add the frog sprite to the cells. I really need help. These are what is required of me

Add a file menu at the top of the screen to allow loading and saving of games.
you should show a 2D 12x12 grid on your GUI Window. Consider using JButtons and an
appropriate layout manager.
   At coordinate 6,12 the Frog should appear.
   Cars should appear at the left-most side of the screen on each row
You should be able to move the Frog using directional arrow buttons
Cars should use threads to change their positions and update the Graphical User Interface.
They move from left-to-right at a random rate. If the player and the car occupy the same
square the game is over and a new game should begin once the player has been informed.
It should be possible to load and save the game in a binary format to a file called “data.dat”.
Handle any unsuccessful attempts to load and save the file

Have started by creatong the grid with this code


Now i need to include the sprites which are frog image and the car image which i have, you can please use any dummy image and name to depict them. Please anyone should help i would be getting along. Thanks
 
Norm Radder
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when to add the frog sprite

Can you ask your instructor for information about that?
 
Bamidele Oguntuga
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was suppose to do this all alone probably with wide research some insight to this would give me a head long. thanks for any assistance
 
Norm Radder
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not familiar with the frogger game so can not suggest any solution for you.
 
Bamidele Oguntuga
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually what needed should be simple if a frog occupies a cell at the bottom of the grid panel supposedly the center and the cars flipped across the grid layout in three to four spaced row above any collision ends the game until it scales through the rows without collision. Something of this nature. The frog should appear at the beginning of the game or restore of the game state
 
Bamidele Oguntuga
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Something of this nature http://www.java-online.ch/gamegrid/gamegridEnglish/index.php?inhalt_mitte=pixelgames/frogger.inc.php but in a more simpler way
 
Norm Radder
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I don't go to other sites.  Can you copy the part you need help with and add some comments describing what your problems are.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!