public SchiffBildContainer(SpriteBatch sb, GraphicsDeviceManager g, ContentManager c, int startX, int startY, SteuerungsConfig config) { x = startX; y = startY; restartX = startX; restartY = startY; steuerungsConfig = config; graphics = g; spriteBatch = sb; // Laden des Schiffs aus dem "Content"-Lager. schiffsBild = c.Load <Texture2D>("Spaceship"); for (var i = 1; i <= 10; i++) { explosionTextures.Add(c.Load <Texture2D>("Explosion/Spaceship_Explosion" + i)); } }
public SchiffBildContainer(SpriteBatch sb, GraphicsDeviceManager g, ContentManager c, int startX, int startY, SteuerungsConfig config) { x = startX; y = startY; restartX = startX; restartY = startY; steuerungsConfig = config; graphics = g; spriteBatch = sb; // Laden des Schiffs aus dem "Content"-Lager. schiffsBild = c.Load<Texture2D>("Spaceship"); for (var i = 1; i <= 10; i++) { explosionTextures.Add(c.Load<Texture2D>("Explosion/Spaceship_Explosion" + i)); } }