A compiler from standardized JSON to JavaScript, runnable with the Heights.js game engine. No longer maintained.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This repo is no longer maintained, but was revived and edited in a redux branch. See what it would have looked like if it were made more recently here.


A compiler for Heights


Peak is a system to take standardized JSON source files and generate full JavaScript files for the Heights game engine. Peak can minify and optimize the code, as well as include the Heights engine for a complete file which you can simply drop into a webpage.

Peak source files are not intended to be written directly, though it is entirely possible. The idea for Peak is to provide automation for code generation from an easily manipulatable standard, allowing applications to help generate Heights games. See the source spec further down in this README.

NOTE: Peak is still in early, rapid development and is not intended for commercial use quite yet!


node peak SOURCEFILE


-o, --out Specify the output filename.

-m, --min Minify the output code.

-f, --full Include the Heights engine in the output file.

Sourcefile spec

NOTE: Peak is still in early development, this spec is NOT complete.

  "variables" : {
  "objects" : {
    "OBJECT_NAME" : {
      "constructor" : "CONSTRUCTOR_CODE",
      "functions" : {
        "FUNCTION_NAME" : [
      "collisions" : {
      "inputs" : {
        // For keyboad events
        "INPUT_EVENT_TYPE" : ["KEY", "CODE_TO_RUN"],
        // For mouse events