pixelfaucet/README.md

51 lines
968 B
Markdown
Raw Normal View History

2021-11-25 20:25:28 +01:00
# PixelFaucet Game
2021-11-29 08:26:51 +01:00
[![GitHub release](https://img.shields.io/github/release/sleepinginsomniac/pixelfaucet.svg)](https://github.com/sleepinginsomniac/pixelfaucet/releases)
2021-11-25 20:25:28 +01:00
An SDL2 based game engine
## Installation
1. Install sdl2
homebrew: `brew install sdl2`
2. Add the dependency to your `shard.yml`:
2021-11-29 08:26:51 +01:00
```yaml
dependencies:
pixelfaucet:
github: sleepinginsomniac/pixelfaucet
```
2021-11-25 20:25:28 +01:00
3. Run `shards install`
## Usage
```crystal
require "pixelfaucet/game"
class Example < PF::Game
def update(dt)
end
def draw
end
end
e = Example.new(100, 60)
e.run!
```
## Contributing
1. Fork it (<https://github.com/your-github-user/pixel_faucet/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
## Contributors
- [Alex Clink](https://github.com/your-github-user) - creator and maintainer