public void ResetPlayer() { player.Destroy(); player = new Monkey(this.game, game.models["bigmonkey"], getStartPosition()); AddChild(player); game.camera.SetFollowObject(player); }
public TerrainEndZone(Project2Game game, Level level, Vector3 position) : base(game, level, position) { var endPuzzle = new EndGoal(game, this, position + new Vector3(Level.PreferedTileWidth/2.0f, 0, Level.PreferedTileHeight/2.0f)); AddChild(endPuzzle); this.endGoal = endPuzzle.obelisk; }
public EndGoal(Project2Game game, LevelPiece levelPiece, Vector3 offset) : base(game, levelPiece, offset) { // place obelisk var scale = new Vector3(6, 6, 6); obelisk = new Obelisk(game, offset + new Vector3(0, scale.Y * 0.5f, 0), scale); obelisk.PhysicsDescription.IsStatic = true; this.AddChild(obelisk); }
public Level(Project2Game game) { this.game = game; Children = new List<INode>(); player = new Monkey(this.game, game.models["bigmonkey"], getStartPosition()); AddChild(player); flock = new Flock(this.game, this); AddChild(flock); }