Autogenerated Beef bindings for raylib
Find a file
Braedon Lewis a5fccce9e2
Merge pull request #1 from Booklordofthedings/main
Upgraded to raylib 5.0
2023-11-18 14:32:27 -05:00
.idea/.idea.raylib-beef/.idea Remove todo 2023-04-13 08:28:40 -04:00
generator fix for changing the hardcoded paths 2023-11-18 18:31:07 +01:00
img Create raylib-beef-logo.png 2023-03-19 14:42:02 -04:00
raylib-api@75b79a9bb1 Add raylib-api as submodule 2023-03-19 14:05:29 -04:00
raylib-beef upgrade to 5.0 2023-11-18 18:29:19 +01:00
.gitattributes Initial commit 2023-03-19 12:57:34 -04:00
.gitignore Remove recovery folder 2023-03-19 13:59:17 -04:00
.gitmodules Add raylib-api as submodule 2023-03-19 14:05:29 -04:00
LICENSE Create LICENSE 2023-03-19 14:49:39 -04:00
raylib-beef.sln Initial commit 2023-03-19 12:57:34 -04:00
README.md Update README.md 2023-09-15 13:06:41 -04:00

raylib-beef

logo

BeefLang bindings for Raylib 4.5.

Note

: OS is limited to Windows right now, I see no reason why this wouldn't work on other platforms, though. I guess only one way to find out.

Example

using System;
using RaylibBeef;
using static RaylibBeef.Raylib;

namespace example;

class Program
{
	public static int Main(String[] args)
	{
		InitWindow(800, 600, "Raylib Beef 4.5");
		InitAudioDevice();

		var beefMain = Color(165, 47, 78, 255);
		var beefOutline = Color(243, 157, 157, 255);

		while (!WindowShouldClose())
		{
			BeginDrawing();
			
			ClearBackground(RAYWHITE);

			DrawRectangle(GetScreenWidth() / 2 - 128, GetScreenHeight() / 2 - 128, 256, 256, beefOutline);
			DrawRectangle(GetScreenWidth() / 2 - 112, GetScreenHeight() / 2 - 112, 224, 224, beefMain);

			DrawText("raylib", GetScreenWidth() / 2 - 44, GetScreenHeight() / 2, 50, beefOutline);
			DrawText("beef", GetScreenWidth() / 2 - 62, GetScreenHeight() / 2 + 46, 50, beefOutline);

			DrawRectangle(GetScreenWidth() / 2 + 54, GetScreenHeight() / 2 + 54, 42, 42, beefOutline);
			DrawRectangle(GetScreenWidth() / 2 + 62, GetScreenHeight() / 2 + 62, 26, 26, RAYWHITE);

			DrawCircle(GetMouseX(), GetMouseY(), 20, beefOutline);
			DrawCircle(GetMouseX(), GetMouseY(), 8, beefMain);

			DrawFPS(20, 20);

			EndDrawing();
		}

		CloseAudioDevice();
		CloseWindow();

		return 0;
	}
}

Contribution

I'll be happy to resolve any issues or pull requests.