/*游戏引擎包,播放音乐*/ import com.rupeng.game.GameCore; public class Mc implements Runnable{ public static void main(String[] args) { GameCore.start(new Mc()); } public void run() { GameCore.setGameSize(1200,1200); GameCore.setGameTitle("GameCore-rupeng"); GameCore.loadBgView("s.JPG"); GameCore.playSound("青蛙 - 小跳蛙.mp3", true); GameCore.pause(5000); GameCore.loadBgView("q.JPG"); GameCore.pause(5000); if(GameCore.confirm("你爱我吗???")) GameCore.alert("我也很爱你。(>??)"); else GameCore.alert("祝你幸福。×" + "你伤了我。._.√"); } }
时间: 2024-10-24 01:13:20