示例#1
0
文件: MazeGame.cs 项目: iodiot/Maze
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
              spriteBatch = new SpriteBatch(GraphicsDevice);

              core = new Core(GraphicsDevice, spriteBatch);
              core.LoadContent(Content);
        }
示例#2
0
文件: Player.cs 项目: iodiot/Maze
        public Player(Core core)
        {
            this.core = core;

              position = core.level.LevelToWorld(new Vector3(core.level.playerSpawnX, core.level.playerSpawnY, .5f));

              projectionMatrix = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, core.device.Viewport.AspectRatio, .1f, 100f);
              viewMatrix = Matrix.Identity;

              rotation = Matrix.Identity;
        }
示例#3
0
文件: Art.cs 项目: iodiot/Maze
 public Art(Core core)
 {
     this.core = core;
 }
示例#4
0
文件: Level.cs 项目: iodiot/Maze
 public Level(Core core)
 {
     this.core = core;
 }