Example #1
0
        public Shape2D(Vector2 Position, Vector2 Scale, String Tag, Color color)
        {
            this.Position = Position;
            this.Scale    = Scale;
            this.Tag      = Tag;
            this.color    = color;

            Log.Info($"[SHAPE2D]({Tag}) - Has Been registered!");
            RTSEngine.RegisterShape(this);
        }
Example #2
0
        public Sprite2D(Vector2 Position, Vector2 Scale, Sprite2D refrence, String Tag)
        {
            this.Position = Position;
            this.Scale    = Scale;
            this.Tag      = Tag;

            this.Sprite = refrence.Sprite;

            Log.Info($"[SPRITE2D]({Tag}) - Has Been registered!");
            RTSEngine.RegisterSprite(this);
        }
Example #3
0
        public Sprite2D(string Directory)
        {
            this.isReference = true;
            this.Directory   = Directory;

            Image temp = Image.FromFile($"Assets/Sprites/PNG/{Directory}.png");

            Bitmap sprite = new Bitmap(temp, 50, 50);

            this.Sprite = sprite;

            Log.Info($"[SPRITE2D]({Tag}) - Has Been registered!");
            RTSEngine.RegisterSprite(this);
        }
Example #4
0
        /// <summary>
        /// Sets the sacle position tag and immage of the sprite that you are using
        /// </summary>
        /// <param name="Position"></param>
        /// <param name="Scale"></param>
        /// <param name="Directory"></param>
        /// <param name="Tag"></param>
        public Sprite2D(Vector2 Position, Vector2 Scale, string Directory, String Tag)
        {
            this.Position  = Position;
            this.Scale     = Scale;
            this.Tag       = Tag;
            this.Directory = Directory;

            Image temp = Image.FromFile($"Assets/Sprites/PNG/{Directory}.png");

            Bitmap sprite = new Bitmap(temp, (int)this.Scale.x, (int)this.Scale.y);

            this.Sprite = sprite;

            Log.Info($"[SPRITE2D]({Tag}) - Has Been registered!");
            RTSEngine.RegisterSprite(this);
        }
Example #5
0
 public void DestroySelf()
 {
     Log.Info($"[SHAPE2D]({Tag}) - Has Been destroyed!");
     RTSEngine.UnRegisterSprite(this);
 }