Beispiel #1
0
        private void SetupGame()
        {
            //1. setup stage
            razina       = new ChooseLevel();
            _menuChoose += PokreniMenu;
            _menuChoose.Invoke();

            lista       = ChooseLevel.LevelNiz;
            this.Width  = ChooseLevel.Width;
            this.Height = ChooseLevel.Height;

            _loadLevel += UcitajLevel;
            _loadLevel.Invoke();
            SetStageTitle("Roller");
            setBackgroundPicture("backgrounds\\white.jpg");
            //none, tile, stretch, center, zoom
            setPictureLayout("stretch");


            //UČITAJ IZBORNIK IGRE



            //2. add sprites
            ball = new Kugla("sprites\\ball.png", 0, 0);
            ball.RotationStyle = "AllAround";
            Game.AddSprite(ball);


            //3. scripts that start

            //MessageBox.Show("Za pokreniti igru pritisni slovo \"Z\" te pricekaj par sekundi dok se učita (~10sec)");
            Game.StartScript(Move);
        }
Beispiel #2
0
 private void btnLevel3_Click(object sender, EventArgs e)
 {
     cl = new ChooseLevel();
     cl.LoadLevel3();
     this.Close();
 }