Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minegame159/beefsfml
SFML wrapper for the Beef programming language
https://github.com/minegame159/beefsfml
beef-language library sfml-wrapper
Last synced: 7 days ago
JSON representation
SFML wrapper for the Beef programming language
- Host: GitHub
- URL: https://github.com/minegame159/beefsfml
- Owner: MineGame159
- License: mit
- Created: 2020-05-05T06:18:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-13T18:54:06.000Z (over 3 years ago)
- Last Synced: 2024-11-12T06:05:53.987Z (2 months ago)
- Topics: beef-language, library, sfml-wrapper
- Language: Beef
- Homepage:
- Size: 2.36 MB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BeefSFML
SFML wrapper for the Beef programming language https://www.beeflang.org created by Meatnose (EnokViking) and then finished by MineGame159.
This wrapper depends on the CSFML bindings which can be found here: https://www.sfml-dev.org/download/csfml.This API is not documented but it is mostly similar to the SFML.NET binding which was used as a point of reference.
# Requirements:
Beeflang version 0.42.8+# Quick Start *(using Beef IDE)*
1. Copy this repository or download the ZIP-archive.
2. Either copy the submodule folders (BeefSFMLSystem, Graphics, Windows, Network & Audio) to the 'BeefLibs' folder in your beef installation directory -
or just place them wherever you see fit.
3. If you placed them in the 'BeefLibs' folder, you can simply rightclick your workspace and click "Add from installed", else you have to click "Add existing project" -
and manually navigate to each BeefProj.toml
4. **Mark** the modules **as a dependency** of your startup project by rightclick -> properties -> dependencies
6. Per default, each submodule is configured with a postbuild command to copy the CSFML DLL's (debug / release, depending on project type) from a submodule/dist folder. -
since CSFML binaries aren't distributed with these bindings, you will have to add these to the submodules manually, or alternatively just change the postbuild command to fit your needs.
5. Enjoy beautiful **SFML**.```cs
using (let window = new RenderWindow(VideoMode(800, 600), "Game")) {window.ClosedEvent.Add(scope (window) => {
window.Close();
});while (window.IsOpen()) {
window.DispatchEvents();
window.Clear(Color.CornflowerBlue);
window.Display();
}
}
```