int F_UP = 16; //當關閉時 速度回多少 public Lv(int LV) { MYLV = LV; Lvalue = new Lvalue(LV); ball = new ball(setBall(), Lvalue.ballPos); pass = new Pass(Game1.picP1, Lvalue.passPos); passed = new passed(); gSensor = new Accelerometer(); //建立 Accelerometer 類別的物件 gSensor.ReadingChanged += new EventHandler <AccelerometerReadingEventArgs>(gSensor_ReadingChanged); //處理 Accelerometer 類別的物件的 ReadingChanged 事件 gSensor.Start(); MYtimer = new mytimer(LV); MYtimer.setPos(450, 410); MYtimer.start(); nowtimer = new mytimer(); nowtimer.setPos(400, 195); Fasttimer = new mytimer(); Fasttimer.setPos(400, 195 + 60); }
public Board() { settimer();//將資料庫資料轉為陣列 for (int i = 0; i < timerF.Length; i++) { myTimerF[i] = new mytimer(); myTimerF[i].setN(timerF[i]); myTimerF[i].setPos(locX, locY + 50 * i); myTimerS[i] = new mytimer(); myTimerS[i].setN(timerS[i]); myTimerS[i].setPos(locX + 200, locY + 50 * i); } }