Inheritance: ModelGameObject, IPhysicsObject
Ejemplo n.º 1
0
 public void ResetPlayer()
 {
     player.Destroy();
     player = new Monkey(this.game, game.models["bigmonkey"], getStartPosition());
     AddChild(player);
     game.camera.SetFollowObject(player);
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
        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);
        }