Пример #1
0
        public Shape2D(Vector2 position, Vector2 scale, string tag)
        {
            this.Position = position;
            this.Scale    = scale;
            this.Tag      = tag;

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

            ExpressedEngine.RegisterShape(this);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public void DestroySelf()
 {
     Log.Info($"[Shape2D] {Tag} - has been destoryed!");
     ExpressedEngine.UnRegisterShape(this);
 }