Example #1
0
        public Platform(IParent parent, int blockAmountX, int blockAmountY, Vector2 position = new Vector2(), Color color = new Color())
            : base(parent: parent,
                position: position,
                collidable: true)
        {
            _colorBehaviour = new ColorBehaviour(this);

            Color = color;

            BlockAmountX = blockAmountX;
            BlockAmountY = blockAmountY;
        }
Example #2
0
        public Character(IParent parent, ISpawn spawn = null)
            : base(parent)
        {
            Spawn = spawn;
            MovableBehaviour = new MovableBehaviour();

            _onDieListeners = new List<Delegate>();
            _colorBehaviour = new ColorBehaviour(this);

            WalkingAcceleration = 15;
            WalkingSpeed = 40;
            jumpPower = 42;
        }