public PauseScreen(AdventureScreen screen, Game game) { this.screen = screen; this.game = game; PlaySound.Play(PlaySound.SoundEffectName.Pause); }
public AdventurePlayer(AdventureScreen parent, Game game) { this.texture = Master.texCollection.texAdvPlayer; this.parent = parent; this.game = game; }
public override void Activate(AdventurePlayer player, AdventureScreen screen, Game game) { currentScreen = screen; if (count > 0 && !screen.lit) { screen.lit = true; count = count - 1; if (!screen.lit) PlaySound.Play(PlaySound.SoundEffectName.Aspect); } }
public abstract void Activate(AdventurePlayer player, AdventureScreen screen, Game game);
public override void Activate(AdventurePlayer player, AdventureScreen screen, Game game) { if (lag < 1 && count > 0) { game.life = game.life + 10; if (game.life > game.possibleLife) game.life = game.possibleLife; PlaySound.Play(PlaySound.SoundEffectName.Heal); count--; lag = 20; if (count == 0) game.RemoveWeapon(this); } }
public override void Activate(AdventurePlayer player, AdventureScreen screen, Game game) { if ((cooldown == 0) && (player.z == 0)) { Vector2 location = new Vector2(player.location.X, player.location.Y - 16); AdventureProjectile proj = new AdventureProjectile(true, player.faceDir, location, 30, 1); screen.addObject(proj); cooldown = 30; PlaySound.Play(PlaySound.SoundEffectName.Pew); } }
public override void Activate(AdventurePlayer player, AdventureScreen screen, Game game) { // }
public override void Activate(AdventurePlayer player, AdventureScreen screen, Game game) { if (lag < 1 && count > 0) { screen.player.Flash(); count--; lag = 20; if (count == 0) game.RemoveWeapon(this); } }
public virtual void Initialize(AdventureScreen parent, Game game) { this.parent = parent; this.game = game; }
public SeekerProjectile(AdventureScreen parent, Vector2 location, int deathTimer) { this.friendly = false; this.location = location; this.deathTimer = deathTimer; this.texture = Master.texCollection.texProjectile; this.moving = true; this.faceDir = Master.Directions.Down; z = 1; width = 4; height = 4; Vector2 playerloc = parent.player.location; int del_x = (int)(playerloc.X - location.X); int del_y = (int)(playerloc.Y - location.Y); float norm = (float)Math.Sqrt(Math.Pow(del_x, 2) + Math.Pow(del_y, 2)); move_dist = new Vector2(2 * del_x / norm, 2 * del_y / norm); }
public override void Initialize(AdventureScreen parent, Game game) { base.Initialize(parent, game); if (!firstLoad) { firstLoad = true; jintEngine = ActivateEngine(parent.ActivateEngine(data.code)); } switch (data.gfxtype) { case EntityData.GraphicsType.Maptile: graphicsRow = data.graphics; texture = Master.texCollection.adventureTiles[parent.tileset]; this.width = 16; this.height = 16; break; case EntityData.GraphicsType.Enemies: texture = Master.texCollection.texEnemies; graphicsRow = data.graphics; break; case EntityData.GraphicsType.Characters: texture = Master.texCollection.texCharacters; graphicsRow = data.graphics; break; } }