https://github.com/gocs/marchingsquares
🏃♂️⏹ This will generate array of marching squares config; just specify 2dmap and its dimensions, and will be given vertices and indexes for ebiten.DrawTriangle
https://github.com/gocs/marchingsquares
Last synced: 2 months ago
JSON representation
🏃♂️⏹ This will generate array of marching squares config; just specify 2dmap and its dimensions, and will be given vertices and indexes for ebiten.DrawTriangle
- Host: GitHub
- URL: https://github.com/gocs/marchingsquares
- Owner: gocs
- License: apache-2.0
- Created: 2020-01-28T15:53:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-25T10:34:56.000Z (almost 3 years ago)
- Last Synced: 2025-01-02T10:45:22.523Z (4 months ago)
- Language: Go
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Marching squares
Simple Marching Squares implementation in ebiten.
Based on Sebastian Lague's Marching Squares tutorial.
### Basic
This showcases the basic Marching Squares implementation.
There are nothing more than just an image.```
go run ./cmd/1_basic/main.go
```### Aggregate
This features a square that can be moved on the marching squares map.
To move the square, press and hold Mouse 3 as if you are panning.
Aggregate in this context is adding a square with moving functionality on the marching squares map.```
go run ./cmd/2_aggregate/main.go
```### Product
This features the whole marching squares map to be dragged.
This also offers the same keyboard input as the Aggregate.
Product in this context means dragging functionality on the marching squares map itself.```
go run ./cmd/3_product/main.go
```## Limitations
- Drawing in Triangles.
- OpenGL vertex limit## License
MIT