Heaps Editor

Heaps Editor is an open-source 2D editor designed for quick and easy level creation, especially suited for non-grid-based physics. The editor also supports images, texture atlases, grid layers for pathfinding or grid-based collisions and the creation of pathways for objects.

Layers

Each scene supports multiple layers with different types.

  1. Collision Layer
    • Create precise collision boundaries with dedicated collision layers, essential for implementing accurate physics interactions in your game.
  2. Image Layer
    • Easily manage and manipulate images with dedicated image layers, allowing for seamless placement and adjustment of visual elements in your levels.
  3. Atlas Layer
    • Optimize rendering performance by organizing images into texture atlases on specialized layers, ensuring efficient use of resources and a polished visual presentation.
  4. Grid Layer
    • Utilize grid layers for pathfinding or grid-based collisions, streamlining the integration of navigation and obstacle detection within your game world.

Tools

Editor Tools

Mouse control

Editor Tools

Object editing

Editor Tools

Example

JSON structure

Below is a simplified example of a typical editor scene file:

{
	"name": "New Scene",
	"width": 960,
	"height": 600,
	"gridSize": 60,
	"layers": [
	  {
		"name": "Collision Layer",
		"type": 0,
		"atlas": "",
		"grid": [],
		"tiles": [
		  {
			"name": "empty",
			"type": 0,
			"originX": 0,
			"originY": 0,
			"x": 30,
			"y": 30,
			"width": 60,
			"height": 60,
			"source": "",
			"color": -1,
			"data": "",
			"tag": -1,
			"path": null
		  }
		]
	  }
	]
  }

Scene

Layer

Tile

Grid

The typedef for the all types you can find in Project parser file.

Limitations

Examples

In the examples folder you can find various examples of how to parse and use scenes created with the editor.

Download

You can download Heaps Editor on the project page.