Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace GameEngine
- {
- class Level2
- {
- private GameEngine GAME_ENGINE;
- private Button m_bord;
- private Button Een;
- private Button Twee;
- private Button Drie;
- private Button Vier;
- private Button Vijf;
- private Button Zes;
- private Button Zeven;
- private Button Acht;
- private Button Negen;
- private Button Reset;
- int Oplossing;
- private Bitmap m_BMPGarageLanceer = null;
- private Bitmap m_paneel = null;
- private Bitmap m_door = null;
- bool bord = false;
- //Constructor
- public Level2()
- {
- GAME_ENGINE = GameEngine.GetInstance();
- }
- public void Level2Start()
- {
- m_bord = new Button(m_Bord, "button", 790, 295, 80, 70);
- Een = new Button(een, "", 430, 100, 75, 100);
- Twee = new Button(twee, "", 740, 100, 75, 100);
- Drie = new Button(drie, "", 1100, 100, 75, 100);
- Vier = new Button(vier, "", 400, 250, 75, 100);
- Vijf = new Button(vijf, "", 730, 250, 75, 100);
- Zes = new Button(zes, "", 1090, 250, 75, 100);
- Zeven = new Button(zeven, "", 410, 390, 75, 100);
- Acht = new Button(acht, "", 730, 390, 75, 100);
- Negen = new Button(negen, "", 1080, 390, 75, 100);
- m_paneel = new Bitmap("Bord.png");
- m_BMPGarageLanceer = new Bitmap("GarageLanceer.png");
- m_door = new Bitmap("DoorUnlocked.png");
- }
- public void Level2End()
- {
- m_BMPGarageLanceer.Dispose();
- m_paneel.Dispose();
- }
- public void Level2Update()
- {
- Console.WriteLine("" + Oplossing);
- }
- public void Level2Paint()
- {
- GAME_ENGINE.DrawBitmap(m_BMPGarageLanceer, 0, 0);
- if (bord == true)
- {
- GAME_ENGINE.DrawBitmap(m_paneel, 0, 0);
- }
- if (Oplossing == 10)
- {
- GAME_ENGINE.DrawBitmap(m_door, 0, 0);
- }
- }
- public void m_Bord()
- {
- bord = !bord;
- }
- public void een()
- {
- Oplossing = Oplossing + 1;
- }
- public void twee()
- {
- Oplossing = Oplossing + 2;
- }
- public void drie()
- {
- Oplossing = Oplossing + 3;
- }
- public void vier()
- {
- Oplossing = Oplossing + 4;
- }
- public void vijf()
- {
- Oplossing = Oplossing + 5;
- }
- public void zes()
- {
- Oplossing = Oplossing + 6;
- }
- public void zeven()
- {
- Oplossing = Oplossing + 7;
- }
- public void acht()
- {
- Oplossing = Oplossing + 8;
- }
- public void negen()
- {
- Oplossing = Oplossing + 9;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement