private static void Main() { Debug.Log("Starting Game."); using (var game = new Game()) { EngineReferences.Game = game; var player = new Entity("Player"); Sprite sprite = new Sprite("Content/Sprites/table.png"); KeyboardController controller = new KeyboardController() { Speed = 15 }; player.AddComponent(sprite); player.AddComponent(controller); player.AddComponent(new RigidBody()); player.Transform.Position = new Vector2(50, 50); player.Transform.Size = new Vector2(100, 100); game.AddEntity(player); game.Run(); } }