10.16(RuPeng)游戏
package cn.wzx.www; import com.rupeng.game.GameCore; public class basicGame implements Runnable { public static void main(String[] args) { // TODO 自动生成的方法存根 GameCore.start(new basicGame()); } @Override public void run() { // TODO 自动生成的方法存根 GameCore.setGameSize(690, 1035); GameCore.setGameTitle("蓝色妖姬"); GameCore.alert("张杰勇敢飞,星星永相随! 您是否愿意听一首歌?"); GameCore.loadBgView("z.jpg"); GameCore.playSound("张杰 - 北斗星的爱.mp3", true); GameCore.pause(5000); GameCore.setGameSize(690, 388); GameCore.loadBgView("x.jpg"); GameCore.pause(50000); GameCore.closeSound("张杰 - 北斗星的爱.mp3"); boolean b=GameCore.confirm("你觉得好听吗?"); if(b) GameCore.alert("你的回答是好听"); else GameCore.alert("你的回答是不好听"); if(b) { boolean c=GameCore.confirm("你还要继续听下一首歌吗?"); GameCore.setGameSize(500, 313); GameCore.loadBgView("a.jpg"); if(c) { GameCore.playSound("张杰 - 仰望星空 (2013广州演唱会).mp3", true); GameCore.pause(30000); GameCore.closeSound("张杰 - 仰望星空 (2013广州演唱会).mp3"); GameCore.alert("音乐到此结束,感谢您的收听!"); GameCore.pause(3000); } else GameCore.alert("即将退出"); } if(!b) { GameCore.alert("即将退出程序"); GameCore.pause(3000); } } }