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:
parent
bc74e431a4
commit
ea455629c2
BIN
samples/02_PlatfformerStarterKit/Content.zip
Normal file
BIN
samples/02_PlatfformerStarterKit/Content.zip
Normal file
Binary file not shown.
BIN
samples/02_PlatfformerStarterKit/SourceContent.zip
Normal file
BIN
samples/02_PlatfformerStarterKit/SourceContent.zip
Normal file
Binary file not shown.
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user