android平台俄罗斯方块游戏完整代码
2012-12-02 14:31:58 来源:WEB开发网核心提示: } public boolean onSingleTapUp(MotionEvent e) // 点击屏幕 {// TODO Auto-generated method stubif(e.getY()<400){ if(e.getX()<240 || e.getY()<300) {if(m_Gam
}
public boolean onSingleTapUp(MotionEvent e) // 点击屏幕
{
// TODO Auto-generated method stub
if(e.getY()<400)
{
if(e.getX()<240 || e.getY()<300)
{
if(m_GameView.rotateOnCourt())
{
m_GameView.rate();
m_GameView.fastDown(1);
MusicPlay.playSound(R.raw.rotation,0);
}
}
}
return false;
}
}
public boolean onSingleTapUp(MotionEvent e) // 点击屏幕
{
// TODO Auto-generated method stub
if(e.getY()<400)
{
if(e.getX()<240 || e.getY()<300)
{
if(m_GameView.rotateOnCourt())
{
m_GameView.rate();
m_GameView.fastDown(1);
MusicPlay.playSound(R.raw.rotation,0);
}
}
}
return false;
}
}
更多精彩
赞助商链接