コード例 #1
0
ファイル: GameObject.cs プロジェクト: degrand1/LoT
        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);
 }