Monday, September 12, 2011

Setting Up Slick2d with Eclipse

I developed my first computer game with Slick2d game engine. Yey! This post, and (maybe) the following posts will show how I created the game. For now, let's start with setting up the development environment.

First, you need to download the following libraries:
Open your Eclipse and start a new Java Project
  • Go to File->New->Java Project. New project window will open. After giving name to the project (in this case "Project1"), click "Finish".

  • On the project explorer window, right click the project, and select "Properties".
  • Select "Java Build Path", then "Libraries" tab, then "Add External JARs". Locate and add the lwjgl.jar and slick.jar files.


  • Now, it's time to set up the lwjgl natives. Click the arrow beside the lwjgl.jar then select "Native Library Location". Locate the lwjgl folder, open the natives folder and choose the native that is appropriate for your OS.



And that's it, we're done! You may now try to create slick2d games.


Tuesday, September 6, 2011

Hello, World!

printf("Hello, Blogspot!");

printf("OK, I'm starting this new blog. I'll try to post every monday, tuesday, wednesday.   ");

printf("It will cover anything under the sky. But will mostly feature my programming and hiking activities.");

exit();