Skip to content

Instantly share code, notes, and snippets.

@MidnytRaccoon
Created September 20, 2025 00:57
Show Gist options
  • Select an option

  • Save MidnytRaccoon/bc39255c9871eebda821d44aeb85c083 to your computer and use it in GitHub Desktop.

Select an option

Save MidnytRaccoon/bc39255c9871eebda821d44aeb85c083 to your computer and use it in GitHub Desktop.
using Raylib_cs;
using System.Drawing;
using System.Numerics;
public struct windowSize
{
public int width;
public int height;
}
class Program
{
static void Main()
{
windowSize gameSize = new windowSize { width = 1280, height = 720 };
Raylib.InitWindow(gameSize.width, gameSize.height, "Insaniquarium Clone");
Raylib.SetTargetFPS(60);
GameHandler game = new GameHandler(gameSize.width, gameSize.height);
while (!Raylib.WindowShouldClose())
{
Raylib.BeginDrawing();
Raylib.ClearBackground(Raylib_cs.Color.White);
game.Update();
Raylib.EndDrawing();
}
Raylib.CloseWindow();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment