9

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

 

posted @ 2017-12-18 14:23  mxl-1  阅读(106)  评论(0编辑  收藏  举报