예제 #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;
 }
예제 #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);
        }
예제 #3
0
 public void setMap(Map map)
 {
     this.map = map;
 }
예제 #4
0
 public bool update(Map map)
 {
     shape.move(velocity);
     return map.collidesWithMap(shape);
     //return false;
 }