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 Level1
- {
- private GameEngine GAME_ENGINE;
- int xPos;
- int yPos;
- private Button m_hint1;
- private Button m_hint2;
- private Bitmap m_BMPGarage = null;
- private Bitmap Hint1 = null;
- private Bitmap Hint2 = null;
- bool hint_1 = false;
- bool hint_2 = false;
- //Constructor
- public Level1()
- {
- GAME_ENGINE = GameEngine.GetInstance();
- }
- public void Level1Start()
- {
- m_hint1 = new Button(hint1, "", 400, 760, 30, 30);
- m_hint2 = new Button(hint2, "", 490, 440, 30, 30);
- m_BMPGarage = new Bitmap("Garage1.png");
- Hint1 = new Bitmap("Hint1.png");
- Hint2 = new Bitmap("Hint2.png");
- }
- public void Level1End()
- {
- m_BMPGarage.Dispose();
- }
- public void Level1Update(Movement _xy)
- {
- xPos = _xy._x;
- yPos = _xy._y;
- if (xPos >= 1000)
- {
- xPos = 200;
- }
- }
- public void Level1Paint()
- {
- GAME_ENGINE.DrawBitmap(m_BMPGarage, 0, 0);
- if (hint_1 == true)
- {
- GAME_ENGINE.DrawBitmap(Hint1, 500, 250);
- }
- if (hint_2 == true)
- {
- GAME_ENGINE.DrawBitmap(Hint2, 500, 250);
- }
- }
- private void hint2()
- {
- hint_2 = !hint_2;
- }
- private void hint1()
- {
- hint_1 = !hint_1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement