diff --git a/samples/02_PlatfformerStarterKit/Content.zip b/samples/02_PlatfformerStarterKit/Content.zip new file mode 100644 index 0000000..9fd6eb4 Binary files /dev/null and b/samples/02_PlatfformerStarterKit/Content.zip differ diff --git a/samples/02_PlatfformerStarterKit/SourceContent.zip b/samples/02_PlatfformerStarterKit/SourceContent.zip new file mode 100644 index 0000000..39679fe Binary files /dev/null and b/samples/02_PlatfformerStarterKit/SourceContent.zip differ diff --git a/samples/02_PlatfformerStarterKit/game.cpp b/samples/02_PlatfformerStarterKit/game.cpp index ebcfc79..01e954f 100644 --- a/samples/02_PlatfformerStarterKit/game.cpp +++ b/samples/02_PlatfformerStarterKit/game.cpp @@ -16,6 +16,7 @@ namespace PlatformerStarterKit { public: Game1() : Game() { Content()->RootDirectory("Content"); + srand(354668); } void Initialize() override { @@ -60,15 +61,7 @@ namespace PlatformerStarterKit { level->Draw(gameTime, *spriteBatch); - DrawHud(); - - /*auto b = graphicsDevice->Viewport().Bounds(); - auto p = Vector2(0, 0); - spriteBatch->DrawString(hudFont, " !\"#$%&'()*+,-./0123456789:;<=>?@", p, Colors::Black); - p.Y += 50; - spriteBatch->DrawString(hudFont, "ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`", p, Colors::Black); - p.Y += 50; - spriteBatch->DrawString(hudFont, "abcdefghijklmnopqrstuvwxyz{|}~", p, Colors::Black);*/ + DrawHud(); spriteBatch->End(); diff --git a/samples/02_PlatfformerStarterKit/level.cpp b/samples/02_PlatfformerStarterKit/level.cpp index 78be97f..03b9f76 100644 --- a/samples/02_PlatfformerStarterKit/level.cpp +++ b/samples/02_PlatfformerStarterKit/level.cpp @@ -9,13 +9,9 @@ namespace PlatformerStarterKit { Level::Level(xna::sptr const& serviceProvider, xna::String const& path) : path(path) - { - srand(354668); - + { content = xna::snew("Content", serviceProvider); - timeRemaining = xna::TimeSpan::FromMinutes(2.0); - - //LoadTiles(path); + timeRemaining = xna::TimeSpan::FromMinutes(2.0); layers = std::vector(3);