Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simre1/yampa-sdl2
Yampa and SDL2 made easy
https://github.com/simre1/yampa-sdl2
frp game game-2d game-engine game-engine-2d haskell sdl2 sdl2-bindings sdl2-library yampa
Last synced: 24 days ago
JSON representation
Yampa and SDL2 made easy
- Host: GitHub
- URL: https://github.com/simre1/yampa-sdl2
- Owner: Simre1
- License: mit
- Created: 2018-01-19T14:06:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-02T16:42:49.000Z (11 months ago)
- Last Synced: 2024-03-14T19:18:19.010Z (8 months ago)
- Topics: frp, game, game-2d, game-engine, game-engine-2d, haskell, sdl2, sdl2-bindings, sdl2-library, yampa
- Language: Haskell
- Homepage:
- Size: 2.48 MB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# YampaSDL2
**Discontinued** because the performance is really not great.
YampaSDL2 is basically a headstart for the FRP library [Yampa](https://github.com/ivanperez-keera/Yampa) and SDL2. All the boilerplate which is normally necessary for these two libraries to work together is already taken care of. In the end, all that remains is a high-level interface specifically tailored to Yampa which should get you going in no time.
![Screenshot](./screenshot.png)
Screenshot of some drawn shapes.
**Primary Goals:**
- As little setup as possible
- Easy to use (some feedback would be appreciated)## Roadmap
- [ ] Display Shapes
- [x] Rectangle
- [x] Circle
- [ ] Triangle
- [ ] Polygon
- [x] Display Images
- [x] Animations
- [x] Handle Input
- [ ] Play sound**This library is still work in progress**
## Getting started
### Prerequisites
To use yampa-sdl2 you need to have the C-library _sdl2_ installed on your system.
### Installation
yampa-sdl2 is on [hackage](https://hackage.haskell.org/package/yampa-sdl2)! Adding yampa-sdl2 to your dependencies like any other package should do the trick
## How to use
Head over to the [wiki](https://github.com/Simre1/yampa-sdl2/wiki).
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.