示例#1
0
        private Vector2 size = new Vector2(1.0f, 1.0f); //Size of the object

        #endregion Fields

        #region Methods

        public virtual void Draw(SpriteBatch batch, Map map)
        {
            map.DrawOnMap(batch, texture.texture, position);
        }
示例#2
0
文件: Player.cs 项目: degrand1/LoT
 public void DrawLight(SpriteBatch batch, Map map)
 {
     if(visible)
         map.DrawOnMap(batch, light, position, scale);
 }