Sokoban game help needed (java)

Reply

Join Date: Nov 2007
Posts: 2
Reputation: mrsmoke is an unknown quantity at this point 
Solved Threads: 0
mrsmoke mrsmoke is offline Offline
Newbie Poster

Sokoban game help needed (java)

 
0
  #1
Nov 26th, 2007
Hi,

I'm trying to make my own sokoban game in java.

Sokoban is a top down 2D puzzle game where you move around a level trying to push boxes to the goal area in the least possible moves.

I'm already pretty stuck at an early stage. My first objective it to load an image and be able to move it around with the arrow buttons on my keyboard.

Does anyone know how to do this.

I have a .bnp image that I want to use for the character.

Next i want to load in images for walls and boxes and the goal area and create conditions so that my character can't walk through the wall and so he'll be able to push the boxes around the map.

I'd really appreciate any help I could get. An example of using the arrow keys to move a small .bnp image around an large JFrame would be greatly appreciated.

Thanks
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,438
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Sokoban game help needed (java)

 
0
  #2
Nov 26th, 2007
You might want to go through the Space Invaders 2D game tutorial on this site: http://www.cokeandcode.com/
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2
Reputation: mrsmoke is an unknown quantity at this point 
Solved Threads: 0
mrsmoke mrsmoke is offline Offline
Newbie Poster

Re: Sokoban game help needed (java)

 
0
  #3
Nov 26th, 2007
Cool thanks!!!
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 27
Reputation: schoolsoluction is an unknown quantity at this point 
Solved Threads: 3
schoolsoluction schoolsoluction is offline Offline
Light Poster

Re: Sokoban game help needed (java)

 
0
  #4
Nov 29th, 2007
If you would like to implement an algorithm that tries to solve a problem have a look at this:

Java N Puzzle - heuristic search algorithms
Last edited by schoolsoluction; Nov 29th, 2007 at 9:20 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC