ThuCommix / Sharpex2D

2D GameEngine for Indie games with alot of features
http://www.sharpex2d.de
MIT License
47 stars 9 forks source link

Wiki tutorials no longer work #56

Open siolfyr opened 8 years ago

siolfyr commented 8 years ago

With the Sharpex2D-1.3.0 release, as in the tutorials, it works right out of the box by adding the existing Sharpex2D / Sharpex2D.CSCore projects to your new project, but on the more recent commits of the master branch, this just leads to 'type or namespace could not be found' errors, so solutions made using the project won't compile.

siolfyr commented 8 years ago

It would be nice, even just to explain how to load content with the API2-working branch. When trying to load a simple ball.png file with

var texture = Content.Load<Texture2D>("ball.png");

I get:

An unhandled exception of type 'System.IO.EndOfStreamException' occurred in mscorlib.dll

Additional information: Unable to read beyond the end of the stream.

ThuCommix commented 8 years ago

You need to use the content pipeline tool. You Clan configure it as Post Build Event - it takes an Input and an Output path.