Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Content.Load can't find texture

$
0
0

@Astra_Planet wrote:

I just started trying out MonoGame, but when I try to launch the simple code I've made, it says it can't locate the image I'm trying to use.

This is the code I have right now in the LoadContent() method, and I have my picture on the desktop in a folder called "Images" and the picture is called "ship.png"

protected override void LoadContent()
            {
               spriteBatch = new SpriteBatch(GraphicsDevice);

                ship_texture = Content.Load<Texture2D>("Images/ship.png");
    }

Posts: 4

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles