Monogame Windows 8 Phone
I have monogame 3.0.1 (latest stable) installed on a Windows 8 Pro machine. I can create a new Windows Phone 8 project (Monogame template) and deploy to the emulator and an actual device with no problems.
However after successfully getting a screen of cornflour blue I wanted to display a simple image. I know the content pipeline is something that doesnt work but I wanted to display a simple PNG.
For this, I tried:
Adding a Content folder. Adding a simple PNG (test.png) to the content folder. Set the build to "Content" and ensure it was set to "Copy if newer". Then added the following code.
texture = Content.Load<Texture2D>("test");
And in the draw, draw it out. However , I get a NotImplementedException when I try to deploy this.
Out of the box, how do I draw a simple texture/sprite to the screen?
I have monogame 3.0.1 (latest stable) installed on a Windows 8 Pro machine. I can create a new Windows Phone 8 project (Monogame template) and deploy to the emulator and an actual device with no problems.
However after successfully getting a screen of cornflour blue I wanted to display a simple image. I know the content pipeline is something that doesnt work but I wanted to display a simple PNG.
For this, I tried:
Adding a Content folder. Adding a simple PNG (test.png) to the content folder. Set the build to "Content" and ensure it was set to "Copy if newer". Then added the following code.
texture = Content.Load<Texture2D>("test");
And in the draw, draw it out. However , I get a NotImplementedException when I try to deploy this.
Out of the box, how do I draw a simple texture/sprite to the screen?
No comments:
Post a Comment