//public AudioClip bgMusic; public GameWorldState(GamePanel gamePanel, GameTime time) : base(gamePanel, time) { texts1[0] = "We are heros, and our mission is protecting our Home\nEarth...."; texts1[1] = "There was a Monster from University on Earth in 10 years\n" + "and we lived in the scare in that 10 years...."; texts1[2] = "Now is the time for us, kill it and get freedom!...."; texts1[3] = " LET'S GO!....."; textTutorial = texts1[0]; bufferedImage = new Bitmap(GameFrame.SCREEN_WIDTH, GameFrame.SCREEN_HEIGHT); megaMan = new MegaMan(400, 400, this); physicalMap = new PhysicalMap(0, 0, this); backgroundMap = new BackgroundMap(0, 0, this); camera = new Camera(0, 50, GameFrame.SCREEN_WIDTH, GameFrame.SCREEN_HEIGHT, this); bulletManager = new BulletManager(this); particularObjectManager = new ParticularObjectManager(this); particularObjectManager.addObject(megaMan); initEnemies(); //bgMusic = CacheDataLoader.getInstance().getSound("bgmusic"); previousState = state; }
public WorldFileImporter(BackgroundMap backgroundMap, MapTileZoomLevel zoomLevel, IMapTileImageRepository repository, ReadImageDelegate readImageDelegate) { _backgroundMap = backgroundMap; _zoomLevel = zoomLevel; _repository = repository; _readImageDelegate = readImageDelegate; }
public void CountryNameButtonOnClick(string countryName) { BackgroundMap backgroundMap = GameObject.Find("MainGame").GetComponent <BackgroundMap>(); backgroundMap.OnCountryButtonClick(countryName); }
// Start is called before the first frame update void Start() { gameS = GameObject.Find("MainGame").GetComponent <BackgroundMap>(); }