public RenderSystem(Vector2u screenDimensions) { ActionableComponents.Add(typeof(Position)); ActionableComponents.Add(typeof(Sprite)); _window = new RenderWindow(new VideoMode(screenDimensions.X, screenDimensions.Y), "SFML window", Styles.Close); _window.Closed += delegate { GameBase.Running = false; _window.Close(); }; _window.SetVisible(true); //_window.SetFramerateLimit(60); _debugText = new Text("FPS: 0", _debugFont, 24); _debugText.Position = new Vector2f(_window.GetViewport(_window.GetView()).Width - _debugText.GetLocalBounds().Width - 10, 0f); _debugText.Color = Color.Black; _debugText.CharacterSize = 16; }
public InputSystem() { ActionableComponents.Add(typeof(KeyboardInput)); }
public AnimationSystem() { ActionableComponents.Add(typeof(Sprite)); ActionableComponents.Add(typeof(Animation)); }