For starters head over to our GitHub repository and download a .zip file containing Game Pencil’s source. Extract it and then follow the instructions below.

 

It is recommended to use CodeBlocks to compile Game Pencil although other IDEs should compile the editor just as fine. We do provide our CodeBlocks project file alongside the source so one does not have to worry about makefiles and you see exactly what we see when we code updates for the editor.

 

Written for 32-bit systems. Although we plan to add 64-bit executables in the future we chose to go with the 32-bit version of SDL to be compataible with older systems on windows.

In order to successfully compile Game Pencil’s Editor you will need the following libraries:

  • SDL 2 ( Download Page) Game Pencil currently uses 2.0.5; but 2.0.6 should work just fine.
  • SDL2_image( Download Page) Search for development libraries and find your supported OS.
  • SDL2_mixer( Download Page)Search for development libraries and find your supported OS.
  • SDL2_ttf( Download Page)Search for development libraries and find your supported OS.

 

C++ Version?

Game Pencil’s current codebase just uses basic C++ and is not dependent on C++ 11 and new versions. The “toughest part” to compiling Game Pencil is just properly linking and utilizing the SDL dependencies.

 

Linked libraries( For Windows)

-lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lComdlg32

 

Linked libraries( For OSX)

-lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf

 

Linked libraries( For Linux)

-lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf

 

Creating SDL Projects in C/C++

Our friends at lazyfoo.net has created a set of detailed tutorials for getting an SDL application working in a few popular C++ IDEs.

 

Makefile?

Using an alternative compiler? Click here to see makefile contributed by Vaelatern.

 

Licensing

Game Pencil Engine is under the wonderful MIT license.