So, you want to make games?
==Basics==
First, download the InstallPig2D.jar file and run it. Then open up your IDE (Netbeans or Eclipse) and create a new project, selecting a normal Java application.
Name it whatever you want and hit finish.
Right click on the 'Libraries' folder and select 'Add JAR/Folder'. On windows, type %appdata% in the address bar and go int .cyberninjapiggy -> Pig2D. Go into that folder and select 'Pig2D.jar'. Click OK. Click add library again. Now go int that same place, but then into 'lib'. Select all of those jars by shift-clicking, and click OK. Now add after your main class declaration, add "extends Pig2Dmain" You'll probably get an error saying something along the lines of "Cannot find symbol: Pig2Dmain". To fix this, add an import for "net.cyberninjapiggy.Pig2Dmain". You'll also probably need to add the method run(), which is where the main logic of your game goes. In your static void main() function, add the following code:
(new Thread(new <your class name>())).start();
Pig2Dmain.run(args);
Replace <your class="" name=""> with your class's name.
In your run() method, add this code:</your>
if (tick==0) {
}
This is where initialization goes.
==Sprites==
Make a new class, and make it 'extends Sprite'. Add the import for net.cyberninjapiggy.Sprite, and add the abstract method mycode(). This is where the sprites code goes. You also need to have a constructor, like this:
public MySprite() {
super();
}
Now, in your run() function, add the code
registerSprite(new MySprite());
This will make the game show the sprite.
Thanks for reading. I'll add more later, but this is tiring on the hands.