Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

AppGameKit for Python

Create games using AppGameKit and Python! · By Fascimania

Getting Started Sticky

A topic by Fascimania created Mar 11, 2018 Views: 1,202
Viewing posts 1 to 1
Developer (2 edits)

This tutorial is geared toward those who are completely new to Python development.  If you have any questions, please ask away.

Installing Python

The first thing you'll want to do is download and install the latest version of Python 3 onto your system.  At time of writing, that version is 3.6.4.  Version 3.3 or greater is required.

Since AppGameKit for Python currently only supports Windows x86, be sure to download and install either "Windows x86 executable installer" or "Windows x86 web-based installer" listed at the bottom of the page.

The default install settings are fine to use.

Developing with IDLE

Python comes with its own minimal IDE called IDLE.  These steps will get you started developing with IDLE.

First, be sure to have downloaded the appgamekit.pyd file.  (Note that the filename cannot be changed.)

  1. Start IDLE.  This opens the "Python Shell" window.
  2. File -> New File.  This creates a new script file.
  3. Write your script.  For this example, just copy/paste the basic "Hello, World" script from the project page under "Installation and Usage".
  4. File -> Save.  Save the script file into the same folder that your appgamekit.pyd file is located.
  5. Run -> Run Module.  This runs your script and you should now see "Hello, World!" in an AppGameKit window.

Developing with PyCharm Community Edition

PyCharm Community Edition has more features than IDLE, such as easier integrated help and type checking.  To use both of these features, download the appgamekit.pyi file into the same folder as the pyd file.

Before we begin, download and install PyCharm Community Edition.  The default settings are fine.

  1. Start PyCharm.  if this is your first time running PyCharm, you'll need to accept its license, decide whether to share anonymous usage statistics or not, and select your UI theme.  If you want, you can "Skip Remaining and Set Defaults", but you may also want to go through all the steps and see what features PyCharm provides.
  2. Create New Project.
  3. Set the location of your project.  Before clicking "Create" click on "Project Interpreter" right below the location.  Here you can choose to use a Virtualenv, which is a localized copy of Python's files that will be created specifically for your project, or we can use an existing interpreter.  For this example, let's use the installed interpreter rather than a virtualenv.
  4. Click "Existing Interpreter".  If this is the first time PyCharm has been run, the interpreter line might be blank.
    1. Click the gear button and select "Add Local..."
    2. Select "System Interpreter" and find the location where you installed Python 3.6.  PyCharm should find it pretty easily itself.
    3. Click OK.
  5. Now click "Create"
  6. In the window that opens, select File -> New, then select "Python File" and call the file ""
  7. Make sure that the appgamekit.pyd and appgamekit.pyi files are in the same folder as your file.
  8. Write your script.  For this example, just copy/paste the basic "Hello, World" script from the project page under "Installation and Usage".
  9. Run -> Run... then select "main" in the drop down that opens.  After running it the first time, you'll be able to select "Run 'main'" from the Run menu.


The PYI file is only needed while developing.  PYI files are only used by IDEs and contain no code.