Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pusewicz/wave-function-collapse-dragonruby
https://github.com/pusewicz/wave-function-collapse-dragonruby
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/pusewicz/wave-function-collapse-dragonruby
- Owner: pusewicz
- Created: 2024-04-02T06:40:40.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-22T21:56:47.000Z (7 months ago)
- Last Synced: 2024-05-22T22:42:25.176Z (7 months ago)
- Language: Ruby
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-dragonruby - Wave Function Collapse - An implementation of the tiled [Wave Function Collapse](https://en.wikipedia.org/wiki/Wave_function_collapse) algorithm in DragonRuby (Samples)
README
# Wave Function Collapse in DragonRuby
This repository is an example implementation of the [Wave Function Collapse](https://github.com/mxgmn/WaveFunctionCollapse) algorithm using [DragonRuby](https://dragonruby.org/toolkit/game).
The algorithm is used to generate the entire map using tiles based on the rules. Rules are defined using the [Tiled](https://www.mapeditor.org/) program and read by the Ruby program from the [TSJ](https://github.com/pusewicz/wave-function-collapse-dragonruby/blob/main/assets/map.tsj) file.
![Wave Function Collapse in DragonRuby](mygame/assets/screenshot.png)
## Live Demo
Because DragonRuby allows building an HTML game, you can test the implementation yourself at https://pusewicz.github.io/wave-function-collapse-dragonruby/. HTML version is slower compared to a native build.
## Objective
Build the Wave Function Collapse algorithm in DragonRuby that's fast enough to iterate in a game on each frame.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/pusewicz/wave-function-collapse-dragonruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/pusewicz/wave-function-collapse-ruby/blob/main/CODE_OF_CONDUCT.md).
## Others
- [Wave Function Collapse in Ruby](https://github.com/pusewicz/wave-function-collapse-ruby)
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Credits
Tileset: https://opengameart.org/content/consolidated-hard-vacuum-terrain-tilesets