コード例 #1
0
        // ----

        public void Initialize(Vector2 position, Sprite spriteSheet)
        {
            this.position = position;
            random        = new Random();
            sprite        = spriteSheet.GetSubSprite(new Rectangle(0, 47, 159, 152));

            scale     = INIT_SCALE;
            speed     = INIT_EXPLOSION_SPEED;
            direction = new Direction(MathFunctions.GetRandomDirection());
            color     = INIT_COLOR;
            lifeTime  = BASE_LIFE_TIME + random.Next(RANDOM_LIFE_TIME);
        }