Project 2D is a tile-based 2D game engine created using AutoHotkey. Its purpose is to allow users to create games using only a text editor and basic image editing.
According to Wikipedia:
Getting Started"A tile-based video game is a type of video or video game where the playing area consists of small rectangular, square, or hexagonal graphic images, referred to as tiles. The complete set of tiles available for use in a playing area is called a tileset. Tiles are laid out adjacent to one another in a grid; usually, some tiles are allowed to overlap, for example, when a tile representing a unit is overlaid onto a tile representing terrain. Tile-based games usually simulate a top-down or "2.5D" view of the playing area, and are almost always two-dimensional."
Before you can begin creating your first game, you'll need to download the current release of the Project 2D engine. The download links are available at the end of this post.
After you've downloaded the compressed zip archive, you'll need to extract the files to a directory on your computer. The Windows operating system should be capable of handling files with the zip extension, however you may download a third-party software such as 7-Zip to open the archive.
Project 2D is configured with an initial demonstration game as an example of how to use image and text files to create a multi-room level, and interact with the game environment.
The background is the image file that will be display behind the player. It's used to create the environment of the level, to create the appearance of a room or objects... The display area of the game is 640x640 pixels, using a 20x20 grid of 32x32 pixel tiles. The background image must match these dimensions to fit accurately in the game window.
A background can be created in any image editor, but I recommend using a tiled map editor when possible. A tiled map editor is like a stamping tool, allowing background images to be created and edited with ease. Visit one of the following links for more information:
To use a tiled map editor, you must have a tile map image (or collection of images). The tile map used in the demonstration is provided at the end of this post.
Project 2D uses text files to store information used for interacting with the current background image. This is where you define the boundaries of the room and location of objects, etc... Each 32x32 pixel tile of your background image can be assigned a numerical value of 0-9 which can be used to trigger an action when the player is occupying the space at that tile's coordinates.
You can create and edit the ASCII map files using a text editor, or you may use the ASCII Map Editor script that is attached at the end of this post.
Note that while the main window uses a 20x20 grid, the ASCII maps use a 22x22 grid to allow the player object to trigger an action while outside of window's viewable area.
Many websites are devoted to sharing resources to assist you with building assets for your games, or just to provide inspiration. A few examples are listed below:
- OpenGameArt - http://opengameart.org/
- Bfxr - http://www.bfxr.net/
- Kenney - http://kenney.nl/assets
- Title Scream - http://www.titlescream.com/
- NES Title Screens - http://nestitlescreens.tumblr.com/
- NFG's Arcade Font Tool - http://nfggames.com/games/fontmaker/
- Arcade Font Writer - http://arcade.photonstorm.com/
- Scirra Forums - https://www.scirra.com/forum/
- Develteam - http://www.develteam.com/
- The VG Resource - http://www.vg-resource.com/
A special thank you and show of appreciation to those that have contributed to this project:
Title Screen (640 x 640 px) - Click to enlarge
Floor 3 (640 x 640 px) - Click to enlarge
ASCII Map Editor (720x 762px) - Click to enlarge
The most recent release of Project 2D
Project2D_rev2.zip (336.67 KB) - March 13, 2017
ASCII Map Editor
Visual editor for creating and editing the ASCII map files
MapEdit_rev2.zip (5.84 KB) - March 13, 2017
Images collected from various sources
Demo_Tilemap.png (7.85 KB) - June 08, 2016
These files are outdated and kept for archival purposes only. Please refer to the most recent releases for the latest additions and improvements.
Project2D_rev1.zip (92.83 KB) - June 08, 2016
Project_2D_20150507002944.zip (214.81 KB) - May 07, 2015
Project_2D_20150505210148.zip (12.03 KB) - May 05, 2015
MapEdit_rev1.zip (3.29 KB) - June 14, 2016