A platformer game built for our 2nd semester Object Oriented Programming course.
- Slick2D library
- Java 8+
- LWJGL
- An IDE that supports java
- Go to the File menu
- Click project structure
- On the left side of the window click libraries
- Then click the + button to add a library
- Choose java
- A file explorer should open
- Navigate into the project folder
- You should see the libs folder, open that
- It should have two folders, natives and jars
- Include all four .jar files (simply click them and click OK)
- From the natives folder choose the folder with the same name as your operating system
- Click OK and then click apply
- Finally, right click the Game class and click run
- On the left side of the eclipse window there would be the project that you have opened
- Right click it and then select Properties
- Under the search box there would be a Java Build Path option
- Select the option and then click Libraries which is in the middle of the window
- Click the LWJGL jar and expand it
- Select Native library location
- By default, this option would have "none" written in parentheses.
- Click the option and then click "edit" which is on the right side of the window
- A new window will open asking the location path. Click on workspace which is on the right side of the text field
- Click on the project name and then click on lib and then click natives
- The folder should have folders with different operating system names. Choose the one with the same name as your OS
- Don't expand that folder just click on it and then press ok
- The path will be specified so click ok on the previous windows
- Use the left and right arrow keys to move the character
- Use the up arrow to jump
- The space bar to use the attack move
- You can use the escape key to pause the game and resume, go back to the main menu or quit the game
- If the game is too hard for you and you want to complete it still just go to the Bucky class and on line number 73 change the health to a huge number.
- You can also go into the Game class and on line number 37 change the enter state to whatever you like.The game will start from that state.
Slick2D Home
[http://slick.ninjacave.com/](http://slick.ninjacave.com/)