deepnight / gameBase

Base structure for my games, using Heaps framework and Haxe language.
https://deepnight.net
MIT License
614 stars 152 forks source link
game haxe heaps webgl

About

A lightweight and simple base structure for games, using Heaps framework and Haxe language.

Latest release notes: View changelog.

GitHub Workflow Status GitHub Repo stars

Install

Legacy or master?

Two separate branches exist for GameBase:

The following document will only refer to the master branch.

Getting master

  1. Install Haxe and Hashlink: Step-by-step tutorial
  2. Install required libs by running the following command in the root of the repo: haxe setup.hxml

Compile

From the command line, run either:

The build.dev.hxml is just a shortcut to one of the previous ones, with added -debug flag.

Run the result with either:

Full guide

An in-depth tutorial is available here: Using gamebase to create a game. Please note that this tutorial still refers to the legacy branch, even though the general idea is the same in master branch.

Sample examples

The samples are the recommended places to start for the latest GameBase version (main).

They should give a pretty hands-on understanding of how entities work and how to integrate ldtk to development.

SamplePlayer.hx[SamplePlayer.hx]

SamplePlayer is an Entity with some extra functionalities:

SampleWorld.hx

A small class that just creates a SamplePlayer instance in the sample level.

Localization

For localization support (ie. translating your game texts), you may also check the following guide.

Questions

Any question? Join the Official Deepnight Games discord.

Cleanup for your own usage

You can safely remove the following files/folders from repo root: