public StandardScene(GraphicsDeviceManager gdm, MainGame game)
 {
     this.game = game;
     this.gdm = gdm;
     camera = new Camera(gdm.GraphicsDevice.Viewport, new Vector2(0, 0));
     hudCamera = new Camera(gdm.GraphicsDevice.Viewport, new Vector2(0, 0));
     input = new Inputs(camera, hudCamera);
 }
        public Player(Vector2 position, SimulationWorld world, Inputs input) : base(Globals.player, position, 250, 40, world)
        {
            this.input = input;
            PosAim = position;

            color = Color.Gold;
            this.Health = 1000;
            this.MaxHealth = 1000;
            this.weapon = new Pistol(world, this);
        }
Exemplo n.º 3
0
 public Hud(Camera camera, Camera cameraHud, Inputs input, SimulationWorld world)
 {
     this.camera = camera;
     this.cameraHud = cameraHud;
     this.world = world;
     this.aim = new Aim(world.Player, this);
     this.mainMenu = new MainMenu();
     this.input = input;
     menu = true;
 }
 public SimulationWorld(Inputs input)
 {
     this.input = input;
     this.Map = Globals.map;
     this.Player = new Player(new Vector2(100, 100), this, input);
     this.BulletManager = new BulletManager(this);
     this.Enemies = new LinkedList<BaseEnemy>();
     this.Powers = new LinkedList<BasePower>();
     this.deadEnemies = new LinkedList<BaseEnemy>();
     this.PathFinder = new PathFinder(this);
     this.collisionCuller = new SpatialHashGrid();
     this.collisionCuller.Setup(Map.GetWidth() * Tile.SIZE, Map.GetHeight() * Tile.SIZE, (Map.GetWidth() * Tile.SIZE) / 6);
 }