Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Starting seed for a Slick2D project using Eclipse

License

NotificationsYou must be signed in to change notification settings

joshzambales/OOSE-LunarLander

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This an eclipse project containing all the files necessary to begin developing games withSlick 2D. You can fork this repository, clone it on your disk and start to work in Eclipse.

Project configuration

After having cloned the repository to your disk you have to follow these few steps:

  1. Open Eclipse.
  2. Create a new java project selecting the local cloned folder.
  3. Right-click on the project and selectProperties.
  4. Click onJava Build Path.
  5. Expandlwjgl.jar.
  6. SelectNatives Library Location and click theEdit button.
  7. Click theWorkspace button.
  8. Select thenative folder in your project.
  9. ClickOK until you get back to the default eclipse window.
  10. SelectSimpleSlickGame.java from thePackage Explorer and press play to check it it works.

Building an executable JAR file

To generate an executable version of the game you will need to useJarSplice and follow these steps:

  1. Right-click on the project and selectExport.
  2. Click onJava and selectRunnable JAR File.
  3. Select your main class in theLunch configuration drop-down menu.
  4. SelectExtract required libraries into generated JAR and press theFinish button.
  5. DownloadJarSplice athttp://ninjacave.com/jarsplice and execute it (double-click on it).
  6. Select1) ADD JARS, press theAdd Jar(s) button in the bottom and select the previously exported JAR file.
  7. Select2) ADD NATIVES, press theAdd Native(s) button in the bottom, go to you projectsnative library and select all the files inside it.
  8. Select3) MAIN CLASS, and in theEnter Main Class area type in the name of your main class including the name of the package (e.g. examples.SimpleSlickGame).
  9. Select4) CREATE FAT JAR and press theCreate Fat Jar button.
  10. The Jar you generated can be distributed and played on Windows, Linux and Mac.

About

Starting seed for a Slick2D project using Eclipse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java100.0%

[8]ページ先頭

©2009-2025 Movatter.jp