10.16
package Game;
import java.awt.Color;
import com.rupeng.game.GameCore;
public class Game implements Runnable {
public static void main(String[] args) {
GameCore.start(new Game());
}
@Override
public void run() {
GameCore.setGameSize(1024, 768);
GameCore.setGameTitle("lalalalalala");
GameCore.alert("请听第一首歌曲,《在人间》");
GameCore.loadBgView("在人间.jpg");
GameCore.playSound("在人间.mp3", true);
GameCore.closeSound("在人间.mp3");
boolean b = GameCore.confirm("你觉得好听吗?");
if (B)
GameCore.alert("你的回答是好听");
else
GameCore.alert("你的回答是不好听.");
}
}