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.

19 lines
473 B

8 months ago
  1. using Raylib_cs;
  2. using Smoll;
  3. using Smoll.Ex1;
  4. Layer layer = new Layer();
  5. var entity = new Entity(layer);
  6. entity.Attach(new Transform2DComponent());
  7. entity.Attach(new RectangleGizmoComponent(128, 64, Color.Red));
  8. Raylib.InitWindow(800, 600, "Smoll");
  9. while(!Raylib.WindowShouldClose()) {
  10. layer.Update();
  11. Raylib.BeginDrawing();
  12. Raylib.ClearBackground(Color.White);
  13. layer.Draw();
  14. Raylib.DrawFPS(0,0);
  15. Raylib.EndDrawing();
  16. }
  17. Raylib.CloseWindow();