├── res ├── 0.mp3 ├── 0.png ├── 1.png ├── 2.png ├── 3.png ├── quit.png └── Thumbs.db ├── icons ├── icon.png └── Thumbs.db ├── README ├── game.config └── teller.as /res/0.mp3: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /res/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/teller/master/res/0.png -------------------------------------------------------------------------------- /res/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/teller/master/res/1.png -------------------------------------------------------------------------------- /res/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/teller/master/res/2.png -------------------------------------------------------------------------------- /res/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/teller/master/res/3.png -------------------------------------------------------------------------------- /res/quit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/teller/master/res/quit.png -------------------------------------------------------------------------------- /icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/teller/master/icons/icon.png -------------------------------------------------------------------------------- /res/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/teller/master/res/Thumbs.db -------------------------------------------------------------------------------- /icons/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/teller/master/icons/Thumbs.db -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | * download papaya sdk 2 | * install Java SDK 1.6 3 | * set env "JAVA_HOME" to "C:\Program Files\Java\jdk1.6.0_25" and "PATH" to "C:\Program Files\Java\jdk1.6.0_25\bin" 4 | * run "install.bat" 5 | * put source under the folder "projects\teller" 6 | * run "compile.bat teller" 7 | * run "run.bat teller" -------------------------------------------------------------------------------- /game.config: -------------------------------------------------------------------------------- 1 | script_name=teller.as 2 | 3 | base_url=http://192.168.1.101:8080/papaya/ 4 | social_key=54SO2c8ZwFLINBtn 5 | 6 | #SCREEN_ORIENTATION_LANDSCAPE: 0 7 | #SCREEN_ORIENTATION_PORTRAIT: 1 8 | #SCREEN_ORIENTATION_USER: 2 9 | #SCREEN_ORIENTATION_BEHIND: 3 10 | orientation=0 11 | 12 | package_name=com.fssle.teller 13 | app_name=Teller 14 | tab_name=Teller 15 | 16 | social_game=0 17 | wallpaper_enable=0 18 | 19 | -------------------------------------------------------------------------------- /teller.as: -------------------------------------------------------------------------------- 1 | var p = getscene(); 2 | var t = new Array(4); 3 | var idx = 0; 4 | 5 | function hshow(){ 6 | t[idx%4].visible(0) 7 | idx += 1; 8 | trace("this is " + str(idx%4)); 9 | t[idx%4].visible(1) 10 | } 11 | 12 | for(var i=0; i<4; i++){ 13 | t[i] = p.addsprite(str(i)+".png").size(screensize()); 14 | t[i].setevent(EVENT_TOUCH,hshow); 15 | t[i].visible(0) 16 | } 17 | 18 | var music = createaudio("0.mp3"); 19 | music.play(-1); 20 | 21 | var t_exit = p.addsprite("quit.png").pos(150,150); 22 | function hquit(x){ quitgame(); } 23 | t_exit.setevent(EVENT_TOUCH, hquit); 24 | t[0].visible(1) 25 | --------------------------------------------------------------------------------