예제 #1
0
파일: Sprite2D.cs 프로젝트: xuzhg/Moutain
        public Sprite2D(Vector2 position, Vector2 scale, string directory, string tag)
        {
            this.Position  = position;
            this.Scale     = scale;
            this.Directory = directory;
            this.Tag       = tag;

            Log.Info($"[Sprite2D] {Tag} - has been registered!");

            Sprite = Image.FromFile($"assets/sprite/{directory}.png");
            // Sprite = new Bitmap(tmp);

            ExpressedEngine.RegisterSprite(this);
        }