예제 #1
0
        public Light(Vector2f Pos, float Range, Color Clr)
        {
            this.Range = Range;

            LSprite        = new Sprite(GraphicsMgr.GetTexture("lightmask.png"));
            Position       = Pos;
            LSprite.Origin = new Vector2f(LSprite.Texture.Size.X, LSprite.Texture.Size.Y) / 2;
            LSprite.Scale  = new Vector2f(Range / LSprite.Texture.Size.X, Range / LSprite.Texture.Size.Y);
            LSprite.Color  = Clr;
        }