/// <summary> /// Construct an AnimationPlayer to play the clip /// </summary> /// <param name="model"></param> /// <param name="clip"></param> public AnimationPlayer(AnimatedModel model, AnimationClips.Clip clip) { this.model = model; this.clip = clip; Initialize(); }
public Player(PrisonGame game, Camera inCamera) { this.game = game; this.camera = inCamera; dalek = new AnimatedModel(game, "dalek"); SetPlayerTransform(); playerCollision = new BoundingCylinder(game, location); }
public Alien(PrisonGame game) { this.game = game; spit = new Spit(this.game); model = new AnimatedModel(game, "Alien"); model.AddAssetClip("catcheat", "Alien-catcheat"); model.AddAssetClip("stance", "Alien-stance"); model.AddAssetClip("tantrum", "Alien-trantrum"); model.AddAssetClip("ob", "Alien-ob"); SetAlienTransform(); }
public Player(PrisonGame game) { this.game = game; victoria = new AnimatedModel(game, "Victoria"); victoria.AddAssetClip("dance", "Victoria-dance"); victoria.AddAssetClip("stance", "Victoria-stance"); victoria.AddAssetClip("walk", "Victoria-walk"); victoria.AddAssetClip("walkstart", "Victoria-walkstart"); victoria.AddAssetClip("walkloop", "Victoria-walkloop"); victoria.AddAssetClip("rightturn", "Victoria-rightturn"); victoria.AddAssetClip("leftturn", "Victoria-leftturn"); SetPlayerTransform(); }
public Player(PrisonGame game) { this.game = game; SetPlayerTransform(); #region models dalekInfo = new Dalek(new Vector3(700, 0, -500)); stuckPies = new List<PieClass>(); victoria = new AnimatedModel(game, "Victoria",this); bazooka = new AnimatedModel(game, "PieBazooka",this); DalekModel = new AnimatedModel(game, "Dalek",this); Pies = new AnimatedModel(game, "pies",this); Alien = new AnimatedModel(game, "Alien",this); spit = new AnimatedModel(game, "Spit",this); #endregion #region victoriaClips victoria.AddAssetClip("dance", "Victoria-dance"); victoria.AddAssetClip("stance", "Victoria-stance"); victoria.AddAssetClip("walk", "Victoria-walk"); victoria.AddAssetClip("walkstart", "Victoria-walkstart"); victoria.AddAssetClip("walkloop", "Victoria-walkloop"); victoria.AddAssetClip("leftturn", "Victoria-leftturn"); victoria.AddAssetClip("rightturn", "Victoria-rightturn"); //bazooka victoria.AddAssetClip("crouch", "Victoria-crouchbazooka"); victoria.AddAssetClip("lowerB", "Victoria-lowerbazooka"); victoria.AddAssetClip("raiseB", "Victoria-raisebazooka"); victoria.AddAssetClip("walkstartB", "Victoria-walkstartbazooka"); victoria.AddAssetClip("walkloopB", "Victoria-walkloopbazooka"); #endregion #region Alien Alien.AddAssetClip("eat", "Alien-catcheat"); Alien.AddAssetClip("ob", "Alien-ob"); Alien.AddAssetClip("walkStart", "Alien-walkstart"); Alien.AddAssetClip("walkloop", "Alien-walkloop"); Alien.AddAssetClip("stance", "Alien-stance"); Alien.AddAssetClip("tantrum", "Alien-trantrum"); #endregion }
public Pie(PrisonGame game) { this.game = game; model = new AnimatedModel(game, "pies"); }
public Player(PrisonGame game) { this.game = game; victoria = new AnimatedModel(game, "Victoria"); bazooka = new AnimatedModel(game, "PieBazooka"); victoria.AddAssetClip("dance", "Victoria-dance"); victoria.AddAssetClip("stance", "Victoria-stance"); victoria.AddAssetClip("walk", "Victoria-walk"); victoria.AddAssetClip("walkstart", "Victoria-walkstart"); victoria.AddAssetClip("walkloop", "Victoria-walkloop"); victoria.AddAssetClip("rightturn", "Victoria-rightturn"); victoria.AddAssetClip("leftturn", "Victoria-leftturn"); victoria.AddAssetClip("bazookacrouch", "Victoria-crouchbazooka"); victoria.AddAssetClip("walkloopbazooka", "Victoria-walkloopbazooka"); victoria.AddAssetClip("lowerbazooka", "Victoria-lowerbazooka"); victoria.AddAssetClip("raisebazooka", "Victoria-raisebazooka"); //victoria.AddAssetClip("crouchbazooka", "Victoria-crouchbazooka"); victoria.AddAssetClip("walkstartbazooka", "Victoria-walkstartbazooka"); SetPlayerTransform(); pie = new Pie(game); currentSectionNumber = 1; victoria.CalculateBoundingBox(); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { skybox.LoadContent(Content); bazooka = new AnimatedModel(this, "PieBazooka"); bazooka.LoadContent(Content); player.LoadContent(Content); player2.LoadContent(Content); ground.LoadContent(Content); smokePlume.LoadContent(Content); spriteBatch = new SpriteBatch(GraphicsDevice); UIFont = Content.Load<SpriteFont>("UIFont"); //bazooka.ObjectEffect = Content.Load<Effect>("PhibesEffect1"); //bazooka.SetEffect(); }
public Dalek(PrisonGame game) { this.game = game; model = new AnimatedModel(game, "Dalek"); SetDalekTransform(); }