Ejemplo n.º 1
0
 public static Scene LoadThirdScene()
 {
     Scene scene = new Scene();
     scene.Background = Resource1.Background;
     scene.Enemies = new List<Enemy>();
     scene.Enemies.Add(new Enemy(new int[]{1000, 330}));
     return scene;
 }
Ejemplo n.º 2
0
 public static Scene LoadSecondScene()
 {
     Scene scene = new Scene();
     scene.Vendor = new Vendor(new Bitmap[]{Resource1.Shop1} , new int[] {600, 250});
     scene.Background = Resource1.Background;
     return scene;
     
 }
Ejemplo n.º 3
0
 public static Scene LoadFirstScene()
 {
     StringBuilder sb = new StringBuilder();
     sb.AppendLine("Pss-st, hey you...Welcome to StarCraft Adventure. My name is Mysterious Man and I'm here");
     sb.AppendLine("to help you! I believe I saw some of your friend zerglings being kidnapped by the evil ");
     sb.AppendLine("Frogman. Your friends are in great danger! Zerglings are the Evil Frogman's favourite snack.");
     sb.AppendLine("You better run before it's too late for them... Oh, and watch out for his evil minions. They");
     sb.AppendLine("would do everything to stop you. Be aware of their toxic spit – it can go right trough your");
     sb.AppendLine("armor and kill you!");
     Scene scene = new Scene();
     scene.QuestGiver = new QuestGiver(new Bitmap[] { Resource1.QuestGiver1 }, new int[] { 600, 350 });
     scene.Background = Resource1.Background;
     scene.QuestGiver.Quest = sb.ToString();
     return scene;
 }
Ejemplo n.º 4
0
 internal static void StartGraphics(Graphics g)
 {
     Enemies = new List<Enemy>();
     Scenes = new Scene[6];
     Character = new Raynor(new int[]{CharStartpositionX,CharStartPositionY});
     Scenes[0] = Scene.LoadFirstScene();
     Scenes[1] = Scene.LoadSecondScene();
     Scenes[2] = Scene.LoadThirdScene();
     Scenes[3] = Scene.LoadFourthScene();
     Scenes[4] = Scene.LoadFifthScene();
     Scenes[5] = Scene.loadSixthScene();
     SceneNumber = 0;
     LoadScene(SceneNumber);
     gEngine = new GEngine(g);
     gEngine.Initialize();
 }
Ejemplo n.º 5
0
 public static Scene loadSixthScene()
 {
     Scene scene = new Scene();
     scene.Background = Resource1.Background;
     scene.Enemies.Add(new Enemy(new int[]{1000,320},100));
     return scene;
 }