Exemplo n.º 1
0
        public void Update()
        {
            foreach (var action in PendingActions)
            {
                InputHandlers[action].Invoke();
            }
            PendingActions.Clear();

            CurrentLevel.Projectiles.ForEach(p => p.Update());
            CurrentLevel.Projectiles.RemoveAll(p => !BoundingRectangle.Contains(p.X, p.Y));
        }