Ejemplo n.º 1
0
 public Player(ContentManager content,Map map,FirstPersonCamera cam)
 {
     prevmous = Mouse.GetState();
     bullets = new List<Bullet>();
     this.bulletmodel = content.Load<Model>("Models/bullet");
     this.map = map;
     this.cam = cam;
 }
Ejemplo n.º 2
0
        public PlayState(GameStateManager gsm, ContentManager content)
            : base(gsm, content)
        {
            keyb = Keyboard.GetState();

            cam = new FirstPersonCamera(Vector3.Zero, Vector3.Zero, Consts.WORLDSCALE/15f, 0.001f);

            map = new Map(content,cam);
            map.setLevel(1);

            cam.setMap(map);

            player = new Player(content, map,cam);
        }
Ejemplo n.º 3
0
 public void setMap(Map map)
 {
     this.map = map;
 }
Ejemplo n.º 4
0
 public bool update(Map map)
 {
     shape.move(velocity);
     return map.collidesWithMap(shape);
     //return false;
 }