public menu() { start = new touch(Game1.picStart, new Vector2(290, 100)); board = new touch(Game1.picBoard, new Vector2(290, 190)); changeBall = new touch(Game1.picChangeBall, new Vector2(290, 280)); exit = new touch(Game1.picExit, new Vector2(290, 370)); }
public passed() { L = new touch(Game1.picL, new Vector2(100, 50)); L1 = new touch(Game1.picL1, new Vector2(180, 320)); if (Game1.picGameLv.Count() == Game1.Lv) { L2 = new touch(Game1.picL3, new Vector2(420, 320)); L2.Stop = true; } else { L2 = new touch(Game1.picL2, new Vector2(420, 320)); } }
//製作選擇關卡介面 //p代表 使用者能玩的關卡 //若p=7 代表1234567都能玩 大於7的關卡數則無法進入遊戲 public GameLv() { box = new touch[Game1.picGameLv.Count()]; int ZxAll = 50; int ZyAll = 50; int xx = 100; int Zx = 0; int Zy = 100; int Zlv = 0; for (int i = 0; i < box.Count(); i++) { if (i % 5 == 0 && i != 0) { Zlv++; Zx = xx; } else { Zx += xx; } if (i + 1 <= getP()) { box[i] = new touch(Game1.picGameLv[i], new Vector2(ZxAll + Zx, ZyAll + Zy * Zlv)); } else { box[i] = new touch(Game1.picGameLv2[i], new Vector2(ZxAll + Zx, ZyAll + Zy * Zlv)); box[i].Stop = true; //停用此按鈕 } box[i].GV = i + 1; } }