A Smoll game engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

20 lines
473 B

using Raylib_cs;
using Smoll;
using Smoll.Ex1;
Layer layer = new Layer();
var entity = new Entity(layer);
entity.Attach(new Transform2DComponent());
entity.Attach(new RectangleGizmoComponent(128, 64, Color.Red));
Raylib.InitWindow(800, 600, "Smoll");
while(!Raylib.WindowShouldClose()) {
layer.Update();
Raylib.BeginDrawing();
Raylib.ClearBackground(Color.White);
layer.Draw();
Raylib.DrawFPS(0,0);
Raylib.EndDrawing();
}
Raylib.CloseWindow();