https://github.com/setanarut/tilecollider
Package tilecollider provides collision detection for tile-based games in Go language.
https://github.com/setanarut/tilecollider
Last synced: 12 months ago
JSON representation
Package tilecollider provides collision detection for tile-based games in Go language.
- Host: GitHub
- URL: https://github.com/setanarut/tilecollider
- Owner: setanarut
- License: mit
- Created: 2024-11-26T00:07:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-19T22:36:01.000Z (over 1 year ago)
- Last Synced: 2025-01-19T23:33:19.488Z (over 1 year ago)
- Language: Go
- Size: 32.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pkg.go.dev/github.com/setanarut/tilecollider)
# tilecollider
A simple 2D tile-based collision detection package for Go.

## 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
```sh
go get github.com/setanarut/tilecollider
```
## Usage
See the [examples](./examples) directory for usage example.
## Run Ebitengine example on your machine
```sh
go run github.com/setanarut/tilecollider/examples/demo@latest
```