public DuckIndicator(string name, int x) { Name = name; _duckhud = new Sprite(); _duckhud.LoadContent("duckhud"); _duckmiss = new Sprite(); _duckmiss.LoadContent("duckhudmiss"); _duckshot = new Sprite(); _duckshot.LoadContent("duckhudshot"); _currentSprite = _duckhud; State = DuckIndicatorStateEnum.None; _x = x; _y = 950; _duckhud.X = _x; _duckhud.Y = _y; _duckmiss.X = _x; _duckmiss.Y = _y; _duckshot.X = _x; _duckshot.Y = _y; }
public MenuCursor() { Name = "crosshair"; _crosshair = new Sprite(); _crosshair.LoadContent("crosshair"); SoundEffectPlayer.LoadSoundEffect("gunsound"); }
private static void LoadBlockContent(SpriteBatch batch, ContentManager content) { BlockA.LoadContent(batch, content.Load <Texture2D>("Blocks")); BlockB.LoadContent(batch, content.Load <Texture2D>("Blocks")); BlockC.LoadContent(batch, content.Load <Texture2D>("Blocks")); BlockList.Add(BlockA); BlockList.Add(BlockB); BlockList.Add(BlockC); }
public BulletIndicator(string name, int x) { Name = name; _bulletFired = new Sprite(); _bulletFired.LoadContent("bulletspent"); _bulletNotFired = new Sprite(); _bulletNotFired.LoadContent("bullet"); _currentSprite = _bulletFired; State = BulletIndicatorStateEnum.NotFired; _x = x; _y = 950; _bulletFired.X = _x; _bulletFired.Y = _y; _bulletNotFired.X = _x; _bulletNotFired.Y = _y; }
public Background() { Name = "background"; _background = new Sprite(); _background.LoadContent("background"); }