java练习---9
1 //程序员:罗元昊 2017.10.22 2 package cn.lyh; 4 import com.rupeng.game.GameCore; 5 6 public class L implements Runnable { 7 8 public static void main(String[] args) { 9 GameCore.start(new L()); //进程开始 10 } 11 public void run() { 12 GameCore.setGameSize(1920,1080); //设置窗口大小 13 14 GameCore.setGameTitle("Mr、L"); //设置标题 15 16 GameCore.loadBgView("love.jpg"); //插入背景图片 17 18 GameCore.playSound("gravityWall-澤野弘之.mp3",true); //插入背景音乐 19 GameCore.pause(3000); //暂停3S 20 GameCore.loadBgView("b.jpg"); 21 GameCore.pause(3000); 22 GameCore.loadBgView("c.jpg"); 23 GameCore.pause(3000); 24 GameCore.loadBgView("d.jpg"); 25 GameCore.pause(3000); 26 GameCore.loadBgView("e.jpg"); 27 GameCore.pause(3000); 28 GameCore.loadBgView("f.jpg"); 29 GameCore.pause(3000); 30 GameCore.loadBgView("i.png"); 31 GameCore.pause(3000); 32 GameCore.loadBgView("g.png"); 33 GameCore.pause(3000); 34 GameCore.loadBgView("k.jpg"); 35 GameCore.pause(3000); 36 GameCore.loadBgView("l.jpg"); 37 GameCore.pause(3000); 38 GameCore.loadBgView("h.jpg"); 39 GameCore.pause(3000); 40 GameCore.loadBgView("j.png"); 41 GameCore.pause(3000); 42 GameCore.loadBgView("i.png"); 43 GameCore.pause(3000); 44 45 46 if(GameCore.confirm("老师,她可爱吗~~~~~~")) { 47 GameCore.loadBgView("lover.jpg"); 48 GameCore.alert("可是她 很可怜"); 49 } 50 else { 51 52 GameCore.loadBgView("lovert.jpg"); 53 GameCore.alert("那这个呢"); 54 } 55 GameCore.alert("感谢老师赏脸观看~~~~!"); 56 GameCore.pause(3000000); 57 } 58 }