Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 852 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 852 Bytes

GoDoc

tilecollider

A simple 2D tile-based collision detection package for Go.

screen

Features

  • Fast tile-based collision detection
  • Easy integration with game engines like Ebitengine
  • Generic tile map support with any Integer type [y][x]T
  • Support for non-square tiles (different width and height values)
  • Adaptive iteration count based on movement speed (anti-tunneling)

Installation

go get github.com/setanarut/tilecollider

Usage

See the examples directory for usage example.

Run Ebitengine example on your machine

go run github.com/setanarut/tilecollider/examples/demo@latest