Skip to content
Scott Cummings edited this page Aug 7, 2013 · 17 revisions

If this is your first attempt at building a game using this game engine, there are a few items you will want to be familiar with before diving in.

Platypus Overview

The Platypus game framework allows rapid development of 2D tile based games such as platformers. Levels maps are edited using the free Tiled Map Editor and the framework contains plenty of functionality to start authoring levels out of the box, such as prebuilt entities for the player, bad guys, portals, menus and much more. Once you have the engine downloaded and working, check out the PUT LINK TO EXAMPLE GAMES HERE to see what is available.

To get the included example game up and running:

  • Clone or download the Platypus source.
  • Have a web server running on your local machine that can serve the Platypus files.
  • Navigate to /game/template.html

You should see the simple included example level!

Making A Game

After you've edited the example level, you'll want to get started implementing more functionality, adding your own assets and

Example Game and Game Builds

The Platypus framework comes with a very simple example game to start a project from. There are more robust examples of the engine functionality at PUT LINK TO EXAMPLE GAMES HERE. The default example game can be viewed at /game/template.html (you must use a simple web server on your local computer such as WAMP, MAMP, etc) and can be built for debugging and deployment by following the instructions at PUT LINK TO BUILD INSTRUCTIONS HERE. This game is entirely defined by the information included in the /game/ and /engine/ folders, so editing the example data is a quick and easy way to see how changing certain entities and components affect the game.

Structure

The Platypus source contains three directories, and a fourth directory will be added by the build tools on your first compilation:

  • /builds/ (created at compilation)
  • /engine/
  • /game/
  • /tools/

The /builds/ directory will contain the various game builds created by running the compilation scripts in /tools/. The default builds are /builds/debug/ for debugging and /builds/game/ for deployment. The /engine/ directory contains core game engine source code that does not normally need to be edited to make a game. The /game/ folder contains all of the code, assets, configurations and level maps necessary to implement a particular game. Finally, the /tools/ directory contains scripts that compile the game source, optimize images and many other things necessary to deployment and debugging of your game.

Clone this wiki locally