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.
Beeflang version 0.42.8+
- Copy this repository or download the ZIP-archive.
- 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.
- 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
- Mark the modules as a dependency of your startup project by rightclick -> properties -> dependencies
- 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.
- Enjoy beautiful SFML.
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();
}
}