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("呵呵");
GameCore.alert("请听第一首歌曲,《蓝精灵》");
GameCore.loadBgView("l.jpg");
GameCore.playSound("蓝精灵.mp3", true);
GameCore.closeSound("蓝精灵.mp3");
boolean b = GameCore.confirm("你觉得好听吗?");
if (b)
GameCore.alert("好听");
else
GameCore.alert("不好听.");
}
}
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240826070647288-243310440.jpg)