1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

Adiciona conteúdos em Platform

This commit is contained in:
Danilo 2024-06-01 14:43:47 -03:00
parent bc74e431a4
commit ea455629c2
4 changed files with 4 additions and 15 deletions

Binary file not shown.

Binary file not shown.

View File

@ -16,6 +16,7 @@ namespace PlatformerStarterKit {
public:
Game1() : Game() {
Content()->RootDirectory("Content");
srand(354668);
}
void Initialize() override {
@ -62,14 +63,6 @@ namespace PlatformerStarterKit {
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);*/
spriteBatch->End();
Game::Draw(gameTime);

View File

@ -10,13 +10,9 @@
namespace PlatformerStarterKit {
Level::Level(xna::sptr<xna::IServiceProvider> const& serviceProvider, xna::String const& path) : path(path)
{
srand(354668);
content = xna::snew<xna::ContentManager>("Content", serviceProvider);
timeRemaining = xna::TimeSpan::FromMinutes(2.0);
//LoadTiles(path);
layers = std::vector<xna::PTexture2D>(3);
for (size_t i = 0; i < layers.size(); ++i) {