crystal_allegro
Version, currently master branch1 version
- master branchlatestOct 26, 2018
github.com/Fryguy/crystal_allegro
Crystal binding to the Allegro game programming library.
8 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
crystal_allegro:
github: Fryguy/crystal_allegro
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.26.1- License
- MIT
- Author
- Jason Frey <fryguy9@gmail.com>
Dependencies
Development Dependencies
- crystal_lib*github: crystal-lang/crystal_lib, branch: masterdev
README
# CrystalAllegro
CrystalAllegro is a Crystal binding to the [Allegro](http://liballeg.org/) game programming library.
## Installation
- [Install Allegro](https://wiki.allegro.cc/index.php?title=Getting_Started#Installing_Allegro)
- Install the Crystal shard
Add this to your application's `shard.yml`:
```yaml
dependencies:
crystal_allegro:
github: Fryguy/crystal_allegro
```
## Usage
Start your application by calling CrystalAllegro.init:
```crystal
require "crystal_allegro"
raise "Cannot initialize Crystal" unless CrystalAllegro.init
```
After that, it's up to you! For the Allegro API reference, go [here](http://liballeg.org/a5docs/trunk/).
See the [examples](examples) directory for Crystal ports of the Allegro examples.
## Development
`src/crystal_allegro/lib_allegro.cr` is generated using
[crystal_lib](https://github.com/crystal-lang/crystal_lib). To regenerate it:
```sh
git clone https://github.com/crystal-lang/crystal_lib.git
cd crystal_allegro
crystal ../crystal_lib/src/main.cr -- generator/lib_allegro.cr > src/crystal_allegro/lib_allegro.cr
```
## Contributing
1. Fork it ( https://github.com/Fryguy/crystal_allegro/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). See [LICENSE](LICENSE).
### Third Party Licenses
The files in examples/data are borrowed from the Allegro source in order to allow the Crystal examples to serve as a mirror of the original examples. As such, the Allegro license is also included in [LICENSE_ALLEGRO](LICENSE_ALLEGRO).
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Oct 26, 2018
- Crystal
0.26.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Fryguy/crystal_allegro
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 13, 2026
- Versions
- 1