Basic Slick Window

Let us create an empty Java project. Go to File-->New Project-->Java-->Java Application. Now you have have an empty Java Project.
Before we start do any coding, lets add the Slick libraries into our project. As for now, you would have to do that each time you want
to program with the Slick libraries. Now, under your newly created project you should see 4 folders like the image below.



 
Right click on "Libraries ", select "Add Library". Then scroll down to select the Slick library we created from the previous section. Then
click "Add Library". Look at the image below


 

Finally, right click on the project and bring out something like the image below.

Where the "Working Directory is ", Browse to where to the native windows folder. The windows folder is inside lwjgl-2.7.1 that
you unzipped from the previous section. After you did that, click " OK " and we are ready to start our first Basic Slick Window.

Example



Click to Download Example


The code is pretty self-explanatory. Thus, I won't be going over the code. This program only display a simple window with FPS in it.
As we move along, you will get a better idea on how to use the init, update, and render methods. If you have Questions or comments
send us an e-mail or leave us a comment in our forum our staff will be glade to help you out. 

 

  <Slick><Home>