Пример #1
0
        public AirShip()
        {
            Dictionary<string, Animation> Animations = new Dictionary<string, Animation>();
            Animations.Add("Idle", new Animation(0f, 1, false, "Ships/full"));

            sprite = new Sprite(Animations);
            sprite.PlayAnimation("Idle");

            requiresGroundToStep = false;
            //stepValue = 300;
            position = new Vector2(5000f, 500f);
            velocity = new Vector2(0f, 100f);
            drawPriority = 0f;
            collidesWithTiles = true;
            collidesWithOtherEntities = false;
            gravityEffect = 10f;
            active = true;
            radius = 42f;
            layer = 1;
            tileHeight = 5;
            tileWidth = 7;
            spriteEffects = SpriteEffects.None;
        }