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