Inheritance: ModelGameObject, IPhysicsObject
コード例 #1
0
ファイル: Level.cs プロジェクト: nuclearpidgeon/graphicsproj2
 public void ResetPlayer()
 {
     player.Destroy();
     player = new Monkey(this.game, game.models["bigmonkey"], getStartPosition());
     AddChild(player);
     game.camera.SetFollowObject(player);
 }
コード例 #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;
 }
コード例 #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);
 }
コード例 #4
0
ファイル: Level.cs プロジェクト: nuclearpidgeon/graphicsproj2
        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);
        }