2012-10-10 65 views

回答

0
Intent end = new Intent(getApplicationContext(), GameOver.class); 
     startActivity(end); 
+0

的getApplicationContext()ISN」的啓動活動不被識別

if(!player1.isDestroyed){ scrollBackground1(gl); scrollBackground2(gl); movePlayer1(gl); moveEnemy(gl); detectCollisions(gl); } else{//to the gameover screen Intent end = new Intent(SFEngine.context, GameOver.class); startActivity(end); } 

這個代碼是從哪個類是實現渲染器渲染問題t也認可 –

+0

好。使用getContext()或View.getContext() –

+0

問題是我想從一個渲染器切換到一個活動,我不認爲我可以使用意圖了,或者也許有另一個伎倆 –