public override bool Init() { _network.AddController(Consts.CTRL_TANK, new TankController(_contents)); _network.AddController(Consts.CTRL_BULLET, new BulletController(_contents)); _network.AddController(Consts.CTRL_ITEM, new ItemController(_contents)); map1.Init(); return(base.Init()); }
public override bool Init() { _map1.Init(); _deathCount.SetPosition(new Vector2(Consts.VIEWPORT_WIDTH - _deathCount.GetBoundingBox().Width, _deathCount.GetPosition().Y)); _killCount.SetPosition(new Vector2(Consts.VIEWPORT_WIDTH - _killCount.GetBoundingBox().Width, _deathCount.GetPosition().Y + _deathCount.GetBoundingBox().Height)); _gameIsPlaying = true; _okButton = new Button("OK", Vector2.Zero, new Rectangle(0, 0, 100, 0), 2.0f); _okButton.CMD(Consts.UI_CMD_DISABLE); return(base.Init()); }