Esempio n. 1
0
        public Sprite(String _TextureName, Game _Game)
        {
            GameInstance = _Game;
            SpriteAsset = GameInstance.Content.Load<Texture2D>(_TextureName);

            #if DEBUG
            Debug_View = new RectangleSprite(_Game);
            #endif
        }
        public WorldPhysicalObject(Point _CollisionVolumeSize, String _TextureName, Vector2 _WorldPosition, Game _Game)
            : base(_TextureName, _WorldPosition, _Game)
        {
            Velocity = new Vector2(0.0f, 0.0f);
            CollisionVolume = new CollisionRectangle(_CollisionVolumeSize);

            #if DEBUG
            Debug_Physics = new RectangleSprite(_Game);
            #endif
        }