| | |
Sokoban game help needed (java)
![]() |
•
•
Join Date: Nov 2007
Posts: 2
Reputation:
Solved Threads: 0
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
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
You might want to go through the Space Invaders 2D game tutorial on this site: http://www.cokeandcode.com/
•
•
Join Date: Sep 2007
Posts: 27
Reputation:
Solved Threads: 3
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
Java N Puzzle - heuristic search algorithms
Last edited by schoolsoluction; Nov 29th, 2007 at 9:20 am.
![]() |
Similar Threads
- Java freelancer needed urgently! (Software Development Job Offers)
- Cricket game :help needed (C)
- Java trouble (Java)
- Game devolpment books (Game Development)
- need help with game making (Java)
- Need java tutor? (Java)
- i need help downloading java (Java)
- Java project (Java)
- Problem with JAVA and XP & a few missing choices. *bangs head on desk* (Web Browsers)
Other Threads in the Java Forum
- Previous Thread: java strategy game
- Next Thread: eclipse configuration for application server
| Thread Tools | Search this Thread |
-xlint actionlistener android api applet application array arrays automation bi binary blackberry block bluetooth character chat class client code compile compiler component consumer database desktop developmenthelp eclipse error fractal freeze ftp game gameprogramming givemetehcodez graphics gui html ide image integer j2me j2seprojects java javac javaee javaprojects jetbrains jni jpanel jtable julia learningresources lego linked linux list loops mac map method methods mobile netbeans newbie notdisplaying number online printf problem program programming project properties qt recursion researchinmotion rotatetext rsa scanner screen server set singleton sms sort sql string swing system textfields threads time title tree tutorial-sample update variablebinding windows working xor






