Exemple #1
0
        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);
        }
Exemple #2
0
        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;
        }
Exemple #3
0
 public Art(Core core)
 {
     this.core = core;
 }
Exemple #4
0
 public Level(Core core)
 {
     this.core = core;
 }