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 {
@ -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();

View File

@ -9,13 +9,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);
timeRemaining = xna::TimeSpan::FromMinutes(2.0);
layers = std::vector<xna::PTexture2D>(3);