コード例 #1
0
ファイル: clsSprite.cs プロジェクト: galantida/Intersection
        public clsSprite(intObject worldObject, Texture2D texture)
        {
            // passed
            this.worldObject   = worldObject;
            this.baseTexture   = texture;
            this.spriteTexture = new Texture2D(this.baseTexture.GraphicsDevice, this.baseTexture.Width, this.baseTexture.Height);

            // initialized
            this.displayLocation = new Vector2(0, 0);
            this.scale           = 1;
            this.origin          = new Vector2(32, 32);
            this.rotation        = 0;

            // calculated
            this.sourceTileArea = new Rectangle(0, 0, this.baseTexture.Width, this.baseTexture.Height);
        }
コード例 #2
0
ファイル: clsWorld.cs プロジェクト: galantida/Intersection
        /*********************************************************************************
        * Object Functions
        *********************************************************************************/

        public void remove(intObject gameObject)
        {
            worldObjects.Remove(gameObject);
        }