https://github.com/bitbrain/bitgrid
Smart bit-based system to store states in a grid
https://github.com/bitbrain/bitgrid
Last synced: about 2 months ago
JSON representation
Smart bit-based system to store states in a grid
- Host: GitHub
- URL: https://github.com/bitbrain/bitgrid
- Owner: bitbrain
- License: apache-2.0
- Created: 2013-09-09T11:33:50.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-09T16:50:21.000Z (over 12 years ago)
- Last Synced: 2025-06-04T04:42:41.847Z (10 months ago)
- Size: 820 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

Smart bit-based system to store boolean states in a fixed grid.
### Getting started
Using bitgrid it pretty simple:
```java
// Create a new grid of dimensions 1200x1200
BitGrid grid = new BitGrid(1200, 1200);
// Let's set a value
grid.set(400,400);
// Let's check a value
boolean isSet = grid.get(200,210);
boolean isSet2 = grid.get(400,400); // will return true
```
You can use this system to provide simple collision detection for tile based maps.
### Download
You can download a packed version [here](https://www.dropbox.com/sh/fifnk84rj7n54a0/iXHudwva8Y).
### Development
If you have further questions, mail to [Miguel Gonzalez](mailto:miguel-gonzalez@gmx.de) or [visit his website](http://my-reality.de).