@hex-engine/2d

This package expands on @hex-engine/core to provide primitives for making a 2D game in Hex Engine.

Usage no npm install needed!

<script type="module">
  import hexEngine2d from 'https://cdn.skypack.dev/@hex-engine/2d';
</script>

README

@hex-engine/2d

This package expands on @hex-engine/core to provide primitives for making a 2D game in Hex Engine.

It includes:

  • An HTML5 Canvas-based renderer
  • useUpdate and useDraw hooks
  • Support for sprite sheets and animations
  • Components that make it easy to work with Aseprite, Tiled, and BMFont assets
  • Components that make it easy to work with mouse, keyboard, and gamepad input
  • Components for a 2D Physics Engine (matter.js)
  • Components and hooks for working with the Web Audio context and generating procedural sound via modal-synthesis
  • And much, much more

For more information, please check the main README for Hex Engine.