Softwr

Game Development · head to head

Heaps vs LittleJS

Heaps logo

Heaps

Game Development

Free open-source Haxe graphics and game engine for 2D and 3D games

From
Free
Free plan
Yes
LittleJS logo

LittleJS

Game Development

Tiny, fast, fully open-source HTML5 game engine for 2D and 3D

From
Free
Free plan
Yes

The short version

  • LittleJS is a lightweight open-source HTML5 game engine.
  • Both are free.
  • Only Heaps lists h2d, h3d, hxd and hxsl toolkits; only LittleJS lists built-in 3D renderer.
  • Where Heaps falls short: requires Haxe, which has a small developer base.
  • Where LittleJS falls short: code-first with no visual scene editor for 2D games.

How do Heaps and LittleJS differ?

Only the attributes on which Heaps and LittleJS actually diverge.

On every field we record, Heaps and LittleJS match. The differences are in what each one covers, below.

Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes), platforms (Web), category (Game Development).

Which features does each one have?

They share no listed features; 7 appear only for Heaps and 9 only for LittleJS. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Heaps

  • 2D and 3D rendering
  • h2d, h3d, hxd and hxsl toolkits
  • Cross-platform GPU shader system
  • FBX, PNG, JPG and OGG support
  • Controller, mouse and keyboard input
  • Fast compile and run cycle
  • Native cross-platform compilation

Only in LittleJS

  • WebGL2 and Canvas2D rendering
  • Built-in 3D renderer
  • 2D lights and shadows
  • Particle system
  • Arcade physics and Box2D
  • Audio with ZzFX
  • Mouse, keyboard, gamepad and touch input
  • UI and tween systems

What is each one used for?

Heaps is most often brought in for high performance 2D games; LittleJS for game jam entries. The jobs each tool is most often brought in to do.

Heaps

  • High performance 2D gamesnot LittleJS
  • 3D indie gamesnot LittleJS
  • Cross-platform releases from one codebasenot LittleJS
  • Custom tools built with Haxenot LittleJS
  • Shader heavy projectsnot LittleJS

LittleJS

  • Game jam entriesnot Heaps
  • Small browser arcade gamesnot Heaps
  • Size-conscious web gamesnot Heaps
  • Learning game programming in JavaScriptnot Heaps
  • Mobile-friendly web gamesnot Heaps

Where do Heaps and LittleJS fall short?

Heaps's most cited limit: requires Haxe, which has a small developer base. LittleJS's: code-first with no visual scene editor for 2D games. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Heaps

  • Requires Haxe, which has a small developer base
  • No integrated visual editor, so tooling is code or third party
  • Fewer learning courses than mainstream engines
  • Needs Haxe 3.4 or newer installed before Heaps can be added

LittleJS

  • Code-first with no visual scene editor for 2D games
  • No visual editor or asset pipeline beyond the code and examples
  • Targets browsers, so native console builds need extra work
  • Games are written in JavaScript or TypeScript, so coding skill is needed

How much do Heaps and LittleJS cost?

Heaps is free to use; LittleJS is free to use. Plan by plan below, from each vendor's own pricing page.

Heaps

Free

No published plan breakdown. See the Heaps review.

LittleJS

Free

No published plan breakdown. See the LittleJS review.

Which should you pick?

Choose Heaps if

  • You need 2d and 3d rendering.
  • You want to start without paying.
  • You also want h2d, h3d, hxd and hxsl toolkits.

Choose LittleJS if

  • You need webgl2 and canvas2d rendering.
  • You want to start without paying.
  • You also want built-in 3d renderer.

Questions people ask

Is Heaps or LittleJS better?
It depends on the job. Heaps fits high performance 2D games; LittleJS fits game jam entries. Heaps starts at Free and LittleJS at Free.
Which is cheaper, Heaps or LittleJS?
Heaps starts at Free and LittleJS at Free.
Does Heaps or LittleJS run on more platforms?
Both run on Web, so platform support will not decide this one for you.
Can I use Heaps for free?
Both have a free tier, so you can try either at no cost before committing.
What is Heaps best used for?
Heaps is most often used for high performance 2d games, 3d indie games, cross-platform releases from one codebase, custom tools built with haxe. Of those, high performance 2d games and 3d indie games are not what LittleJS is typically brought in for.
What can Heaps do that LittleJS cannot?
Heaps covers 2D and 3D rendering, h2d, h3d, hxd and hxsl toolkits, Cross-platform GPU shader system, FBX, PNG, JPG and OGG support. LittleJS covers WebGL2 and Canvas2D rendering, Built-in 3D renderer, 2D lights and shadows, Particle system.

Answered from the vendors’ own pages

Heaps: Does Heaps charge a revenue share?

No. The site says it is free with no revenue share and no hidden fee.

Source
LittleJS: Is LittleJS free?

Yes. It is fully open source under the MIT licence.

Source
Heaps: Does it do 3D?

Yes, Heaps supports both 2D and 3D, with an h3d toolkit for 3D models.

Source
LittleJS: Does LittleJS support 3D?

Yes. A built-in 3D renderer shares the canvas with the 2D game and loads OBJ and glTF models.

Source
Heaps: How do I install it?

Install Haxe 3.4 or newer and run haxelib install heaps.

Source
LittleJS: Can I use TypeScript?

Yes. LittleJS has full TypeScript and module support with example projects for both.

Source
LittleJS: Does it include physics?

Yes. It has an arcade physics system and Box2D integration for realistic physics.

Source
Share

Related pages

Other head to heads