Ejemplo n.º 1
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch (GraphicsDevice);
     pudink_tex = Graphics.Pudink_LoadTextures (Content,Content.RootDirectory);
     //powerup_tex = Graphics.PowerUp_LoadTextures (Content,Content.RootDirectory);
     powerup_tex = Graphics.PowerUp_LoadTextures_Fake (GraphicsDevice);
     brouk_tex = Graphics.Brouk_LoadTextures (Content,Content.RootDirectory);
     Graphics.BaseTextures basetex = Graphics.Base_LoadTextures (Content,Content.RootDirectory);
     ground = basetex.Ground;
     way = basetex.Way;
     world = new World(settings,ref pudink_tex,ref brouk_tex,ref powerup_tex,viewY0);
     world.Load ();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="pudink.World"/> class.
 /// </summary>
 /// <param name="settings">Settings.</param>
 /// <param name="pud_textury">Pudding textures.</param>
 /// <param name="bug_textury">Bug textures.</param>
 /// <param name="pow_textury">PowerUp textures.</param>
 public World(Settings settings,ref Pudink.TextureSet pud_textury,ref Brouk.TextureSet bug_textury,ref PowerUp.TextureSet pow_textury)
 {
     sheet = settings;
     pud_textureSet = pud_textury;
     bug_textureSet = bug_textury;
     pow_textureSet = pow_textury;
 }