├── .wing
├── launch.json
├── packConfig.json
├── settings.json
└── tasks.json
├── README.md
├── bin-debug
├── AssetAdapter.js
├── AssetAdapter.js.map
├── LoadingUI.js
├── LoadingUI.js.map
├── Main.js
├── Main.js.map
├── ThemeAdapter.js
├── ThemeAdapter.js.map
├── control
│ ├── ChapterConfig.js
│ ├── ChapterConfig.js.map
│ ├── ColorGlowFilter.js
│ ├── ColorGlowFilter.js.map
│ ├── ConnectLogic.js
│ ├── ConnectLogic.js.map
│ ├── GameEventManager.js
│ ├── GameEventManager.js.map
│ ├── LocalStorageControl.js
│ ├── LocalStorageControl.js.map
│ ├── PropsManager.js
│ ├── PropsManager.js.map
│ ├── SceenControl.js
│ └── SceenControl.js.map
├── data
│ ├── GameData.js
│ ├── GameData.js.map
│ ├── InitConfigData.js
│ ├── InitConfigData.js.map
│ ├── PropsPrice.js
│ ├── PropsPrice.js.map
│ ├── TimerData.js
│ └── TimerData.js.map
├── element
│ ├── BasePropsElement.js
│ ├── BasePropsElement.js.map
│ ├── GameElement.js
│ └── GameElement.js.map
├── event
│ ├── GameEvent.js
│ └── GameEvent.js.map
├── sceen
│ ├── ChapterSceen.js
│ ├── ChapterSceen.js.map
│ ├── GameSceen.js
│ ├── GameSceen.js.map
│ ├── HomeSceen.js
│ ├── HomeSceen.js.map
│ ├── StoreSceen.js
│ └── StoreSceen.js.map
└── view
│ ├── BuyFailView.js
│ ├── BuyFailView.js.map
│ ├── ElementView.js
│ ├── ElementView.js.map
│ ├── GameBackground.js
│ ├── GameBackground.js.map
│ ├── GameMap.js
│ ├── GameMap.js.map
│ ├── HomeBtnsView.js
│ ├── HomeBtnsView.js.map
│ ├── IconView.js
│ ├── IconView.js.map
│ ├── LockChapter.js
│ ├── LockChapter.js.map
│ ├── LoseView.js
│ ├── LoseView.js.map
│ ├── PassView.js
│ ├── PassView.js.map
│ ├── PropViews.js
│ ├── PropViews.js.map
│ ├── PropsShopItem.js
│ ├── PropsShopItem.js.map
│ ├── ResultView.js
│ ├── ResultView.js.map
│ ├── TimerView.js
│ ├── TimerView.js.map
│ ├── UnLockChapter.js
│ ├── UnLockChapter.js.map
│ └── btn
│ ├── BackBtn.js
│ ├── BackBtn.js.map
│ ├── BaseBtn.js
│ ├── BaseBtn.js.map
│ ├── BuyBtn.js
│ ├── BuyBtn.js.map
│ ├── EnterChapterBtn.js
│ ├── EnterChapterBtn.js.map
│ ├── EnterStoreBtn.js
│ └── EnterStoreBtn.js.map
├── bin-release
└── web
│ └── 1.0
│ ├── favicon.ico
│ ├── index.html
│ ├── libs
│ └── modules
│ │ ├── egret
│ │ ├── egret.min.js
│ │ └── egret.web.min.js
│ │ ├── eui
│ │ └── eui.min.js
│ │ ├── game
│ │ └── game.min.js
│ │ ├── res
│ │ └── res.min.js
│ │ └── tween
│ │ └── tween.min.js
│ ├── main.min.js
│ ├── manifest.json
│ ├── promise
│ └── bin
│ │ └── promise.min.js
│ └── resource
│ ├── assets
│ └── myPic
│ │ ├── back_btn_1b7ac93e.jpg
│ │ ├── back_btn_2e9dafee.png
│ │ ├── buy_fail_39bd630e.png
│ │ ├── buy_fail_52315dbe.jpg
│ │ ├── linkgame.psd
│ │ ├── store_2a547bc5.jpg
│ │ └── store_563a2b41.png
│ ├── chapterMap_60cc5b81.json
│ ├── config
│ └── description_2e5ca871.json
│ ├── default.res.json
│ ├── default.thm.json
│ ├── eui_skins
│ ├── ButtonSkin.exml
│ ├── CheckBoxSkin.exml
│ ├── HScrollBarSkin.exml
│ ├── HSliderSkin.exml
│ ├── ItemRendererSkin.exml
│ ├── PanelSkin.exml
│ ├── ProgressBarSkin.exml
│ ├── RadioButtonSkin.exml
│ ├── ScrollerSkin.exml
│ ├── TextInputSkin.exml
│ ├── ToggleSwitchSkin.exml
│ ├── VScrollBarSkin.exml
│ └── VSliderSkin.exml
│ └── packs0
│ ├── preload-0sheet_4c46e080.json
│ ├── preload-0sheet_6f3a26a9.png
│ ├── preload-1sheet_2dff0d28.png
│ └── preload-1sheet_59310684.json
├── egretProperties.json
├── favicon.ico
├── index.html
├── libs
├── exml.e.d.ts
└── modules
│ ├── egret
│ ├── egret.d.ts
│ ├── egret.js
│ ├── egret.min.js
│ ├── egret.native.js
│ ├── egret.native.min.js
│ ├── egret.web.js
│ └── egret.web.min.js
│ ├── eui
│ ├── eui.d.ts
│ ├── eui.js
│ └── eui.min.js
│ ├── game
│ ├── game.d.ts
│ ├── game.js
│ └── game.min.js
│ ├── res
│ ├── res.d.ts
│ ├── res.js
│ └── res.min.js
│ └── tween
│ ├── tween.d.ts
│ ├── tween.js
│ └── tween.min.js
├── linkgame
└── proj.android
│ ├── .gitignore
│ ├── .idea
│ ├── .name
│ ├── compiler.xml
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── encodings.xml
│ ├── gradle.xml
│ ├── misc.xml
│ ├── modules.xml
│ ├── runConfigurations.xml
│ └── vcs.xml
│ ├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── libs
│ │ ├── arm64-v8a
│ │ │ └── libegret.so
│ │ ├── armeabi-v7a
│ │ │ └── libegret.so
│ │ ├── armeabi
│ │ │ └── libegret.so
│ │ ├── egret.jar
│ │ └── x86
│ │ │ └── libegret.so
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── org
│ │ │ └── egret
│ │ │ └── java
│ │ │ └── linkgame
│ │ │ └── ApplicationTest.java
│ │ ├── main
│ │ ├── .classpath
│ │ ├── .project
│ │ ├── .settings
│ │ │ └── org.eclipse.jdt.core.prefs
│ │ ├── AndroidManifest.xml
│ │ ├── bin
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── classes.dex
│ │ │ ├── classes
│ │ │ │ └── org
│ │ │ │ │ └── egret
│ │ │ │ │ └── java
│ │ │ │ │ └── linkgame
│ │ │ │ │ ├── BuildConfig.class
│ │ │ │ │ ├── R$attr.class
│ │ │ │ │ ├── R$color.class
│ │ │ │ │ ├── R$dimen.class
│ │ │ │ │ ├── R$drawable.class
│ │ │ │ │ ├── R$id.class
│ │ │ │ │ ├── R$layout.class
│ │ │ │ │ ├── R$mipmap.class
│ │ │ │ │ ├── R$string.class
│ │ │ │ │ ├── R$style.class
│ │ │ │ │ └── R.class
│ │ │ ├── linkgame.apk
│ │ │ ├── res
│ │ │ │ └── crunch
│ │ │ │ │ ├── drawable
│ │ │ │ │ └── splash_img.png
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ └── splash_img.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ └── splash_img.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ └── splash_img.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ └── splash_img.png
│ │ │ │ │ └── mipmap-xxxhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ └── splash_img.png
│ │ │ └── resources.ap_
│ │ ├── gen
│ │ │ └── org
│ │ │ │ └── egret
│ │ │ │ └── java
│ │ │ │ └── linkgame
│ │ │ │ ├── BuildConfig.java
│ │ │ │ └── R.java
│ │ ├── java
│ │ │ └── org
│ │ │ │ └── egret
│ │ │ │ └── java
│ │ │ │ ├── SplashActivity.java
│ │ │ │ └── linkgame
│ │ │ │ ├── GameLoadingView.java
│ │ │ │ ├── HotUpdate.java
│ │ │ │ └── linkgame.java
│ │ ├── project.properties
│ │ └── res
│ │ │ ├── drawable
│ │ │ ├── splash_img.png
│ │ │ └── splash_layer_list.xml
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ └── loading_view.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── splash_img.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── splash_img.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── splash_img.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── splash_img.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── splash_img.png
│ │ │ ├── values-w820dp
│ │ │ ├── dimens.xml
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── org
│ │ └── egret
│ │ └── java
│ │ └── linkgame
│ │ └── ExampleUnitTest.java
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── local.properties
│ └── settings.gradle
├── manifest.json
├── promise
└── bin
│ ├── promise.js
│ └── promise.min.js
├── resource
├── assets
│ ├── Button
│ │ ├── button_down.png
│ │ └── button_up.png
│ ├── CheckBox
│ │ ├── checkbox_select_disabled.png
│ │ ├── checkbox_select_down.png
│ │ ├── checkbox_select_up.png
│ │ └── checkbox_unselect.png
│ ├── ItemRenderer
│ │ └── selected.png
│ ├── Panel
│ │ ├── border.png
│ │ └── header.png
│ ├── ProgressBar
│ │ ├── thumb_pb.png
│ │ └── track_pb.png
│ ├── RadioButton
│ │ ├── radiobutton_select_disabled.png
│ │ ├── radiobutton_select_down.png
│ │ ├── radiobutton_select_up.png
│ │ └── radiobutton_unselect.png
│ ├── ScrollBar
│ │ ├── roundthumb.png
│ │ └── track_sb.png
│ ├── Slider
│ │ ├── thumb.png
│ │ ├── track.png
│ │ └── tracklight.png
│ ├── ToggleSwitch
│ │ ├── handle.png
│ │ ├── off.png
│ │ └── on.png
│ ├── egret_icon.png
│ └── myPic
│ │ ├── again.png
│ │ ├── back_btn.jpg
│ │ ├── back_btn.png
│ │ ├── buy.png
│ │ ├── buy_fail.jpg
│ │ ├── buy_fail.png
│ │ ├── cadeado.png
│ │ ├── cat.jpg
│ │ ├── chapter_sceen.jpg
│ │ ├── defaultBg.png
│ │ ├── e0.png
│ │ ├── e1.png
│ │ ├── e2.png
│ │ ├── e3.png
│ │ ├── e4.png
│ │ ├── e5.png
│ │ ├── exit.png
│ │ ├── gameBg.png
│ │ ├── homebg.png
│ │ ├── level1.jpg
│ │ ├── linkgame.psd
│ │ ├── lose.png
│ │ ├── n0.png
│ │ ├── n1.png
│ │ ├── n2.png
│ │ ├── n3.png
│ │ ├── n4.png
│ │ ├── n5.png
│ │ ├── n6.png
│ │ ├── n7.png
│ │ ├── n8.png
│ │ ├── n9.png
│ │ ├── next.png
│ │ ├── okbtn.jpg
│ │ ├── pause.png
│ │ ├── prompt.png
│ │ ├── reset.png
│ │ ├── start.jpg
│ │ ├── startbtn.png
│ │ ├── store.jpg
│ │ ├── store.png
│ │ ├── storebtn.png
│ │ ├── timer.png
│ │ ├── unlock.png
│ │ ├── win.png
│ │ └── yellowbtn.jpg
├── chapterMap.json
├── config
│ └── description.json
├── default.res.json
├── default.thm.json
└── eui_skins
│ ├── ButtonSkin.exml
│ ├── CheckBoxSkin.exml
│ ├── HScrollBarSkin.exml
│ ├── HSliderSkin.exml
│ ├── ItemRendererSkin.exml
│ ├── PanelSkin.exml
│ ├── ProgressBarSkin.exml
│ ├── RadioButtonSkin.exml
│ ├── ScrollerSkin.exml
│ ├── TextInputSkin.exml
│ ├── ToggleSwitchSkin.exml
│ ├── VScrollBarSkin.exml
│ └── VSliderSkin.exml
├── show
├── 1.png
├── 2.png
├── 3.png
├── 4.png
├── 5.png
├── 6.png
├── 7.png
└── 8.png
├── src
├── AssetAdapter.ts
├── LoadingUI.ts
├── Main.ts
├── ThemeAdapter.ts
├── control
│ ├── ChapterConfig.ts
│ ├── ColorGlowFilter.ts
│ ├── ConnectLogic.ts
│ ├── GameEventManager.ts
│ ├── LocalStorageControl.ts
│ ├── PropsManager.ts
│ └── SceenControl.ts
├── data
│ ├── GameData.ts
│ ├── InitConfigData.ts
│ ├── PropsPrice.ts
│ └── TimerData.ts
├── element
│ ├── BasePropsElement.ts
│ └── GameElement.ts
├── event
│ └── GameEvent.ts
├── sceen
│ ├── ChapterSceen.ts
│ ├── GameSceen.ts
│ ├── HomeSceen.ts
│ └── StoreSceen.ts
└── view
│ ├── BuyFailView.ts
│ ├── ElementView.ts
│ ├── GameBackground.ts
│ ├── GameMap.ts
│ ├── HomeBtnsView.ts
│ ├── IconView.ts
│ ├── LockChapter.ts
│ ├── LoseView.ts
│ ├── PassView.ts
│ ├── PropViews.ts
│ ├── PropsShopItem.ts
│ ├── ResultView.ts
│ ├── TimerView.ts
│ ├── UnLockChapter.ts
│ └── btn
│ ├── BackBtn.ts
│ ├── BaseBtn.ts
│ ├── BuyBtn.ts
│ ├── EnterChapterBtn.ts
│ └── EnterStoreBtn.ts
├── template
├── runtime
│ ├── native_loader.js
│ ├── native_require.js
│ └── runtime_loader.js
└── web
│ └── index.html
├── tsconfig.json
└── wingProperties.json
/.wing/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": "Wing 内置播放器调试",
6 | "type": "chrome",
7 | "request": "launch",
8 | "file": "index.html",
9 | //"url": "http://mysite.com/index.html",
10 | "runtimeExecutable": "${execPath}",
11 | "sourceMaps": true,
12 | "webRoot": "${workspaceRoot}",
13 | "preLaunchTask":"build",
14 | "port":5259
15 | },
16 | {
17 | "name": "使用本机 Chrome 调试",
18 | "type": "chrome",
19 | "request": "launch",
20 | "file": "index.html",
21 | //"url": "http://mysite.com/index.html",
22 | "runtimeExecutable": "",
23 | "sourceMaps": true,
24 | "webRoot": "${workspaceRoot}",
25 | "preLaunchTask":"build",
26 | "userDataDir":"${tmpdir}",
27 | "port":5259
28 | }
29 | ]
30 | }
--------------------------------------------------------------------------------
/.wing/packConfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "useClip": false,
3 | "maxImageWidth": 2048,
4 | "maxImageHeight": 2048,
5 | "defaultResPath": "c:\\Users\\Ryan\\Documents\\EgretProjects\\linkgame\\resource\\default.res.json",
6 | "packGroups": {
7 | "preload": true
8 | }
9 | }
--------------------------------------------------------------------------------
/.wing/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "search.exclude": {
3 | "**/bin-debug": true,
4 | "**/bin-release": true
5 | }
6 | }
--------------------------------------------------------------------------------
/.wing/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.1.0",
3 | "command": "egret",
4 | "isShellCommand": true,
5 | "tasks": [
6 | {
7 | "taskName": "build",
8 | "showOutput": "always",
9 | "args": [
10 | "build",
11 | "-sourcemap"
12 | ],
13 | "problemMatcher": "$tsc"
14 | },
15 | {
16 | "taskName": "clean",
17 | "showOutput": "always",
18 | "args": [
19 | "build",
20 | "-e"
21 | ],
22 | "problemMatcher": "$tsc"
23 | },
24 | {
25 | "taskName": "publish",
26 | "showOutput": "always",
27 | "args": [
28 | "publish"
29 | ],
30 | "problemMatcher": "$tsc"
31 | }
32 | ]
33 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # egret连连看小游戏
2 |
3 | ## 特色
4 | - [x] 关卡定制,每个关卡要清除的元素和背景图都不一样
5 |
6 | ## 主要功能
7 | - [x] 解锁和选择关卡、元素
8 | - [x] 游戏道具
9 | - [x] 游戏商城
10 | - [x] 游戏关卡
11 | - [x] 存储
12 |
13 | ## 部分截图
14 |
15 |
16 |

17 |

18 |

19 |

20 |

21 |

22 |

23 |

24 |
25 |
26 |
27 |
28 |
29 | ## demo展示 http://www.maocanhua.cn/work/linkgame/
30 |
31 |
--------------------------------------------------------------------------------
/bin-debug/AssetAdapter.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"AssetAdapter.js","sourceRoot":"","sources":["../src/AssetAdapter.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,EAAE;AACF,iDAAiD;AACjD,wBAAwB;AACxB,sEAAsE;AACtE,+EAA+E;AAC/E,EAAE;AACF,uEAAuE;AACvE,sEAAsE;AACtE,0EAA0E;AAC1E,4EAA4E;AAC5E,6EAA6E;AAC7E,8CAA8C;AAC9C,6EAA6E;AAC7E,8EAA8E;AAC9E,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,2EAA2E;AAC3E,gFAAgF;AAChF,gFAAgF;AAChF,8EAA8E;AAC9E,6EAA6E;AAC7E,wEAAwE;AACxE,gFAAgF;AAChF,sDAAsD;AACtD,EAAE;AACF,sFAAsF;;;;AAGtF;IAAA;IAyBA,CAAC;IAxBG;;;;;;OAMG;IACI,+BAAQ,GAAf,UAAgB,MAAc,EAAE,QAAiB,EAAE,UAAe;QAC9D,kBAAkB,IAAS;YACvB,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAC5C,CAAC;QACD,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACrB,IAAI,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC9B,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;gBACP,QAAQ,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC;YACD,IAAI,CAAC,CAAC;gBACF,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC5C,CAAC;QACL,CAAC;QACD,IAAI,CAAC,CAAC;YACF,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QACzE,CAAC;IACL,CAAC;IACL,mBAAC;AAAD,CAAC,AAzBD,IAyBC;AAzBK,UAAA,YAAY,kDAyBjB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/LoadingUI.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"LoadingUI.js","sourceRoot":"","sources":["../src/LoadingUI.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,EAAE;AACF,iDAAiD;AACjD,wBAAwB;AACxB,sEAAsE;AACtE,+EAA+E;AAC/E,EAAE;AACF,uEAAuE;AACvE,sEAAsE;AACtE,0EAA0E;AAC1E,4EAA4E;AAC5E,6EAA6E;AAC7E,8CAA8C;AAC9C,6EAA6E;AAC7E,8EAA8E;AAC9E,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,2EAA2E;AAC3E,gFAAgF;AAChF,gFAAgF;AAChF,8EAA8E;AAC9E,6EAA6E;AAC7E,wEAAwE;AACxE,gFAAgF;AAChF,sDAAsD;AACtD,EAAE;AACF,sFAAsF;;;;;;;;;;;;;;AAEtF;IAAwB,6BAAY;IAEhC;QAAA,YACI,iBAAO,SAEV;QADG,KAAI,CAAC,UAAU,EAAE,CAAC;;IACtB,CAAC;IAIO,8BAAU,GAAlB;QACI,IAAI,CAAC,SAAS,GAAG,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;QACvC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC9B,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,GAAG,CAAC;QACvB,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,GAAG,CAAC;QAC3B,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,GAAG,CAAC;QAC5B,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG,QAAQ,CAAC;IACxC,CAAC;IAEM,+BAAW,GAAlB,UAAmB,OAAc,EAAE,KAAY;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,eAAa,OAAO,SAAI,KAAO,CAAC;IAC1D,CAAC;IACL,gBAAC;AAAD,CAAC,AArBD,CAAwB,KAAK,CAAC,MAAM,GAqBnC;AArBK,UAAA,SAAS,wBAqBd,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/ThemeAdapter.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"ThemeAdapter.js","sourceRoot":"","sources":["../src/ThemeAdapter.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,EAAE;AACF,iDAAiD;AACjD,wBAAwB;AACxB,sEAAsE;AACtE,+EAA+E;AAC/E,EAAE;AACF,uEAAuE;AACvE,sEAAsE;AACtE,0EAA0E;AAC1E,4EAA4E;AAC5E,6EAA6E;AAC7E,8CAA8C;AAC9C,6EAA6E;AAC7E,8EAA8E;AAC9E,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,2EAA2E;AAC3E,gFAAgF;AAChF,gFAAgF;AAChF,8EAA8E;AAC9E,6EAA6E;AAC7E,wEAAwE;AACxE,gFAAgF;AAChF,sDAAsD;AACtD,EAAE;AACF,sFAAsF;;;;AAGtF;IAAA;IAsBA,CAAC;IApBG;;;;;;OAMG;IACI,+BAAQ,GAAf,UAAgB,GAAU,EAAC,QAAiB,EAAC,SAAkB,EAAC,UAAc;QAC1E,kBAAkB,CAAQ;YACtB,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QACjC,CAAC;QACD,iBAAiB,CAAmB;YAChC,EAAE,CAAA,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC;gBACtB,GAAG,CAAC,mBAAmB,CAAC,GAAG,CAAC,aAAa,CAAC,eAAe,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;gBAC1E,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC/B,CAAC;QACL,CAAC;QACD,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,aAAa,CAAC,eAAe,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;QACvE,GAAG,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IACrE,CAAC;IACL,mBAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBK,UAAA,YAAY,kDAsBjB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/control/ChapterConfig.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var ChapterConfig = (function () {
5 | function ChapterConfig() {
6 | }
7 | ChapterConfig.getData = function (chapter) {
8 | var json = RES.getRes("chapterMap_json");
9 | return json[chapter];
10 | };
11 | ChapterConfig.getChapterNum = function () {
12 | var json = RES.getRes("chapterMap_json");
13 | return Object.keys(json).length;
14 | };
15 | return ChapterConfig;
16 | }());
17 | __reflect(ChapterConfig.prototype, "ChapterConfig");
18 | //# sourceMappingURL=ChapterConfig.js.map
--------------------------------------------------------------------------------
/bin-debug/control/ChapterConfig.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"ChapterConfig.js","sourceRoot":"","sources":["../../src/control/ChapterConfig.ts"],"names":[],"mappings":";;;AAAA;IAAA;IASA,CAAC;IARc,qBAAO,GAArB,UAAsB,OAAe;QACpC,IAAI,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;QACzC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;IACa,2BAAa,GAA3B;QACC,IAAI,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;QACzC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;IACjC,CAAC;IACF,oBAAC;AAAD,CAAC,AATD,IASC;AATK,UAAA,aAAa,4BASlB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/control/ColorGlowFilter.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var ColorGlowFilter = (function () {
5 | function ColorGlowFilter() {
6 | }
7 | ColorGlowFilter.transparentGF = new egret.GlowFilter(0xFFFFFF, 0, 6, 6, 20, 1); //白色
8 | ColorGlowFilter.whiteGF = new egret.GlowFilter(0xFFFFFF, 1, 6, 6, 20, 1); //白色
9 | ColorGlowFilter.redGF = new egret.GlowFilter(0xDC143C, 1, 6, 6, 20, 1); //红色
10 | ColorGlowFilter.blueGF = new egret.GlowFilter(0x00BFFF, 1, 6, 6, 20, 1); //蓝色
11 | ColorGlowFilter.yellowGF = new egret.GlowFilter(0xdbe204, 1, 6, 6, 20, 1); //黄色
12 | return ColorGlowFilter;
13 | }());
14 | __reflect(ColorGlowFilter.prototype, "ColorGlowFilter");
15 | //# sourceMappingURL=ColorGlowFilter.js.map
--------------------------------------------------------------------------------
/bin-debug/control/ColorGlowFilter.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"ColorGlowFilter.js","sourceRoot":"","sources":["../../src/control/ColorGlowFilter.ts"],"names":[],"mappings":";;;AAAA;IAAA;IAMA,CAAC;IALc,6BAAa,GAAE,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA,IAAI;IAC/D,uBAAO,GAAE,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA,IAAI;IAC5D,qBAAK,GAAG,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAE,IAAI;IAC7D,sBAAM,GAAG,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAE,IAAI;IAC9D,wBAAQ,GAAG,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAE,IAAI;IAClF,sBAAC;CAAA,AAND,IAMC;AANK,UAAA,eAAe,8BAMpB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/control/GameEventManager.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var GameEventManager = (function () {
5 | function GameEventManager() {
6 | }
7 | GameEventManager.timeout = function () {
8 | egret.log('时间到');
9 | };
10 | return GameEventManager;
11 | }());
12 | __reflect(GameEventManager.prototype, "GameEventManager");
13 | //# sourceMappingURL=GameEventManager.js.map
--------------------------------------------------------------------------------
/bin-debug/control/GameEventManager.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"GameEventManager.js","sourceRoot":"","sources":["../../src/control/GameEventManager.ts"],"names":[],"mappings":";;;AAAA;IAAA;IAIA,CAAC;IAHc,wBAAO,GAArB;QACC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IACjB,CAAC;IACF,uBAAC;AAAD,CAAC,AAJD,IAIC;AAJK,UAAA,gBAAgB,+BAIrB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/control/LocalStorageControl.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"LocalStorageControl.js","sourceRoot":"","sources":["../../src/control/LocalStorageControl.ts"],"names":[],"mappings":"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"}
--------------------------------------------------------------------------------
/bin-debug/control/PropsManager.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var PropsManager = (function () {
5 | function PropsManager() {
6 | }
7 | PropsManager.userProps = function (propsId) {
8 | switch (propsId) {
9 | case 0:
10 | this.promptProps();
11 | break;
12 | case 1:
13 | this.stopTimeProps();
14 | break;
15 | case 2:
16 | this.resetMap();
17 | }
18 | };
19 | //提示
20 | PropsManager.promptProps = function () {
21 | if (!GameData.gameMap.isReady)
22 | return;
23 | if (ConnectLogic.prompt(true, true)) {
24 | GameData.promptNum--;
25 | GameData.gameMap.checkCanLine();
26 | }
27 | ;
28 | };
29 | //暂停时间
30 | PropsManager.stopTimeProps = function () {
31 | GameData.timerManager.pause();
32 | };
33 | //重置地图数据
34 | PropsManager.resetMap = function () {
35 | GameData.gameMap.createAllElement();
36 | };
37 | return PropsManager;
38 | }());
39 | __reflect(PropsManager.prototype, "PropsManager");
40 | //# sourceMappingURL=PropsManager.js.map
--------------------------------------------------------------------------------
/bin-debug/control/PropsManager.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"PropsManager.js","sourceRoot":"","sources":["../../src/control/PropsManager.ts"],"names":[],"mappings":";;;AAAA;IAAA;IAgCA,CAAC;IA/Bc,sBAAS,GAAvB,UAAwB,OAAe;QACtC,MAAM,CAAA,CAAC,OAAO,CAAC,CAAA,CAAC;YACf,KAAK,CAAC;gBACL,IAAI,CAAC,WAAW,EAAE,CAAC;gBACnB,KAAK,CAAC;YACP,KAAK,CAAC;gBACL,IAAI,CAAC,aAAa,EAAE,CAAC;gBACrB,KAAK,CAAC;YACP,KAAK,CAAC;gBACL,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClB,CAAC;IACF,CAAC;IAED,IAAI;IACW,wBAAW,GAA1B;QACC,EAAE,CAAA,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC;YAAC,MAAM,CAAE;QACtC,EAAE,CAAA,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA,CAAC;YACnC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACrB,QAAQ,CAAC,OAAO,CAAC,YAAY,EAAE,CAAA;QAChC,CAAC;QAAA,CAAC;IACH,CAAC;IAED,MAAM;IACS,0BAAa,GAA5B;QACC,QAAQ,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;IAC/B,CAAC;IAED,QAAQ;IACO,qBAAQ,GAAvB;QACC,QAAQ,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC;IACrC,CAAC;IACF,mBAAC;AAAD,CAAC,AAhCD,IAgCC;AAhCK,UAAA,YAAY,2BAgCjB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/control/SceenControl.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var SceenControl = (function () {
5 | function SceenControl() {
6 | }
7 | //加载主页
8 | SceenControl.loadHome = function () {
9 | this.load(new HomeSceen());
10 | };
11 | //加载章节页面
12 | SceenControl.loadChapter = function () {
13 | this.load(new ChapterSceen());
14 | };
15 | //加载游戏页面
16 | SceenControl.loadGame = function (chapter) {
17 | this.load(new GameSceen());
18 | };
19 | //加载商店页面
20 | SceenControl.loadStore = function () {
21 | this.load(new StoreSceen());
22 | };
23 | SceenControl.load = function (fn) {
24 | GameData.stage.removeChildren();
25 | var child = fn;
26 | GameData.sceen = child;
27 | GameData.stage.addChild(child);
28 | };
29 | return SceenControl;
30 | }());
31 | __reflect(SceenControl.prototype, "SceenControl");
32 | //# sourceMappingURL=SceenControl.js.map
--------------------------------------------------------------------------------
/bin-debug/control/SceenControl.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"SceenControl.js","sourceRoot":"","sources":["../../src/control/SceenControl.ts"],"names":[],"mappings":";;;AAAA;IAAA;IA6BA,CAAC;IA3BA,MAAM;IACQ,qBAAQ,GAAtB;QACC,IAAI,CAAC,IAAI,CAAC,IAAI,SAAS,EAAE,CAAC,CAAA;IAC3B,CAAC;IAED,QAAQ;IACM,wBAAW,GAAzB;QACC,IAAI,CAAC,IAAI,CAAC,IAAI,YAAY,EAAE,CAAC,CAAA;IAC9B,CAAC;IAED,QAAQ;IACM,qBAAQ,GAAtB,UAAuB,OAAe;QACrC,IAAI,CAAC,IAAI,CAAC,IAAI,SAAS,EAAE,CAAC,CAAA;IAC3B,CAAC;IAED,QAAQ;IACM,sBAAS,GAAvB;QACC,IAAI,CAAC,IAAI,CAAC,IAAI,UAAU,EAAE,CAAC,CAAA;IAC5B,CAAC;IAEc,iBAAI,GAAnB,UAAoB,EAAE;QACrB,QAAQ,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC;QAChC,IAAM,KAAK,GAAG,EAAE,CAAC;QACjB,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAEF,mBAAC;AAAD,CAAC,AA7BD,IA6BC;AA7BK,UAAA,YAAY,2BA6BjB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/data/GameData.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var GameData = (function () {
5 | function GameData() {
6 | }
7 | GameData.resetData = function () {
8 | this.elements = new Array(); //元素数组
9 | this.elementViews = new Array(); //显示元素数组
10 | this.mapData = new Array();
11 | };
12 | //最大行列
13 | GameData.maxRow = 10;
14 | GameData.maxColumn = 10;
15 | //设置的舞台宽高
16 | GameData.stageW = 640;
17 | GameData.stageH = 1136;
18 | GameData.elementWidth = (640 - 40) / GameData.maxColumn;
19 | GameData.elementTypes = ["e0_png", "e1_png", "e2_png", "e3_png", "e4_png", "e5_png"]; //元素类型数组
20 | GameData.promptNum = 0;
21 | GameData.level = 1;
22 | GameData.backgroundImage = "defaultBg_png";
23 | return GameData;
24 | }());
25 | __reflect(GameData.prototype, "GameData");
26 | //# sourceMappingURL=GameData.js.map
--------------------------------------------------------------------------------
/bin-debug/data/GameData.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"GameData.js","sourceRoot":"","sources":["../../src/data/GameData.ts"],"names":[],"mappings":";;;AAAA;IAAA;IAyCA,CAAC;IALc,kBAAS,GAAvB;QACC,IAAI,CAAC,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC,MAAM;QACnC,IAAI,CAAC,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC,QAAQ;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,KAAK,EAAE,CAAC;IAC5B,CAAC;IAlCD,MAAM;IACQ,eAAM,GAAG,EAAE,CAAC;IACZ,kBAAS,GAAG,EAAE,CAAC;IAE7B,SAAS;IACK,eAAM,GAAW,GAAG,CAAC;IACrB,eAAM,GAAW,IAAI,CAAC;IAEtB,qBAAY,GAAU,CAAC,GAAG,GAAG,EAAE,CAAC,GAAC,QAAQ,CAAC,SAAS,CAAC;IAGpD,qBAAY,GAAa,CAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;IAQ1F,kBAAS,GAAU,CAAC,CAAC;IAErB,cAAK,GAAW,CAAC,CAAC;IAGlB,wBAAe,GAAW,eAAe,CAAC;IAWzD,eAAC;CAAA,AAzCD,IAyCC;AAzCK,UAAA,QAAQ,uBAyCb,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/data/InitConfigData.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var InitConfigData = (function () {
5 | function InitConfigData() {
6 | }
7 | InitConfigData.icon = 1000;
8 | InitConfigData.chapter = 0;
9 | InitConfigData.prompt = 3;
10 | InitConfigData.pause = 3;
11 | InitConfigData.reset = 3;
12 | return InitConfigData;
13 | }());
14 | __reflect(InitConfigData.prototype, "InitConfigData");
15 | //# sourceMappingURL=InitConfigData.js.map
--------------------------------------------------------------------------------
/bin-debug/data/InitConfigData.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"InitConfigData.js","sourceRoot":"","sources":["../../src/data/InitConfigData.ts"],"names":[],"mappings":";;;AAAA;IAAA;IAMA,CAAC;IALc,mBAAI,GAAU,IAAI,CAAC;IACnB,sBAAO,GAAU,CAAC,CAAC;IACnB,qBAAM,GAAU,CAAC,CAAC;IAClB,oBAAK,GAAU,CAAC,CAAC;IACjB,oBAAK,GAAU,CAAC,CAAC;IAChC,qBAAC;CAAA,AAND,IAMC;AANK,UAAA,cAAc,6BAMnB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/data/PropsPrice.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var PropsPrice = (function () {
5 | function PropsPrice() {
6 | }
7 | PropsPrice.prompt = 500;
8 | PropsPrice.reset = 500;
9 | PropsPrice.pause = 500;
10 | return PropsPrice;
11 | }());
12 | __reflect(PropsPrice.prototype, "PropsPrice");
13 | //# sourceMappingURL=PropsPrice.js.map
--------------------------------------------------------------------------------
/bin-debug/data/PropsPrice.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"PropsPrice.js","sourceRoot":"","sources":["../../src/data/PropsPrice.ts"],"names":[],"mappings":";;;AAAA;IAAA;IAIA,CAAC;IAHc,iBAAM,GAAW,GAAG,CAAC;IACrB,gBAAK,GAAW,GAAG,CAAC;IACpB,gBAAK,GAAW,GAAG,CAAC;IACnC,iBAAC;CAAA,AAJD,IAIC;AAJK,UAAA,UAAU,yBAIf,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/data/TimerData.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var TimerData = (function () {
5 | function TimerData() {
6 | }
7 | TimerData.time = 90; //游戏时间单位秒
8 | TimerData.pauseTime = 5; //单位秒
9 | TimerData.eleDisappearTime = 200; //元素找到到消失的时间/毫秒
10 | return TimerData;
11 | }());
12 | __reflect(TimerData.prototype, "TimerData");
13 | //# sourceMappingURL=TimerData.js.map
--------------------------------------------------------------------------------
/bin-debug/data/TimerData.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"TimerData.js","sourceRoot":"","sources":["../../src/data/TimerData.ts"],"names":[],"mappings":";;;AAAA;IAAA;IAIA,CAAC;IAHc,cAAI,GAAG,EAAE,CAAC,CAAC,SAAS;IACpB,mBAAS,GAAG,CAAC,CAAC,CAAA,KAAK;IACnB,0BAAgB,GAAG,GAAG,CAAC,CAAC,eAAe;IACtD,gBAAC;CAAA,AAJD,IAIC;AAJK,UAAA,SAAS,wBAId,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/element/BasePropsElement.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"BasePropsElement.js","sourceRoot":"","sources":["../../src/element/BasePropsElement.ts"],"names":[],"mappings":"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"}
--------------------------------------------------------------------------------
/bin-debug/element/GameElement.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var GameElement = (function (_super) {
15 | __extends(GameElement, _super);
16 | function GameElement(id, type) {
17 | var _this = _super.call(this) || this;
18 | _this.type = "";
19 | _this.id = id;
20 | _this.type = type;
21 | _this.locationX = id % GameData.maxRow;
22 | _this.locationY = Math.floor(id / GameData.maxRow);
23 | return _this;
24 | }
25 | GameElement.prototype.update = function (id) {
26 | this.id = id;
27 | this.locationX = id % GameData.maxRow;
28 | this.locationY = Math.floor(id / GameData.maxRow);
29 | };
30 | return GameElement;
31 | }(egret.Sprite));
32 | __reflect(GameElement.prototype, "GameElement");
33 | //# sourceMappingURL=GameElement.js.map
--------------------------------------------------------------------------------
/bin-debug/element/GameElement.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"GameElement.js","sourceRoot":"","sources":["../../src/element/GameElement.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAA0B,+BAAY;IAOrC,qBAAY,EAAE,EAAE,IAAI;QAApB,YACC,iBAAO,SAKP;QAXM,UAAI,GAAW,EAAE,CAAC;QAOxB,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,SAAS,GAAG,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAE;QACvC,KAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAE;;IACpD,CAAC;IACM,4BAAM,GAAb,UAAc,EAAU;QACvB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,SAAS,GAAG,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAE;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAE;IACpD,CAAC;IACF,kBAAC;AAAD,CAAC,AAnBD,CAA0B,KAAK,CAAC,MAAM,GAmBrC;AAnBK,UAAA,WAAW,0BAmBhB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/event/GameEvent.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var GameEvent = (function (_super) {
15 | __extends(GameEvent, _super);
16 | function GameEvent(type, bubbles, cancelable) {
17 | if (bubbles === void 0) { bubbles = false; }
18 | if (cancelable === void 0) { cancelable = false; }
19 | var _this = _super.call(this, type, bubbles, cancelable) || this;
20 | _this.propToElementLocation = 0; //携带道具点击的元素位置
21 | _this.ele1 = 0; //第一个点击的元素
22 | _this.ele2 = 0; //第二个点击的元素
23 | return _this;
24 | }
25 | GameEvent.TAP_TWO_ELEMENT = "tap_two_element";
26 | GameEvent.REMOVE_ANIMATION_OVER = "remove_animation_over";
27 | GameEvent.UPDATE_MAP = "update_map";
28 | GameEvent.UPDATE_VIEW_OVER = "update_view_over";
29 | GameEvent.USE_PROP_CLICK = "use_prop_click";
30 | GameEvent.TIME_OUT = "time_out";
31 | return GameEvent;
32 | }(egret.Event));
33 | __reflect(GameEvent.prototype, "GameEvent");
34 | //# sourceMappingURL=GameEvent.js.map
--------------------------------------------------------------------------------
/bin-debug/event/GameEvent.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"GameEvent.js","sourceRoot":"","sources":["../../src/event/GameEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAwB,6BAAW;IAW/B,mBAAmB,IAAW,EAAE,OAAuB,EAAE,UAA0B;QAAnD,wBAAA,EAAA,eAAuB;QAAE,2BAAA,EAAA,kBAA0B;QAAnF,YAEI,kBAAM,IAAI,EAAC,OAAO,EAAC,UAAU,CAAC,SACjC;QANM,2BAAqB,GAAU,CAAC,CAAC,CAAC,aAAa;QAC/C,UAAI,GAAQ,CAAC,CAAC,CAAA,UAAU;QACxB,UAAI,GAAQ,CAAC,CAAC,CAAA,UAAU;;IAI/B,CAAC;IAba,yBAAe,GAAU,iBAAiB,CAAC;IAC3C,+BAAqB,GAAU,uBAAuB,CAAC;IACvD,oBAAU,GAAU,YAAY,CAAC;IACjC,0BAAgB,GAAU,kBAAkB,CAAC;IAC7C,wBAAc,GAAU,gBAAgB,CAAC;IACzC,kBAAQ,GAAW,UAAU,CAAA;IAuB/C,gBAAC;CAAA,AA7BD,CAAwB,KAAK,CAAC,KAAK,GA6BlC;AA7BK,UAAA,SAAS,wBA6Bd,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/sceen/ChapterSceen.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"ChapterSceen.js","sourceRoot":"","sources":["../../src/sceen/ChapterSceen.ts"],"names":[],"mappings":"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"}
--------------------------------------------------------------------------------
/bin-debug/sceen/GameSceen.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var GameSceen = (function (_super) {
15 | __extends(GameSceen, _super);
16 | function GameSceen() {
17 | var _this = _super.call(this) || this;
18 | _this.chapter = LocalStorageControl.getChapter();
19 | _this.init();
20 | return _this;
21 | }
22 | GameSceen.prototype.init = function () {
23 | //加载背景
24 | var gb = new GameBackground(this.chapter, this);
25 | this.addChild(gb);
26 | //加载地图数据
27 | this.gm = new GameMap(this);
28 | GameData.gameMap = this.gm;
29 | this.addChild(this.gm);
30 | //加载道具
31 | this.pv = new PropViews();
32 | this.addChild(this.pv);
33 | //创建返回按钮
34 | var backbtn = new BackBtn("back_btn_png", 120, 60, GameData.stageW - 140, 20, "Chapter");
35 | this.addChild(backbtn);
36 | };
37 | GameSceen.prototype.showResult = function (result) {
38 | if (result) {
39 | LocalStorageControl.addIcon(100 + this.chapter * 10);
40 | LocalStorageControl.openChapter();
41 | }
42 | else {
43 | LocalStorageControl.addIcon(50);
44 | }
45 | this.gm.touchChildren = false;
46 | this.pv.touchChildren = false;
47 | var rv = new ResultView(result);
48 | this.addChild(rv);
49 | };
50 | return GameSceen;
51 | }(egret.Sprite));
52 | __reflect(GameSceen.prototype, "GameSceen");
53 | //# sourceMappingURL=GameSceen.js.map
--------------------------------------------------------------------------------
/bin-debug/sceen/GameSceen.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"GameSceen.js","sourceRoot":"","sources":["../../src/sceen/GameSceen.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAwB,6BAAY;IAInC;QAAA,YACC,iBAAO,SAGP;QAFA,KAAI,CAAC,OAAO,GAAG,mBAAmB,CAAC,UAAU,EAAE,CAAC;QAChD,KAAI,CAAC,IAAI,EAAE,CAAC;;IACb,CAAC;IAEM,wBAAI,GAAX;QACG,MAAM;QACN,IAAM,EAAE,GAAI,IAAI,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QAEjB,QAAQ;QACL,IAAI,CAAC,EAAE,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;QAC/B,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC;QACxB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAE1B,MAAM;QACN,IAAI,CAAC,EAAE,GAAG,IAAI,SAAS,EAAE,CAAC;QAC1B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAEtB,QAAQ;QACX,IAAM,OAAO,GAAG,IAAI,OAAO,CAAC,cAAc,EAAE,GAAG,EAAE,EAAE,EAAE,QAAQ,CAAC,MAAM,GAAG,GAAG,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC;QAC3F,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACxB,CAAC;IAEM,8BAAU,GAAjB,UAAkB,MAAe;QAChC,EAAE,CAAA,CAAC,MAAM,CAAC,CAAA,CAAC;YACV,mBAAmB,CAAC,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YACrD,mBAAmB,CAAC,WAAW,EAAE,CAAC;QACnC,CAAC;QAAA,IAAI,CAAA,CAAC;YACL,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACjC,CAAC;QACD,IAAI,CAAC,EAAE,CAAC,aAAa,GAAG,KAAK,CAAC;QAC9B,IAAI,CAAC,EAAE,CAAC,aAAa,GAAG,KAAK,CAAC;QAC9B,IAAM,EAAE,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEnB,CAAC;IACF,gBAAC;AAAD,CAAC,AA1CD,CAAwB,KAAK,CAAC,MAAM,GA0CnC;AA1CK,UAAA,SAAS,wBA0Cd,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/sceen/HomeSceen.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var HomeSceen = (function (_super) {
15 | __extends(HomeSceen, _super);
16 | function HomeSceen() {
17 | var _this = _super.call(this) || this;
18 | _this.init();
19 | return _this;
20 | }
21 | HomeSceen.prototype.init = function () {
22 | var bgImg = new egret.Bitmap();
23 | bgImg.texture = RES.getRes("homebg_png");
24 | bgImg.width = GameData.stageW;
25 | bgImg.height = GameData.stageH;
26 | this.addChild(bgImg);
27 | //按钮
28 | var htv = new HomeBtnsView();
29 | this.addChild(htv);
30 | };
31 | return HomeSceen;
32 | }(egret.Sprite));
33 | __reflect(HomeSceen.prototype, "HomeSceen");
34 | //# sourceMappingURL=HomeSceen.js.map
--------------------------------------------------------------------------------
/bin-debug/sceen/HomeSceen.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"HomeSceen.js","sourceRoot":"","sources":["../../src/sceen/HomeSceen.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAwB,6BAAY;IACnC;QAAA,YACC,iBAAO,SAEP;QADA,KAAI,CAAC,IAAI,EAAE,CAAC;;IACb,CAAC;IAEO,wBAAI,GAAZ;QACC,IAAI,KAAK,GAAgB,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC/C,KAAK,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC9B,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QACzB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAE3B,IAAI;QACJ,IAAI,GAAG,GAAG,IAAI,YAAY,EAAE,CAAC;QAC7B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACpB,CAAC;IACF,gBAAC;AAAD,CAAC,AAjBD,CAAwB,KAAK,CAAC,MAAM,GAiBnC;AAjBK,UAAA,SAAS,wBAiBd,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/sceen/StoreSceen.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var StoreSceen = (function (_super) {
15 | __extends(StoreSceen, _super);
16 | function StoreSceen() {
17 | var _this = _super.call(this) || this;
18 | _this.init();
19 | return _this;
20 | }
21 | StoreSceen.prototype.init = function () {
22 | var bgImg = GameData.stage.createBitmapByName("store_png");
23 | bgImg.width = GameData.stageW;
24 | bgImg.height = GameData.stageH;
25 | this.addChild(bgImg);
26 | //加载金币视图
27 | var iv = new IconView();
28 | this.addChild(iv);
29 | //创建返回按钮
30 | var backbtn = new BackBtn("back_btn_png", 120, 60, GameData.stageW - 140, 20, "Home");
31 | this.addChild(backbtn);
32 | //道具视图
33 | var promtpItem = new PropsShopItem("prompt_png", "prompt", 300, "快速提示");
34 | this.addChild(promtpItem);
35 | var pauseItem = new PropsShopItem("pause_png", "pause", 450, "时间暂停");
36 | this.addChild(pauseItem);
37 | var resetItem = new PropsShopItem("reset_png", "reset", 600, "重新整理");
38 | this.addChild(resetItem);
39 | };
40 | return StoreSceen;
41 | }(egret.Sprite));
42 | __reflect(StoreSceen.prototype, "StoreSceen");
43 | //# sourceMappingURL=StoreSceen.js.map
--------------------------------------------------------------------------------
/bin-debug/sceen/StoreSceen.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"StoreSceen.js","sourceRoot":"","sources":["../../src/sceen/StoreSceen.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAyB,8BAAY;IACpC;QAAA,YACC,iBAAO,SAEP;QADA,KAAI,CAAC,IAAI,EAAE,CAAC;;IACb,CAAC;IAEO,yBAAI,GAAZ;QACC,IAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QAC7D,KAAK,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC9B,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QACzB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAE3B,QAAQ;QACR,IAAM,EAAE,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC1B,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAElB,QAAQ;QACR,IAAM,OAAO,GAAG,IAAI,OAAO,CAAC,cAAc,EAAE,GAAG,EAAE,EAAE,EAAE,QAAQ,CAAC,MAAM,GAAG,GAAG,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QACxF,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAEvB,MAAM;QAEN,IAAI,UAAU,GAAG,IAAI,aAAa,CAAC,YAAY,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;QACxE,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAC1B,IAAI,SAAS,GAAG,IAAI,aAAa,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;QACrE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACzB,IAAI,SAAS,GAAG,IAAI,aAAa,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;QACrE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC1B,CAAC;IACF,iBAAC;AAAD,CAAC,AA7BD,CAAyB,KAAK,CAAC,MAAM,GA6BpC;AA7BK,UAAA,UAAU,yBA6Bf,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/BuyFailView.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var BuyFailView = (function (_super) {
15 | __extends(BuyFailView, _super);
16 | function BuyFailView(parent) {
17 | var _this = _super.call(this) || this;
18 | _this.thisparent = parent;
19 | _this.init();
20 | return _this;
21 | }
22 | BuyFailView.prototype.init = function () {
23 | var _this = this;
24 | var failPic = GameData.stage.createBitmapByName("buy_fail_png");
25 | this.addChild(failPic);
26 | failPic.width = 530;
27 | failPic.height = 335;
28 | failPic.x = (GameData.stageW - 530) / 2;
29 | failPic.y = (GameData.stageH - 335) / 2;
30 | var timer = setTimeout(function () {
31 | if (_this.parent) {
32 | _this.thisparent.removeChild(_this);
33 | }
34 | }, 1000);
35 | };
36 | return BuyFailView;
37 | }(egret.Sprite));
38 | __reflect(BuyFailView.prototype, "BuyFailView");
39 | //# sourceMappingURL=BuyFailView.js.map
--------------------------------------------------------------------------------
/bin-debug/view/BuyFailView.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"BuyFailView.js","sourceRoot":"","sources":["../../src/view/BuyFailView.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAA0B,+BAAY;IAErC,qBAAmB,MAAoB;QAAvC,YACC,iBAAO,SAGP;QAFA,KAAI,CAAC,UAAU,GAAG,MAAM,CAAC;QACzB,KAAI,CAAC,IAAI,EAAE,CAAC;;IACb,CAAC;IAEO,0BAAI,GAAZ;QAAA,iBAaC;QAZA,IAAI,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;QAChE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACvB,OAAO,CAAC,KAAK,GAAG,GAAG,CAAC;QACpB,OAAO,CAAC,MAAM,GAAG,GAAG,CAAC;QACrB,OAAO,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QACxC,OAAO,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QAExC,IAAI,KAAK,GAAG,UAAU,CAAC;YACtB,EAAE,CAAA,CAAC,KAAI,CAAC,MAAM,CAAC,CAAA,CAAC;gBACf,KAAI,CAAC,UAAU,CAAC,WAAW,CAAC,KAAI,CAAC,CAAC;YACnC,CAAC;QACF,CAAC,EAAE,IAAI,CAAC,CAAC;IACV,CAAC;IACF,kBAAC;AAAD,CAAC,AAtBD,CAA0B,KAAK,CAAC,MAAM,GAsBrC;AAtBK,UAAA,WAAW,0BAsBhB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/GameBackground.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"GameBackground.js","sourceRoot":"","sources":["../../src/view/GameBackground.ts"],"names":[],"mappings":"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"}
--------------------------------------------------------------------------------
/bin-debug/view/HomeBtnsView.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var HomeBtnsView = (function (_super) {
15 | __extends(HomeBtnsView, _super);
16 | function HomeBtnsView() {
17 | var _this = _super.call(this) || this;
18 | _this.touchChildren = true;
19 | _this.init();
20 | return _this;
21 | }
22 | HomeBtnsView.prototype.init = function () {
23 | this.createChapter();
24 | this.createStore();
25 | };
26 | //章节关卡
27 | HomeBtnsView.prototype.createChapter = function () {
28 | var btn = new EnterChapterBtn("startbtn_png", 225, 85, 230, 255, null);
29 | this.addChild(btn);
30 | };
31 | HomeBtnsView.prototype.createStore = function () {
32 | var btn = new EnterStoreBtn("storebtn_png", 225, 85, 230, 400, null);
33 | this.addChild(btn);
34 | };
35 | return HomeBtnsView;
36 | }(egret.Sprite));
37 | __reflect(HomeBtnsView.prototype, "HomeBtnsView");
38 | //# sourceMappingURL=HomeBtnsView.js.map
--------------------------------------------------------------------------------
/bin-debug/view/HomeBtnsView.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"HomeBtnsView.js","sourceRoot":"","sources":["../../src/view/HomeBtnsView.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAA2B,gCAAY;IACtC;QAAA,YACC,iBAAO,SAGP;QAFA,KAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,KAAI,CAAC,IAAI,EAAE,CAAC;;IACb,CAAC;IACO,2BAAI,GAAZ;QACC,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,WAAW,EAAE,CAAC;IACpB,CAAC;IAED,MAAM;IACE,oCAAa,GAArB;QACC,IAAI,GAAG,GAAoB,IAAI,eAAe,CAAC,cAAc,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QAClF,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAGO,kCAAW,GAAnB;QACC,IAAI,GAAG,GAAkB,IAAI,aAAa,CAAC,cAAc,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QAC9E,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAEF,mBAAC;AAAD,CAAC,AAvBD,CAA2B,KAAK,CAAC,MAAM,GAuBtC;AAvBK,UAAA,YAAY,2BAuBjB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/IconView.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var IconView = (function (_super) {
15 | __extends(IconView, _super);
16 | function IconView() {
17 | var _this = _super.call(this) || this;
18 | _this.createIconView();
19 | return _this;
20 | }
21 | IconView.prototype.createIconView = function () {
22 | var label = new egret.TextField();
23 | //设置文本颜色
24 | label.textColor = 0xffff00;
25 | //设置字号
26 | label.size = 40;
27 | label.width = 260;
28 | label.height = 110;
29 | label.textAlign = 'center';
30 | label.verticalAlign = 'middle';
31 | //设置显示文本
32 | label.text = LocalStorageControl.getIcon().toString();
33 | this.addChild(label);
34 | };
35 | return IconView;
36 | }(egret.Sprite));
37 | __reflect(IconView.prototype, "IconView");
38 | //# sourceMappingURL=IconView.js.map
--------------------------------------------------------------------------------
/bin-debug/view/IconView.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"IconView.js","sourceRoot":"","sources":["../../src/view/IconView.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAuB,4BAAY;IAClC;QAAA,YACC,iBAAO,SAEP;QADA,KAAI,CAAC,cAAc,EAAE,CAAC;;IACvB,CAAC;IAEO,iCAAc,GAAtB;QACC,IAAI,KAAK,GAAmB,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;QAC5C,QAAQ;QACR,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC3B,MAAM;QACN,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC;QACtB,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;QAClB,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC;QACnB,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC3B,KAAK,CAAC,aAAa,GAAG,QAAQ,CAAC;QACzB,QAAQ;QACd,KAAK,CAAC,IAAI,GAAG,mBAAmB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC;QAChD,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAEF,eAAC;AAAD,CAAC,AArBD,CAAuB,KAAK,CAAC,MAAM,GAqBlC;AArBK,UAAA,QAAQ,uBAqBb,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/LockChapter.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var LockChapter = (function (_super) {
15 | __extends(LockChapter, _super);
16 | function LockChapter(id, w, h) {
17 | var _this = _super.call(this) || this;
18 | _this.type = "lock";
19 | _this.touchEnabled = true;
20 | _this.id = id;
21 | _this.init(w, h);
22 | return _this;
23 | }
24 | LockChapter.prototype.init = function (w, h) {
25 | var lock = GameData.stage.createBitmapByName("cadeado_png");
26 | lock.width = w;
27 | lock.height = h;
28 | this.addChild(lock);
29 | };
30 | return LockChapter;
31 | }(egret.Sprite));
32 | __reflect(LockChapter.prototype, "LockChapter");
33 | //# sourceMappingURL=LockChapter.js.map
--------------------------------------------------------------------------------
/bin-debug/view/LockChapter.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"LockChapter.js","sourceRoot":"","sources":["../../src/view/LockChapter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAA0B,+BAAY;IAGrC,qBAAmB,EAAU,EAAC,CAAQ,EAAE,CAAS;QAAjD,YACC,iBAAO,SAIP;QANM,UAAI,GAAW,MAAM,CAAC;QAG5B,KAAI,CAAC,YAAY,GAAC,IAAI,CAAC;QACvB,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,KAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;;IAChB,CAAC;IAED,0BAAI,GAAJ,UAAK,CAAQ,EAAE,CAAS;QACvB,IAAI,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;QAC5D,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;IACpB,CAAC;IACF,kBAAC;AAAD,CAAC,AAhBD,CAA0B,KAAK,CAAC,MAAM,GAgBrC;AAhBK,UAAA,WAAW,0BAgBhB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/LoseView.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var LoseView = (function (_super) {
15 | __extends(LoseView, _super);
16 | function LoseView() {
17 | var _this = _super.call(this) || this;
18 | _this.touchEnabled = true;
19 | _this.init();
20 | return _this;
21 | }
22 | LoseView.prototype.init = function () {
23 | this.createView();
24 | };
25 | LoseView.prototype.createView = function () {
26 | var bgImg = new egret.Bitmap();
27 | bgImg.width = GameData.stageW;
28 | bgImg.height = GameData.stageH;
29 | bgImg.texture = RES.getRes("lose_png");
30 | this.addChild(bgImg);
31 | this.createBtnView();
32 | };
33 | LoseView.prototype.createBtnView = function () {
34 | var backBtn = new BackBtn('exit_png', 200, 100, 100, GameData.stageH - 400, 'Chapter');
35 | this.addChild(backBtn);
36 | var againBtn = new BackBtn('again_png', 200, 100, 300, GameData.stageH - 400, 'Game');
37 | this.addChild(againBtn);
38 | };
39 | return LoseView;
40 | }(egret.Sprite));
41 | __reflect(LoseView.prototype, "LoseView");
42 | //# sourceMappingURL=LoseView.js.map
--------------------------------------------------------------------------------
/bin-debug/view/LoseView.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"LoseView.js","sourceRoot":"","sources":["../../src/view/LoseView.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAuB,4BAAY;IAClC;QAAA,YACC,iBAAO,SAGP;QAFA,KAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,KAAI,CAAC,IAAI,EAAE,CAAC;;IACb,CAAC;IAED,uBAAI,GAAJ;QACC,IAAI,CAAC,UAAU,EAAE,CAAC;IACnB,CAAC;IAEO,6BAAU,GAAlB;QACC,IAAI,KAAK,GAAgB,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;QAC5C,KAAK,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC9B,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QACzB,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC3B,IAAI,CAAC,aAAa,EAAE,CAAC;IACtB,CAAC;IAEO,gCAAa,GAArB;QACC,IAAM,OAAO,GAAG,IAAI,OAAO,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,CAAC,MAAM,GAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QACvF,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACvB,IAAM,QAAQ,GAAG,IAAI,OAAO,CAAC,WAAW,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,CAAC,MAAM,GAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QACtF,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC;IAEF,eAAC;AAAD,CAAC,AA3BD,CAAuB,KAAK,CAAC,MAAM,GA2BlC;AA3BK,UAAA,QAAQ,uBA2Bb,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/PassView.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var PassView = (function (_super) {
15 | __extends(PassView, _super);
16 | function PassView() {
17 | var _this = _super.call(this) || this;
18 | _this.touchEnabled = true;
19 | _this.init();
20 | return _this;
21 | }
22 | PassView.prototype.init = function () {
23 | this.createView();
24 | };
25 | PassView.prototype.createView = function () {
26 | var bgImg = new egret.Bitmap();
27 | bgImg.texture = RES.getRes("win_png");
28 | bgImg.height = GameData.stageH;
29 | bgImg.width = GameData.stageW;
30 | this.addChild(bgImg);
31 | this.createBtnView();
32 | };
33 | PassView.prototype.createBtnView = function () {
34 | var backBtn = new BackBtn('exit_png', 200, 100, 100, GameData.stageH - 400, 'Chapter');
35 | this.addChild(backBtn);
36 | var againBtn = new BackBtn('next_png', 200, 100, 300, GameData.stageH - 400, 'Game');
37 | this.addChild(againBtn);
38 | };
39 | return PassView;
40 | }(egret.Sprite));
41 | __reflect(PassView.prototype, "PassView");
42 | //# sourceMappingURL=PassView.js.map
--------------------------------------------------------------------------------
/bin-debug/view/PassView.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"PassView.js","sourceRoot":"","sources":["../../src/view/PassView.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAuB,4BAAY;IAClC;QAAA,YACC,iBAAO,SAGP;QAFA,KAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,KAAI,CAAC,IAAI,EAAE,CAAC;;IACb,CAAC;IAED,uBAAI,GAAJ;QACC,IAAI,CAAC,UAAU,EAAE,CAAC;IACnB,CAAC;IAEO,6BAAU,GAAlB;QACC,IAAI,KAAK,GAAgB,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC/B,KAAK,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;QACxB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC3B,IAAI,CAAC,aAAa,EAAE,CAAC;IACtB,CAAC;IACO,gCAAa,GAArB;QACC,IAAM,OAAO,GAAG,IAAI,OAAO,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,CAAC,MAAM,GAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QACvF,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACvB,IAAM,QAAQ,GAAG,IAAI,OAAO,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,CAAC,MAAM,GAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QACrF,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC;IAEF,eAAC;AAAD,CAAC,AA1BD,CAAuB,KAAK,CAAC,MAAM,GA0BlC;AA1BK,UAAA,QAAQ,uBA0Bb,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/PropViews.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var PropViews = (function (_super) {
15 | __extends(PropViews, _super);
16 | function PropViews() {
17 | var _this = _super.call(this) || this;
18 | _this.init();
19 | return _this;
20 | }
21 | PropViews.prototype.init = function () {
22 | this.createProps();
23 | };
24 | PropViews.prototype.createProps = function () {
25 | var girdSize = (GameData.stageW - 160) / 3;
26 | //提示道具
27 | var promptView = new BasePropsElements(0, "prompt_png", girdSize);
28 | promptView.y = GameData.stageH - girdSize - 30;
29 | promptView.x = 40;
30 | this.addChild(promptView);
31 | //暂停时间道具
32 | var stopTimeView = new BasePropsElements(1, "pause_png", girdSize);
33 | stopTimeView.y = GameData.stageH - girdSize - 30;
34 | stopTimeView.x = 80 + girdSize;
35 | this.addChild(stopTimeView);
36 | //重新开具道具
37 | var resetView = new BasePropsElements(2, "reset_png", girdSize);
38 | resetView.y = GameData.stageH - girdSize - 30;
39 | resetView.x = 120 + girdSize * 2;
40 | this.addChild(resetView);
41 | //重新开具道具
42 | };
43 | return PropViews;
44 | }(egret.Sprite));
45 | __reflect(PropViews.prototype, "PropViews");
46 | //# sourceMappingURL=PropViews.js.map
--------------------------------------------------------------------------------
/bin-debug/view/PropViews.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"PropViews.js","sourceRoot":"","sources":["../../src/view/PropViews.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAwB,6BAAY;IACnC;QAAA,YACC,iBAAO,SAEP;QADA,KAAI,CAAC,IAAI,EAAE,CAAC;;IACb,CAAC;IAEO,wBAAI,GAAZ;QACC,IAAI,CAAC,WAAW,EAAE,CAAC;IACpB,CAAC;IAEO,+BAAW,GAAnB;QACC,IAAM,QAAQ,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC,GAAE,CAAC,CAAA;QAC3C,MAAM;QACN,IAAM,UAAU,GAAG,IAAI,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;QACpE,UAAU,CAAC,CAAC,GAAE,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,EAAE,CAAC;QAC9C,UAAU,CAAC,CAAC,GAAE,EAAE,CAAC;QACjB,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAE1B,QAAQ;QACR,IAAM,YAAY,GAAG,IAAI,iBAAiB,CAAC,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;QACrE,YAAY,CAAC,CAAC,GAAE,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,EAAE,CAAC;QAChD,YAAY,CAAC,CAAC,GAAE,EAAE,GAAG,QAAQ,CAAA;QAC7B,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAE5B,QAAQ;QACR,IAAM,SAAS,GAAG,IAAI,iBAAiB,CAAC,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;QAClE,SAAS,CAAC,CAAC,GAAE,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,EAAE,CAAC;QAC7C,SAAS,CAAC,CAAC,GAAE,GAAG,GAAG,QAAQ,GAAG,CAAC,CAAC;QAChC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAEzB,QAAQ;IAET,CAAC;IAEF,gBAAC;AAAD,CAAC,AAlCD,CAAwB,KAAK,CAAC,MAAM,GAkCnC;AAlCK,UAAA,SAAS,wBAkCd,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/PropsShopItem.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"PropsShopItem.js","sourceRoot":"","sources":["../../src/view/PropsShopItem.ts"],"names":[],"mappings":"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"}
--------------------------------------------------------------------------------
/bin-debug/view/ResultView.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var ResultView = (function (_super) {
15 | __extends(ResultView, _super);
16 | function ResultView(result) {
17 | var _this = _super.call(this) || this;
18 | _this.init(result);
19 | return _this;
20 | }
21 | ResultView.prototype.init = function (result) {
22 | this.createView(result);
23 | };
24 | ResultView.prototype.createView = function (result) {
25 | var rv;
26 | if (result) {
27 | rv = new PassView();
28 | }
29 | else {
30 | rv = new LoseView();
31 | }
32 | this.addChild(rv);
33 | };
34 | ResultView.prototype.update = function () {
35 | };
36 | return ResultView;
37 | }(egret.Sprite));
38 | __reflect(ResultView.prototype, "ResultView");
39 | //# sourceMappingURL=ResultView.js.map
--------------------------------------------------------------------------------
/bin-debug/view/ResultView.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"ResultView.js","sourceRoot":"","sources":["../../src/view/ResultView.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAyB,8BAAY;IAEpC,oBAAmB,MAAe;QAAlC,YACC,iBAAO,SAEP;QADA,KAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;;IAClB,CAAC;IAED,yBAAI,GAAJ,UAAK,MAAe;QACnB,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAED,+BAAU,GAAV,UAAW,MAAe;QACzB,IAAI,EAAgB,CAAC;QACrB,EAAE,CAAA,CAAC,MAAM,CAAC,CAAA,CAAC;YACV,EAAE,GAAG,IAAI,QAAQ,EAAE,CAAC;QACrB,CAAC;QAAA,IAAI,CAAA,CAAC;YACL,EAAE,GAAG,IAAI,QAAQ,EAAE,CAAC;QACrB,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnB,CAAC;IAED,2BAAM,GAAN;IAEA,CAAC;IACF,iBAAC;AAAD,CAAC,AAxBD,CAAyB,KAAK,CAAC,MAAM,GAwBpC;AAxBK,UAAA,UAAU,yBAwBf,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/UnLockChapter.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var UnLockChapter = (function (_super) {
15 | __extends(UnLockChapter, _super);
16 | function UnLockChapter(id, w, h) {
17 | var _this = _super.call(this) || this;
18 | _this.type = "unlock";
19 | _this.touchEnabled = true;
20 | _this.id = id;
21 | _this.init(w, h);
22 | return _this;
23 | }
24 | UnLockChapter.prototype.init = function (w, h) {
25 | var unlock = GameData.stage.createBitmapByName("unlock_png");
26 | unlock.width = w;
27 | unlock.height = h;
28 | this.addChild(unlock);
29 | //创建 TextField 对象
30 | var label = new egret.TextField();
31 | //设置文本颜色
32 | label.textColor = 0xffffff;
33 | //设置字号
34 | label.size = 40;
35 | label.bold = true;
36 | label.stroke = 2;
37 | label.width = w;
38 | label.height = h;
39 | label.strokeColor = 0x000000;
40 | label.textAlign = 'center';
41 | label.verticalAlign = 'middle';
42 | //设置显示文本
43 | label.text = this.id.toString();
44 | //添加到显示列表
45 | this.addChild(label);
46 | };
47 | return UnLockChapter;
48 | }(egret.Sprite));
49 | __reflect(UnLockChapter.prototype, "UnLockChapter");
50 | //# sourceMappingURL=UnLockChapter.js.map
--------------------------------------------------------------------------------
/bin-debug/view/UnLockChapter.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"UnLockChapter.js","sourceRoot":"","sources":["../../src/view/UnLockChapter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAA4B,iCAAY;IAGvC,uBAAmB,EAAS,EAAE,CAAQ,EAAE,CAAS;QAAjD,YACC,iBAAO,SAIP;QANM,UAAI,GAAW,QAAQ,CAAC;QAG9B,KAAI,CAAC,YAAY,GAAC,IAAI,CAAC;QACvB,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,KAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;;IAChB,CAAC;IAED,4BAAI,GAAJ,UAAK,CAAQ,EAAE,CAAS;QACvB,IAAI,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;QAC7D,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;QACjB,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAChB,iBAAiB;QACjB,IAAI,KAAK,GAAmB,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;QAClD,QAAQ;QACR,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC3B,MAAM;QACN,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC;QACtB,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;QAClB,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QACjB,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC;QAChB,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QACjB,KAAK,CAAC,WAAW,GAAG,QAAQ,CAAC;QAC7B,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC3B,KAAK,CAAC,aAAa,GAAG,QAAQ,CAAC;QACzB,QAAQ;QACd,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;QAC1B,SAAS;QACT,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IACF,oBAAC;AAAD,CAAC,AAjCD,CAA4B,KAAK,CAAC,MAAM,GAiCvC;AAjCK,UAAA,aAAa,4BAiClB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/btn/BackBtn.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var BackBtn = (function (_super) {
15 | __extends(BackBtn, _super);
16 | function BackBtn() {
17 | return _super !== null && _super.apply(this, arguments) || this;
18 | }
19 | BackBtn.prototype.do = function (sceen) {
20 | switch (sceen) {
21 | case "Home":
22 | SceenControl.loadHome();
23 | break;
24 | case "Chapter":
25 | SceenControl.loadChapter();
26 | break;
27 | case "Game":
28 | SceenControl.loadGame(LocalStorageControl.getChapter());
29 | break;
30 | }
31 | };
32 | return BackBtn;
33 | }(BaseBtn));
34 | __reflect(BackBtn.prototype, "BackBtn");
35 | //# sourceMappingURL=BackBtn.js.map
--------------------------------------------------------------------------------
/bin-debug/view/btn/BackBtn.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"BackBtn.js","sourceRoot":"","sources":["../../../src/view/btn/BackBtn.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAsB,2BAAO;IAA7B;;IAgBA,CAAC;IAdO,oBAAE,GAAT,UAAU,KAAa;QACtB,MAAM,CAAC,CAAC,KAAK,CAAC,CAAA,CAAC;YACd,KAAK,MAAM;gBACV,YAAY,CAAC,QAAQ,EAAE,CAAC;gBACxB,KAAK,CAAC;YACP,KAAK,SAAS;gBACb,YAAY,CAAC,WAAW,EAAE,CAAC;gBAC3B,KAAK,CAAC;YACP,KAAK,MAAM;gBACV,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,UAAU,EAAE,CAAC,CAAC;gBACxD,KAAK,CAAC;QAER,CAAC;IACF,CAAC;IACF,cAAC;AAAD,CAAC,AAhBD,CAAsB,OAAO,GAgB5B;AAhBK,UAAA,OAAO,sBAgBZ,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/btn/BaseBtn.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var BaseBtn = (function (_super) {
15 | __extends(BaseBtn, _super);
16 | function BaseBtn(bitmap, w, h, x, y, args) {
17 | var _this = _super.call(this) || this;
18 | _this.args = args;
19 | _this.bitmap = bitmap;
20 | _this.touchEnabled = true;
21 | _this.init(w, h, x, y);
22 | return _this;
23 | }
24 | BaseBtn.prototype.init = function (w, h, x, y) {
25 | var btn = GameData.stage.createBitmapByName(this.bitmap);
26 | this.addChild(btn);
27 | btn.width = w;
28 | btn.height = h;
29 | btn.x = x;
30 | btn.y = y;
31 | this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.removeEvent, this);
32 | };
33 | //这段需要覆盖,没覆盖就报错
34 | BaseBtn.prototype.do = function (args) {
35 | throw new egret.error();
36 | };
37 | BaseBtn.prototype.removeEvent = function () {
38 | this.do(this.args);
39 | this.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.removeEvent, this);
40 | };
41 | return BaseBtn;
42 | }(egret.Sprite));
43 | __reflect(BaseBtn.prototype, "BaseBtn");
44 | //# sourceMappingURL=BaseBtn.js.map
--------------------------------------------------------------------------------
/bin-debug/view/btn/BaseBtn.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"BaseBtn.js","sourceRoot":"","sources":["../../../src/view/btn/BaseBtn.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAsB,2BAAY;IAGjC,iBAAmB,MAAc,EAAE,CAAQ,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAC,IAAS;QAAtF,YACC,iBAAO,SAKP;QAJA,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,KAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,KAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;;IACvB,CAAC;IAEO,sBAAI,GAAZ,UAAa,CAAQ,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;QACrD,IAAI,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QACnB,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;QACd,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;QACf,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QACV,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QACV,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,EAAC,IAAI,CAAC,WAAW,EAAC,IAAI,CAAC,CAAC;IACzE,CAAC;IAED,eAAe;IACL,oBAAE,GAAZ,UAAa,IAAQ;QACpB,MAAM,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;IAGO,6BAAW,GAAnB;QACC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,EAAC,IAAI,CAAC,WAAW,EAAC,IAAI,CAAC,CAAC;IAC5E,CAAC;IACF,cAAC;AAAD,CAAC,AA/BD,CAAsB,KAAK,CAAC,MAAM,GA+BjC;AA/BK,UAAA,OAAO,sBA+BZ,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/btn/BuyBtn.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var BuyBtn = (function (_super) {
15 | __extends(BuyBtn, _super);
16 | function BuyBtn(type) {
17 | var _this = _super.call(this) || this;
18 | _this.touchEnabled = true;
19 | _this.type = type;
20 | _this.init();
21 | return _this;
22 | }
23 | BuyBtn.prototype.init = function () {
24 | var btn = GameData.stage.createBitmapByName("buy_png");
25 | this.addChild(btn);
26 | btn.width = 100;
27 | btn.height = 50;
28 | this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.do, this);
29 | };
30 | BuyBtn.prototype.do = function () {
31 | if (this.checkIcon()) {
32 | LocalStorageControl.addPropsItemNum(this.type);
33 | LocalStorageControl.useIcon(PropsPrice[this.type]);
34 | SceenControl.loadStore();
35 | }
36 | else {
37 | var bfv = new BuyFailView(GameData.sceen);
38 | GameData.sceen.addChild(bfv);
39 | }
40 | };
41 | BuyBtn.prototype.checkIcon = function () {
42 | return (LocalStorageControl.getIcon() >= PropsPrice[this.type]);
43 | };
44 | return BuyBtn;
45 | }(egret.Sprite));
46 | __reflect(BuyBtn.prototype, "BuyBtn");
47 | //# sourceMappingURL=BuyBtn.js.map
--------------------------------------------------------------------------------
/bin-debug/view/btn/BuyBtn.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"BuyBtn.js","sourceRoot":"","sources":["../../../src/view/btn/BuyBtn.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAqB,0BAAY;IAEhC,gBAAY,IAAI;QAAhB,YACC,iBAAO,SAIP;QAHA,KAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,IAAI,EAAE,CAAC;;IACb,CAAC;IACD,qBAAI,GAAJ;QACC,IAAI,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;QACvD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QACnB,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC;QAChB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,EAAC,IAAI,CAAC,EAAE,EAAC,IAAI,CAAC,CAAC;IAChE,CAAC;IAEO,mBAAE,GAAV;QACC,EAAE,CAAA,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAA,CAAC;YACpB,mBAAmB,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/C,mBAAmB,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACnD,YAAY,CAAC,SAAS,EAAE,CAAC;QAC1B,CAAC;QAAA,IAAI,CAAA,CAAC;YACL,IAAI,GAAG,GAAG,IAAI,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC1C,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC9B,CAAC;IACF,CAAC;IAEO,0BAAS,GAAjB;QACC,MAAM,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAChE,CAAC;IACF,aAAC;AAAD,CAAC,AA9BD,CAAqB,KAAK,CAAC,MAAM,GA8BhC;AA9BK,UAAA,MAAM,qBA8BX,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/btn/EnterChapterBtn.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var EnterChapterBtn = (function (_super) {
15 | __extends(EnterChapterBtn, _super);
16 | function EnterChapterBtn() {
17 | return _super !== null && _super.apply(this, arguments) || this;
18 | }
19 | EnterChapterBtn.prototype.do = function () {
20 | SceenControl.loadChapter();
21 | };
22 | return EnterChapterBtn;
23 | }(BaseBtn));
24 | __reflect(EnterChapterBtn.prototype, "EnterChapterBtn");
25 | //# sourceMappingURL=EnterChapterBtn.js.map
--------------------------------------------------------------------------------
/bin-debug/view/btn/EnterChapterBtn.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"EnterChapterBtn.js","sourceRoot":"","sources":["../../../src/view/btn/EnterChapterBtn.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAA8B,mCAAO;IAArC;;IAIA,CAAC;IAHU,4BAAE,GAAZ;QACC,YAAY,CAAC,WAAW,EAAE,CAAC;IAC5B,CAAC;IACF,sBAAC;AAAD,CAAC,AAJD,CAA8B,OAAO,GAIpC;AAJK,UAAA,eAAe,8BAIpB,CAAA"}
--------------------------------------------------------------------------------
/bin-debug/view/btn/EnterStoreBtn.js:
--------------------------------------------------------------------------------
1 | var __reflect = (this && this.__reflect) || function (p, c, t) {
2 | p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
3 | };
4 | var __extends = (this && this.__extends) || (function () {
5 | var extendStatics = Object.setPrototypeOf ||
6 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8 | return function (d, b) {
9 | extendStatics(d, b);
10 | function __() { this.constructor = d; }
11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 | };
13 | })();
14 | var EnterStoreBtn = (function (_super) {
15 | __extends(EnterStoreBtn, _super);
16 | function EnterStoreBtn() {
17 | return _super !== null && _super.apply(this, arguments) || this;
18 | }
19 | EnterStoreBtn.prototype.do = function () {
20 | SceenControl.loadStore();
21 | };
22 | return EnterStoreBtn;
23 | }(BaseBtn));
24 | __reflect(EnterStoreBtn.prototype, "EnterStoreBtn");
25 | //# sourceMappingURL=EnterStoreBtn.js.map
--------------------------------------------------------------------------------
/bin-debug/view/btn/EnterStoreBtn.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"EnterStoreBtn.js","sourceRoot":"","sources":["../../../src/view/btn/EnterStoreBtn.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAA4B,iCAAO;IAAnC;;IAIA,CAAC;IAHU,0BAAE,GAAZ;QACC,YAAY,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;IACF,oBAAC;AAAD,CAAC,AAJD,CAA4B,OAAO,GAIlC;AAJK,UAAA,aAAa,4BAIlB,CAAA"}
--------------------------------------------------------------------------------
/bin-release/web/1.0/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/bin-release/web/1.0/favicon.ico
--------------------------------------------------------------------------------
/bin-release/web/1.0/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "initial": [
3 | "libs/modules/egret/egret.min.js",
4 | "libs/modules/egret/egret.web.min.js",
5 | "libs/modules/eui/eui.min.js",
6 | "libs/modules/res/res.min.js",
7 | "libs/modules/tween/tween.min.js",
8 | "libs/modules/game/game.min.js",
9 | "promise/bin/promise.min.js"
10 | ],
11 | "game": [
12 | "main.min.js"
13 | ]
14 | }
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/assets/myPic/back_btn_1b7ac93e.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/bin-release/web/1.0/resource/assets/myPic/back_btn_1b7ac93e.jpg
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/assets/myPic/back_btn_2e9dafee.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/bin-release/web/1.0/resource/assets/myPic/back_btn_2e9dafee.png
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/assets/myPic/buy_fail_39bd630e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/bin-release/web/1.0/resource/assets/myPic/buy_fail_39bd630e.png
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/assets/myPic/buy_fail_52315dbe.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/bin-release/web/1.0/resource/assets/myPic/buy_fail_52315dbe.jpg
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/assets/myPic/linkgame.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/bin-release/web/1.0/resource/assets/myPic/linkgame.psd
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/assets/myPic/store_2a547bc5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/bin-release/web/1.0/resource/assets/myPic/store_2a547bc5.jpg
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/assets/myPic/store_563a2b41.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/bin-release/web/1.0/resource/assets/myPic/store_563a2b41.png
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/config/description_2e5ca871.json:
--------------------------------------------------------------------------------
1 | [
2 | "Open-source,Free,Multi-platform",
3 | "Push Game Forward",
4 | "HTML5 Game Engine"
5 | ]
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/default.res.json:
--------------------------------------------------------------------------------
1 | {"groups":[{"keys":"checkbox_select_disabled_png,checkbox_select_down_png,checkbox_select_up_png,checkbox_unselect_png,selected_png,border_png,header_png,radiobutton_select_disabled_png,radiobutton_select_down_png,radiobutton_select_up_png,radiobutton_unselect_png,roundthumb_png,thumb_png,track_png,tracklight_png,handle_png,off_png,on_png,button_down_png,button_up_png,thumb_pb_png,track_pb_png,track_sb_png,egret_icon_png,description_json,cat_jpg,defaultBg_png,e0_png,e1_png,e2_png,e3_png,e4_png,e5_png,homebg_png,level1_jpg,n0_png,n1_png,n2_png,n3_png,n4_png,n5_png,n6_png,n7_png,n8_png,n9_png,start_jpg,timer_png,yellowbtn_jpg,chapterMap_json,chapter_sceen_jpg,cadeado_png,back_btn_jpg,store_jpg,okbtn_jpg,buy_png,buy_fail_jpg,startbtn_png,storebtn_png,back_btn_png,unlock_png,gameBg_png,prompt_png,reset_png,pause_png,lose_png,exit_png,next_png,win_png,again_png,store_png,buy_fail_png","name":"preload"}],"resources":[{"url":"config/description_2e5ca871.json","type":"json","name":"description_json"},{"url":"chapterMap_60cc5b81.json","type":"json","name":"chapterMap_json"},{"url":"assets/myPic/back_btn_1b7ac93e.jpg","type":"image","name":"back_btn_jpg"},{"url":"assets/myPic/store_2a547bc5.jpg","type":"image","name":"store_jpg"},{"url":"assets/myPic/buy_fail_52315dbe.jpg","type":"image","name":"buy_fail_jpg"},{"url":"assets/myPic/back_btn_2e9dafee.png","type":"image","name":"back_btn_png"},{"url":"assets/myPic/store_563a2b41.png","type":"image","name":"store_png"},{"url":"assets/myPic/buy_fail_39bd630e.png","type":"image","name":"buy_fail_png"},{"url":"packs0/preload-0sheet_4c46e080.json","type":"sheet","name":"preload-0sheet","subkeys":"lose_png,gameBg_png"},{"url":"packs0/preload-1sheet_59310684.json","type":"sheet","name":"preload-1sheet","subkeys":"yellowbtn_jpg,win_png,unlock_png,tracklight_png,track_sb_png,track_png,track_pb_png,timer_png,thumb_png,thumb_pb_png,storebtn_png,startbtn_png,start_jpg,selected_png,roundthumb_png,reset_png,radiobutton_unselect_png,radiobutton_select_up_png,radiobutton_select_down_png,radiobutton_select_disabled_png,prompt_png,pause_png,on_png,okbtn_jpg,off_png,next_png,n9_png,n8_png,n7_png,n6_png,n5_png,n4_png,n3_png,n2_png,n1_png,n0_png,level1_jpg,homebg_png,header_png,handle_png,exit_png,egret_icon_png,e5_png,e4_png,e3_png,e2_png,e1_png,e0_png,defaultBg_png,checkbox_unselect_png,checkbox_select_up_png,checkbox_select_down_png,checkbox_select_disabled_png,chapter_sceen_jpg,cat_jpg,cadeado_png,buy_png,button_up_png,button_down_png,border_png,again_png"}]}
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/ButtonSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/CheckBoxSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/HScrollBarSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/HSliderSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/ItemRendererSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/PanelSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/ProgressBarSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/RadioButtonSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/ScrollerSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/TextInputSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
9 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/ToggleSwitchSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
13 |
14 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/VScrollBarSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/eui_skins/VSliderSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/packs0/preload-0sheet_4c46e080.json:
--------------------------------------------------------------------------------
1 | {"frames":{"gameBg_png":{"x":1,"y":1,"w":1080,"h":1920,"offX":0,"offY":0,"sourceW":1080,"sourceH":1920},"lose_png":{"x":1083,"y":1,"w":650,"h":1157,"offX":0,"offY":0,"sourceW":650,"sourceH":1157}},"file":"preload-0sheet_6f3a26a9.png"}
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/packs0/preload-0sheet_6f3a26a9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/bin-release/web/1.0/resource/packs0/preload-0sheet_6f3a26a9.png
--------------------------------------------------------------------------------
/bin-release/web/1.0/resource/packs0/preload-1sheet_2dff0d28.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/bin-release/web/1.0/resource/packs0/preload-1sheet_2dff0d28.png
--------------------------------------------------------------------------------
/egretProperties.json:
--------------------------------------------------------------------------------
1 | {
2 | "native": {
3 | "path_ignore": [],
4 | "android_path": "H:/project/linkgameapp",
5 | "android_as_path": "linkgame"
6 | },
7 | "publish": {
8 | "web": 0,
9 | "native": 1,
10 | "path": "bin-release"
11 | },
12 | "egret_version": "5.0.12",
13 | "template": {},
14 | "eui": {
15 | "exmlRoot": [
16 | "resource/eui_skins"
17 | ],
18 | "themes": [
19 | "resource/default.thm.json"
20 | ],
21 | "exmlPublishPolicy": "content"
22 | },
23 | "modules": [
24 | {
25 | "name": "egret"
26 | },
27 | {
28 | "name": "eui"
29 | },
30 | {
31 | "name": "res"
32 | },
33 | {
34 | "name": "tween"
35 | },
36 | {
37 | "name": "game"
38 | },
39 | {
40 | "name": "promise",
41 | "path": "./promise"
42 | }
43 | ]
44 | }
--------------------------------------------------------------------------------
/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/favicon.ico
--------------------------------------------------------------------------------
/libs/exml.e.d.ts:
--------------------------------------------------------------------------------
1 | declare module skins{
2 | class ButtonSkin extends eui.Skin{
3 | }
4 | }
5 | declare module skins{
6 | class CheckBoxSkin extends eui.Skin{
7 | }
8 | }
9 | declare module skins{
10 | class HScrollBarSkin extends eui.Skin{
11 | }
12 | }
13 | declare module skins{
14 | class HSliderSkin extends eui.Skin{
15 | }
16 | }
17 | declare module skins{
18 | class ItemRendererSkin extends eui.Skin{
19 | }
20 | }
21 | declare module skins{
22 | class PanelSkin extends eui.Skin{
23 | }
24 | }
25 | declare module skins{
26 | class ProgressBarSkin extends eui.Skin{
27 | }
28 | }
29 | declare module skins{
30 | class RadioButtonSkin extends eui.Skin{
31 | }
32 | }
33 | declare module skins{
34 | class ScrollerSkin extends eui.Skin{
35 | }
36 | }
37 | declare module skins{
38 | class TextInputSkin extends eui.Skin{
39 | }
40 | }
41 | declare module skins{
42 | class ToggleSwitchSkin extends eui.Skin{
43 | }
44 | }
45 | declare module skins{
46 | class VScrollBarSkin extends eui.Skin{
47 | }
48 | }
49 | declare module skins{
50 | class VSliderSkin extends eui.Skin{
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/linkgame/proj.android/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /.idea/workspace.xml
4 | /.idea/libraries
5 | .DS_Store
6 | /build
7 | /captures
8 | /assets
9 |
--------------------------------------------------------------------------------
/linkgame/proj.android/.idea/.name:
--------------------------------------------------------------------------------
1 | proj.android
--------------------------------------------------------------------------------
/linkgame/proj.android/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/linkgame/proj.android/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/linkgame/proj.android/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/linkgame/proj.android/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
19 |
--------------------------------------------------------------------------------
/linkgame/proj.android/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/linkgame/proj.android/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/linkgame/proj.android/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 26
5 | buildToolsVersion "23.0.1"
6 |
7 | defaultConfig {
8 | applicationId "org.egret.java.linkgame"
9 | minSdkVersion 14
10 | targetSdkVersion 26
11 | versionCode 1
12 | versionName "1.0"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 |
21 | sourceSets{
22 | main{
23 | assets.srcDirs = ['../assets']
24 | jniLibs.srcDirs=['libs']
25 | }
26 | }
27 |
28 | useLibrary 'org.apache.http.legacy'
29 | }
30 |
31 | dependencies {
32 | compile fileTree(dir: 'libs', include: ['*.jar'])
33 | testCompile 'junit:junit:4.12'
34 | compile 'com.android.support:appcompat-v7:19.+'
35 | }
36 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/libs/arm64-v8a/libegret.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/libs/arm64-v8a/libegret.so
--------------------------------------------------------------------------------
/linkgame/proj.android/app/libs/armeabi-v7a/libegret.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/libs/armeabi-v7a/libegret.so
--------------------------------------------------------------------------------
/linkgame/proj.android/app/libs/armeabi/libegret.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/libs/armeabi/libegret.so
--------------------------------------------------------------------------------
/linkgame/proj.android/app/libs/egret.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/libs/egret.jar
--------------------------------------------------------------------------------
/linkgame/proj.android/app/libs/x86/libegret.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/libs/x86/libegret.so
--------------------------------------------------------------------------------
/linkgame/proj.android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in C:\Users\renren\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/androidTest/java/org/egret/java/linkgame/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package org.egret.java.linkgame;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | linkgame
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.source=1.6
5 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
13 |
20 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
37 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
13 |
20 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
37 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/classes.dex:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/classes.dex
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/BuildConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/BuildConfig.class
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$attr.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$attr.class
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$color.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$color.class
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$dimen.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$dimen.class
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$drawable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$drawable.class
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$id.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$id.class
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$layout.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$layout.class
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$mipmap.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$mipmap.class
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$string.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$string.class
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$style.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R$style.class
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/classes/org/egret/java/linkgame/R.class
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/linkgame.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/linkgame.apk
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/res/crunch/drawable/splash_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/res/crunch/drawable/splash_img.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-hdpi/splash_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-hdpi/splash_img.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-mdpi/splash_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-mdpi/splash_img.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-xhdpi/splash_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-xhdpi/splash_img.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-xxhdpi/splash_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-xxhdpi/splash_img.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-xxxhdpi/splash_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/res/crunch/mipmap-xxxhdpi/splash_img.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/bin/resources.ap_:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/bin/resources.ap_
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/gen/org/egret/java/linkgame/BuildConfig.java:
--------------------------------------------------------------------------------
1 | /** Automatically generated file. DO NOT MODIFY */
2 | package org.egret.java.linkgame;
3 |
4 | public final class BuildConfig {
5 | public final static boolean DEBUG = true;
6 | }
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/gen/org/egret/java/linkgame/R.java:
--------------------------------------------------------------------------------
1 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
2 | *
3 | * This class was automatically generated by the
4 | * aapt tool from the resource data it found. It
5 | * should not be modified by hand.
6 | */
7 |
8 | package org.egret.java.linkgame;
9 |
10 | public final class R {
11 | public static final class attr {
12 | }
13 | public static final class color {
14 | public static final int colorAccent=0x7f050002;
15 | public static final int colorPrimary=0x7f050000;
16 | public static final int colorPrimaryDark=0x7f050001;
17 | public static final int gray=0x7f050003;
18 | }
19 | public static final class dimen {
20 | /** Default screen margins, per the Android Design guidelines.
21 | Example customization of dimensions originally defined in res/values/dimens.xml
22 | (such as screen margins) for screens with more than 820dp of available width. This
23 | would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively).
24 | */
25 | public static final int activity_horizontal_margin=0x7f060000;
26 | public static final int activity_vertical_margin=0x7f060001;
27 | }
28 | public static final class drawable {
29 | public static final int splash_img=0x7f020000;
30 | public static final int splash_layer_list=0x7f020001;
31 | }
32 | public static final class id {
33 | public static final int bar=0x7f090000;
34 | }
35 | public static final class layout {
36 | public static final int activity_main=0x7f040000;
37 | public static final int loading_view=0x7f040001;
38 | }
39 | public static final class mipmap {
40 | public static final int ic_launcher=0x7f030000;
41 | public static final int splash_img=0x7f030001;
42 | }
43 | public static final class string {
44 | public static final int app_name=0x7f070000;
45 | public static final int game_option=0x7f070002;
46 | public static final int title_activity_splash=0x7f070001;
47 | }
48 | public static final class style {
49 | public static final int FullscreenTheme=0x7f080000;
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/java/org/egret/java/linkgame/GameLoadingView.java:
--------------------------------------------------------------------------------
1 | package org.egret.java.linkgame;
2 |
3 | import android.content.Context;
4 | import android.widget.FrameLayout;
5 | import android.widget.ProgressBar;
6 | import android.widget.TextView;
7 |
8 | public class GameLoadingView extends FrameLayout {
9 |
10 | private ProgressBar bar;
11 | private TextView tv;
12 |
13 | /**
14 | * 游戏下载进度条 上线前请替换渠道自定制进度条
15 | *
16 | * @param context
17 | */
18 | public GameLoadingView(Context context) {
19 | super(context);
20 |
21 | tv = new TextView(context);
22 | tv.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
23 | LayoutParams.WRAP_CONTENT));
24 | tv.setText("Game Loading...");
25 | this.addView(tv);
26 |
27 | bar = new ProgressBar(context, null,
28 | android.R.attr.progressBarStyleHorizontal);
29 | this.addView(bar);
30 | }
31 |
32 | public void onProgress(float progress) {
33 | bar.setProgress((int) progress);
34 | }
35 |
36 | public void onGameZipUpdateProgress(float percent) {
37 | bar.setProgress((int) percent);
38 | }
39 |
40 | public void onGameZipUpdateError() {
41 |
42 | }
43 |
44 | public void onGameZipUpdateSuccess() {
45 |
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-20
15 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/drawable/splash_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/res/drawable/splash_img.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/drawable/splash_layer_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | -
7 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/layout/loading_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
13 |
14 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/mipmap-hdpi/splash_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/res/mipmap-hdpi/splash_img.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/mipmap-mdpi/splash_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/res/mipmap-mdpi/splash_img.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/mipmap-xhdpi/splash_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/res/mipmap-xhdpi/splash_img.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/mipmap-xxhdpi/splash_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/res/mipmap-xxhdpi/splash_img.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/mipmap-xxxhdpi/splash_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/app/src/main/res/mipmap-xxxhdpi/splash_img.png
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/values-w820dp/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 | #444440
7 |
8 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | linkgame
3 | SplashActivity
4 | GameOption
5 |
6 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/linkgame/proj.android/app/src/test/java/org/egret/java/linkgame/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package org.egret.java.linkgame;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
--------------------------------------------------------------------------------
/linkgame/proj.android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.5.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/linkgame/proj.android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/linkgame/proj.android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/linkgame/proj.android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/linkgame/proj.android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Oct 21 11:34:03 PDT 2015
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
7 |
--------------------------------------------------------------------------------
/linkgame/proj.android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/linkgame/proj.android/local.properties:
--------------------------------------------------------------------------------
1 | ## This file is automatically generated by Android Studio.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file should *NOT* be checked into Version Control Systems,
5 | # as it contains information specific to your local configuration.
6 | #
7 | # Location of the SDK. This is only used by Gradle.
8 | # For customization when using a Version Control System, please read the
9 | # header note.
10 | sdk.dir=D:\\android-sdk\\android-sdk
--------------------------------------------------------------------------------
/linkgame/proj.android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "initial": [
3 | "libs/modules/egret/egret.js",
4 | "libs/modules/egret/egret.web.js",
5 | "libs/modules/eui/eui.js",
6 | "libs/modules/res/res.js",
7 | "libs/modules/tween/tween.js",
8 | "libs/modules/game/game.js",
9 | "promise/bin/promise.js"
10 | ],
11 | "game": [
12 | "bin-debug/view/btn/BaseBtn.js",
13 | "bin-debug/sceen/HomeSceen.js",
14 | "bin-debug/Main.js",
15 | "bin-debug/ThemeAdapter.js",
16 | "bin-debug/control/ChapterConfig.js",
17 | "bin-debug/control/ColorGlowFilter.js",
18 | "bin-debug/control/ConnectLogic.js",
19 | "bin-debug/control/GameEventManager.js",
20 | "bin-debug/control/LocalStorageControl.js",
21 | "bin-debug/control/PropsManager.js",
22 | "bin-debug/control/SceenControl.js",
23 | "bin-debug/data/GameData.js",
24 | "bin-debug/data/InitConfigData.js",
25 | "bin-debug/data/PropsPrice.js",
26 | "bin-debug/data/TimerData.js",
27 | "bin-debug/element/BasePropsElement.js",
28 | "bin-debug/element/GameElement.js",
29 | "bin-debug/event/GameEvent.js",
30 | "bin-debug/sceen/ChapterSceen.js",
31 | "bin-debug/sceen/GameSceen.js",
32 | "bin-debug/LoadingUI.js",
33 | "bin-debug/sceen/StoreSceen.js",
34 | "bin-debug/view/BuyFailView.js",
35 | "bin-debug/view/ElementView.js",
36 | "bin-debug/view/GameBackground.js",
37 | "bin-debug/view/GameMap.js",
38 | "bin-debug/view/HomeBtnsView.js",
39 | "bin-debug/view/IconView.js",
40 | "bin-debug/view/LockChapter.js",
41 | "bin-debug/view/LoseView.js",
42 | "bin-debug/view/PassView.js",
43 | "bin-debug/view/PropsShopItem.js",
44 | "bin-debug/view/PropViews.js",
45 | "bin-debug/view/ResultView.js",
46 | "bin-debug/view/TimerView.js",
47 | "bin-debug/view/UnLockChapter.js",
48 | "bin-debug/view/btn/BackBtn.js",
49 | "bin-debug/AssetAdapter.js",
50 | "bin-debug/view/btn/BuyBtn.js",
51 | "bin-debug/view/btn/EnterChapterBtn.js",
52 | "bin-debug/view/btn/EnterStoreBtn.js"
53 | ]
54 | }
--------------------------------------------------------------------------------
/resource/assets/Button/button_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/Button/button_down.png
--------------------------------------------------------------------------------
/resource/assets/Button/button_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/Button/button_up.png
--------------------------------------------------------------------------------
/resource/assets/CheckBox/checkbox_select_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/CheckBox/checkbox_select_disabled.png
--------------------------------------------------------------------------------
/resource/assets/CheckBox/checkbox_select_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/CheckBox/checkbox_select_down.png
--------------------------------------------------------------------------------
/resource/assets/CheckBox/checkbox_select_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/CheckBox/checkbox_select_up.png
--------------------------------------------------------------------------------
/resource/assets/CheckBox/checkbox_unselect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/CheckBox/checkbox_unselect.png
--------------------------------------------------------------------------------
/resource/assets/ItemRenderer/selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/ItemRenderer/selected.png
--------------------------------------------------------------------------------
/resource/assets/Panel/border.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/Panel/border.png
--------------------------------------------------------------------------------
/resource/assets/Panel/header.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/Panel/header.png
--------------------------------------------------------------------------------
/resource/assets/ProgressBar/thumb_pb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/ProgressBar/thumb_pb.png
--------------------------------------------------------------------------------
/resource/assets/ProgressBar/track_pb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/ProgressBar/track_pb.png
--------------------------------------------------------------------------------
/resource/assets/RadioButton/radiobutton_select_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/RadioButton/radiobutton_select_disabled.png
--------------------------------------------------------------------------------
/resource/assets/RadioButton/radiobutton_select_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/RadioButton/radiobutton_select_down.png
--------------------------------------------------------------------------------
/resource/assets/RadioButton/radiobutton_select_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/RadioButton/radiobutton_select_up.png
--------------------------------------------------------------------------------
/resource/assets/RadioButton/radiobutton_unselect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/RadioButton/radiobutton_unselect.png
--------------------------------------------------------------------------------
/resource/assets/ScrollBar/roundthumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/ScrollBar/roundthumb.png
--------------------------------------------------------------------------------
/resource/assets/ScrollBar/track_sb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/ScrollBar/track_sb.png
--------------------------------------------------------------------------------
/resource/assets/Slider/thumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/Slider/thumb.png
--------------------------------------------------------------------------------
/resource/assets/Slider/track.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/Slider/track.png
--------------------------------------------------------------------------------
/resource/assets/Slider/tracklight.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/Slider/tracklight.png
--------------------------------------------------------------------------------
/resource/assets/ToggleSwitch/handle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/ToggleSwitch/handle.png
--------------------------------------------------------------------------------
/resource/assets/ToggleSwitch/off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/ToggleSwitch/off.png
--------------------------------------------------------------------------------
/resource/assets/ToggleSwitch/on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/ToggleSwitch/on.png
--------------------------------------------------------------------------------
/resource/assets/egret_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/egret_icon.png
--------------------------------------------------------------------------------
/resource/assets/myPic/again.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/again.png
--------------------------------------------------------------------------------
/resource/assets/myPic/back_btn.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/back_btn.jpg
--------------------------------------------------------------------------------
/resource/assets/myPic/back_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/back_btn.png
--------------------------------------------------------------------------------
/resource/assets/myPic/buy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/buy.png
--------------------------------------------------------------------------------
/resource/assets/myPic/buy_fail.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/buy_fail.jpg
--------------------------------------------------------------------------------
/resource/assets/myPic/buy_fail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/buy_fail.png
--------------------------------------------------------------------------------
/resource/assets/myPic/cadeado.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/cadeado.png
--------------------------------------------------------------------------------
/resource/assets/myPic/cat.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/cat.jpg
--------------------------------------------------------------------------------
/resource/assets/myPic/chapter_sceen.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/chapter_sceen.jpg
--------------------------------------------------------------------------------
/resource/assets/myPic/defaultBg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/defaultBg.png
--------------------------------------------------------------------------------
/resource/assets/myPic/e0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/e0.png
--------------------------------------------------------------------------------
/resource/assets/myPic/e1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/e1.png
--------------------------------------------------------------------------------
/resource/assets/myPic/e2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/e2.png
--------------------------------------------------------------------------------
/resource/assets/myPic/e3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/e3.png
--------------------------------------------------------------------------------
/resource/assets/myPic/e4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/e4.png
--------------------------------------------------------------------------------
/resource/assets/myPic/e5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/e5.png
--------------------------------------------------------------------------------
/resource/assets/myPic/exit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/exit.png
--------------------------------------------------------------------------------
/resource/assets/myPic/gameBg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/gameBg.png
--------------------------------------------------------------------------------
/resource/assets/myPic/homebg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/homebg.png
--------------------------------------------------------------------------------
/resource/assets/myPic/level1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/level1.jpg
--------------------------------------------------------------------------------
/resource/assets/myPic/linkgame.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/linkgame.psd
--------------------------------------------------------------------------------
/resource/assets/myPic/lose.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/lose.png
--------------------------------------------------------------------------------
/resource/assets/myPic/n0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/n0.png
--------------------------------------------------------------------------------
/resource/assets/myPic/n1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/n1.png
--------------------------------------------------------------------------------
/resource/assets/myPic/n2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/n2.png
--------------------------------------------------------------------------------
/resource/assets/myPic/n3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/n3.png
--------------------------------------------------------------------------------
/resource/assets/myPic/n4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/n4.png
--------------------------------------------------------------------------------
/resource/assets/myPic/n5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/n5.png
--------------------------------------------------------------------------------
/resource/assets/myPic/n6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/n6.png
--------------------------------------------------------------------------------
/resource/assets/myPic/n7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/n7.png
--------------------------------------------------------------------------------
/resource/assets/myPic/n8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/n8.png
--------------------------------------------------------------------------------
/resource/assets/myPic/n9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/n9.png
--------------------------------------------------------------------------------
/resource/assets/myPic/next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/next.png
--------------------------------------------------------------------------------
/resource/assets/myPic/okbtn.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/okbtn.jpg
--------------------------------------------------------------------------------
/resource/assets/myPic/pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/pause.png
--------------------------------------------------------------------------------
/resource/assets/myPic/prompt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/prompt.png
--------------------------------------------------------------------------------
/resource/assets/myPic/reset.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/reset.png
--------------------------------------------------------------------------------
/resource/assets/myPic/start.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/start.jpg
--------------------------------------------------------------------------------
/resource/assets/myPic/startbtn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/startbtn.png
--------------------------------------------------------------------------------
/resource/assets/myPic/store.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/store.jpg
--------------------------------------------------------------------------------
/resource/assets/myPic/store.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/store.png
--------------------------------------------------------------------------------
/resource/assets/myPic/storebtn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/storebtn.png
--------------------------------------------------------------------------------
/resource/assets/myPic/timer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/timer.png
--------------------------------------------------------------------------------
/resource/assets/myPic/unlock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/unlock.png
--------------------------------------------------------------------------------
/resource/assets/myPic/win.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/win.png
--------------------------------------------------------------------------------
/resource/assets/myPic/yellowbtn.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/resource/assets/myPic/yellowbtn.jpg
--------------------------------------------------------------------------------
/resource/config/description.json:
--------------------------------------------------------------------------------
1 | [
2 | "Open-source,Free,Multi-platform",
3 | "Push Game Forward",
4 | "HTML5 Game Engine"
5 | ]
--------------------------------------------------------------------------------
/resource/default.thm.json:
--------------------------------------------------------------------------------
1 | {
2 | "skins": {
3 | "eui.Button": "resource/eui_skins/ButtonSkin.exml",
4 | "eui.CheckBox": "resource/eui_skins/CheckBoxSkin.exml",
5 | "eui.HScrollBar": "resource/eui_skins/HScrollBarSkin.exml",
6 | "eui.HSlider": "resource/eui_skins/HSliderSkin.exml",
7 | "eui.Panel": "resource/eui_skins/PanelSkin.exml",
8 | "eui.TextInput": "resource/eui_skins/TextInputSkin.exml",
9 | "eui.ProgressBar": "resource/eui_skins/ProgressBarSkin.exml",
10 | "eui.RadioButton": "resource/eui_skins/RadioButtonSkin.exml",
11 | "eui.Scroller": "resource/eui_skins/ScrollerSkin.exml",
12 | "eui.ToggleSwitch": "resource/eui_skins/ToggleSwitchSkin.exml",
13 | "eui.VScrollBar": "resource/eui_skins/VScrollBarSkin.exml",
14 | "eui.VSlider": "resource/eui_skins/VSliderSkin.exml",
15 | "eui.ItemRenderer": "resource/eui_skins/ItemRendererSkin.exml"
16 | },
17 | "autoGenerateExmlsList": true,
18 | "exmls": [
19 | "resource/eui_skins/ButtonSkin.exml",
20 | "resource/eui_skins/CheckBoxSkin.exml",
21 | "resource/eui_skins/HScrollBarSkin.exml",
22 | "resource/eui_skins/HSliderSkin.exml",
23 | "resource/eui_skins/ItemRendererSkin.exml",
24 | "resource/eui_skins/PanelSkin.exml",
25 | "resource/eui_skins/ProgressBarSkin.exml",
26 | "resource/eui_skins/RadioButtonSkin.exml",
27 | "resource/eui_skins/ScrollerSkin.exml",
28 | "resource/eui_skins/TextInputSkin.exml",
29 | "resource/eui_skins/ToggleSwitchSkin.exml",
30 | "resource/eui_skins/VScrollBarSkin.exml",
31 | "resource/eui_skins/VSliderSkin.exml"
32 | ]
33 | }
--------------------------------------------------------------------------------
/resource/eui_skins/ButtonSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/resource/eui_skins/CheckBoxSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/resource/eui_skins/HScrollBarSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/resource/eui_skins/HSliderSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/resource/eui_skins/ItemRendererSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/resource/eui_skins/PanelSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/resource/eui_skins/ProgressBarSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/resource/eui_skins/RadioButtonSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/resource/eui_skins/ScrollerSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/resource/eui_skins/TextInputSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
9 |
--------------------------------------------------------------------------------
/resource/eui_skins/ToggleSwitchSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
13 |
14 |
--------------------------------------------------------------------------------
/resource/eui_skins/VScrollBarSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/resource/eui_skins/VSliderSkin.exml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/show/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/show/1.png
--------------------------------------------------------------------------------
/show/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/show/2.png
--------------------------------------------------------------------------------
/show/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/show/3.png
--------------------------------------------------------------------------------
/show/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/show/4.png
--------------------------------------------------------------------------------
/show/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/show/5.png
--------------------------------------------------------------------------------
/show/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/show/6.png
--------------------------------------------------------------------------------
/show/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/show/7.png
--------------------------------------------------------------------------------
/show/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-Ryan/egret-game/7631ebd0ef84426224e46eb43eed7a76ebdbf8a8/show/8.png
--------------------------------------------------------------------------------
/src/LoadingUI.ts:
--------------------------------------------------------------------------------
1 | //////////////////////////////////////////////////////////////////////////////////////
2 | //
3 | // Copyright (c) 2014-present, Egret Technology.
4 | // All rights reserved.
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are met:
7 | //
8 | // * Redistributions of source code must retain the above copyright
9 | // notice, this list of conditions and the following disclaimer.
10 | // * Redistributions in binary form must reproduce the above copyright
11 | // notice, this list of conditions and the following disclaimer in the
12 | // documentation and/or other materials provided with the distribution.
13 | // * Neither the name of the Egret nor the
14 | // names of its contributors may be used to endorse or promote products
15 | // derived from this software without specific prior written permission.
16 | //
17 | // THIS SOFTWARE IS PROVIDED BY EGRET AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
18 | // OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 | // IN NO EVENT SHALL EGRET AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
21 | // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA,
23 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | // EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | //
28 | //////////////////////////////////////////////////////////////////////////////////////
29 |
30 | class LoadingUI extends egret.Sprite {
31 |
32 | public constructor() {
33 | super();
34 | this.createView();
35 | }
36 |
37 | private textField:egret.TextField;
38 |
39 | private createView():void {
40 | this.textField = new egret.TextField();
41 | this.addChild(this.textField);
42 | this.textField.y = 300;
43 | this.textField.width = 480;
44 | this.textField.height = 100;
45 | this.textField.textAlign = "center";
46 | }
47 |
48 | public setProgress(current:number, total:number):void {
49 | this.textField.text = `Loading...${current}/${total}`;
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/src/control/ChapterConfig.ts:
--------------------------------------------------------------------------------
1 | class ChapterConfig {
2 | public static getData(chapter: number){
3 | let json = RES.getRes("chapterMap_json");
4 | return json[chapter];
5 | }
6 | public static getChapterNum(){
7 | let json = RES.getRes("chapterMap_json");
8 | return Object.keys(json).length;
9 | }
10 | }
--------------------------------------------------------------------------------
/src/control/ColorGlowFilter.ts:
--------------------------------------------------------------------------------
1 | class ColorGlowFilter {
2 | public static transparentGF= new egret.GlowFilter(0xFFFFFF, 0, 6, 6, 20, 1);//白色
3 | public static whiteGF= new egret.GlowFilter(0xFFFFFF, 1, 6, 6, 20, 1);//白色
4 | public static redGF = new egret.GlowFilter(0xDC143C, 1, 6, 6, 20, 1); //红色
5 | public static blueGF = new egret.GlowFilter(0x00BFFF, 1, 6, 6, 20, 1); //蓝色
6 | public static yellowGF = new egret.GlowFilter(0xdbe204, 1, 6, 6, 20, 1); //黄色
7 | }
--------------------------------------------------------------------------------
/src/control/GameEventManager.ts:
--------------------------------------------------------------------------------
1 | class GameEventManager{
2 | public static timeout(){
3 | egret.log('时间到')
4 | }
5 | }
--------------------------------------------------------------------------------
/src/control/LocalStorageControl.ts:
--------------------------------------------------------------------------------
1 | class LocalStorageControl {
2 | public static initData(){
3 | // if(!this.isInited()){
4 | egret.localStorage.clear();
5 | egret.localStorage.setItem("icon", InitConfigData.icon.toString());//设置初始金币
6 | egret.localStorage.setItem("chapter", InitConfigData.chapter.toString());// 设置初始关卡
7 | egret.localStorage.setItem("prompt", InitConfigData.prompt.toString());// 设置初始关卡
8 | egret.localStorage.setItem("pause", InitConfigData.pause.toString());// 设置初始关卡
9 | egret.localStorage.setItem("reset", InitConfigData.reset.toString());// 设置初始关卡
10 | egret.localStorage.setItem("isInited", "1");//初始化完成标志
11 | //}
12 | }
13 |
14 | public static openChapter(){
15 | let currentChapter = Number(egret.localStorage.getItem("chapter"));
16 | if(currentChapter<100){
17 | egret.localStorage.setItem("chapter",(currentChapter+1).toString());// 设置初始关卡
18 | }
19 | }
20 |
21 | public static getChapter(){
22 | return Number(egret.localStorage.getItem("chapter"));
23 | }
24 |
25 | public static addIcon(add: number){
26 | let icon = Number(egret.localStorage.getItem("icon"));
27 | egret.localStorage.setItem("icon",(icon + add).toString());// 设置初始关卡
28 | }
29 |
30 |
31 | public static useIcon(use: number){
32 | let icon = Number(egret.localStorage.getItem("icon"));
33 | egret.localStorage.setItem("icon",(icon - use).toString());// 设置初始关卡
34 | }
35 |
36 | public static getIcon(){
37 | return Number(egret.localStorage.getItem("icon"));
38 | }
39 |
40 | private static isInited(){
41 | return !!egret.localStorage.getItem("isInited");
42 | }
43 |
44 |
45 | //道具数目
46 |
47 | public static getPropsItemNum(key: string){
48 | return Number(egret.localStorage.getItem(key));
49 | }
50 |
51 | public static addPropsItemNum(key: string){
52 | let keyNum = Number(egret.localStorage.getItem(key))+1;
53 | egret.localStorage.setItem(key,keyNum.toString());// 购买道具
54 | }
55 |
56 | public static usePropsItemNum(key: string){
57 | let keyNum = Number(egret.localStorage.getItem(key)) - 1;
58 | egret.localStorage.setItem(key,keyNum.toString());// 使用道具
59 | }
60 | }
--------------------------------------------------------------------------------
/src/control/PropsManager.ts:
--------------------------------------------------------------------------------
1 | class PropsManager {
2 | public static userProps(propsId: number){
3 | switch(propsId){
4 | case 0:
5 | this.promptProps();
6 | break;
7 | case 1:
8 | this.stopTimeProps();
9 | break;
10 | case 2:
11 | this.resetMap();
12 | }
13 | }
14 |
15 | //提示
16 | private static promptProps(){
17 | if(!GameData.gameMap.isReady) return ;
18 | if(ConnectLogic.prompt(true, true)){
19 | GameData.promptNum--;
20 | GameData.gameMap.checkCanLine()
21 | };
22 | }
23 |
24 | //暂停时间
25 | private static stopTimeProps(){
26 | GameData.timerManager.pause();
27 | }
28 |
29 | //重置地图数据
30 | private static resetMap(){
31 | GameData.gameMap.createAllElement();
32 | }
33 | }
--------------------------------------------------------------------------------
/src/control/SceenControl.ts:
--------------------------------------------------------------------------------
1 | class SceenControl{
2 |
3 | //加载主页
4 | public static loadHome(){
5 | this.load(new HomeSceen())
6 | }
7 |
8 | //加载章节页面
9 | public static loadChapter(){
10 | this.load(new ChapterSceen())
11 | }
12 |
13 | //加载游戏页面
14 | public static loadGame(chapter: number){
15 | this.load(new GameSceen())
16 | }
17 |
18 | //加载商店页面
19 | public static loadStore(){
20 | this.load(new StoreSceen())
21 | }
22 |
23 | private static load(fn){
24 | GameData.stage.removeChildren();
25 | const child = fn;
26 | GameData.sceen = child;
27 | GameData.stage.addChild(child);
28 | }
29 |
30 | }
--------------------------------------------------------------------------------
/src/data/GameData.ts:
--------------------------------------------------------------------------------
1 | class GameData{
2 | //当前舞台
3 | public static stage: Main;
4 |
5 | //当前场景
6 | public static sceen: egret.Sprite;
7 | //最大行列
8 | public static maxRow = 10;
9 | public static maxColumn = 10;
10 |
11 | //设置的舞台宽高
12 | public static stageW: number = 640;
13 | public static stageH: number = 1136;
14 |
15 | public static elementWidth:number = (640 - 40)/GameData.maxColumn;
16 | public static elements: GameElement[]; //元素数组
17 | public static elementViews: ElementView[]; //显示元素数组
18 | public static elementTypes: string[] = ["e0_png","e1_png","e2_png","e3_png","e4_png","e5_png"]; //元素类型数组
19 |
20 | public static drawLineSprite: egret.Sprite;
21 | public static eleParentSprite: egret.Sprite;
22 | //地图数据
23 | public static gameMap: GameMap;
24 | public static mapData: number[]; //存放对应元素的状态,0代表为空 , 1代表存在
25 |
26 | public static promptNum: number =0;
27 |
28 | public static level: number = 1;
29 |
30 |
31 | public static backgroundImage: string = "defaultBg_png";
32 |
33 | //时间控制
34 | public static timerManager: TimerView;
35 |
36 |
37 | public static resetData(){
38 | this.elements = new Array(); //元素数组
39 | this.elementViews = new Array(); //显示元素数组
40 | this.mapData = new Array();
41 | }
42 | }
--------------------------------------------------------------------------------
/src/data/InitConfigData.ts:
--------------------------------------------------------------------------------
1 | class InitConfigData {
2 | public static icon:number = 1000;
3 | public static chapter:number = 0;
4 | public static prompt:number = 3;
5 | public static pause:number = 3;
6 | public static reset:number = 3;
7 | }
--------------------------------------------------------------------------------
/src/data/PropsPrice.ts:
--------------------------------------------------------------------------------
1 | class PropsPrice {
2 | public static prompt: number = 500;
3 | public static reset: number = 500;
4 | public static pause: number = 500;
5 | }
--------------------------------------------------------------------------------
/src/data/TimerData.ts:
--------------------------------------------------------------------------------
1 | class TimerData {
2 | public static time = 90; //游戏时间单位秒
3 | public static pauseTime = 5;//单位秒
4 | public static eleDisappearTime = 200; //元素找到到消失的时间/毫秒
5 | }
--------------------------------------------------------------------------------
/src/element/BasePropsElement.ts:
--------------------------------------------------------------------------------
1 | class BasePropsElements extends egret.Sprite{
2 | private propsId: number;
3 | private texture: string;
4 | private girdSize: number;
5 | private numText: egret.TextField;
6 | public constructor(propsId: number, texture: string, girdSize: number) {
7 | super();
8 | this.touchEnabled = true;
9 | this.propsId = propsId;
10 | this.texture = texture;
11 | this.girdSize = girdSize;
12 | this.init();
13 | }
14 |
15 | private init(){
16 | this.createProps();
17 | }
18 |
19 | private createProps(){
20 | let bitmap = new egret.Bitmap();
21 | bitmap.texture = RES.getRes(this.texture);
22 | bitmap.width = this.girdSize;
23 | bitmap.height = this.girdSize;
24 | this.addChild(bitmap);
25 |
26 | //创建 TextField 对象
27 | var label:egret.TextField = new egret.TextField();
28 | //设置文本颜色
29 | label.textColor = 0xffffff;
30 | //设置字号
31 | label.size = 40;
32 | label.width = this.girdSize - 20;
33 | label.height = 60;
34 | label.textAlign = 'right';
35 | label.verticalAlign = 'middle';
36 | //设置显示文本
37 | label.text = LocalStorageControl.getPropsItemNum(this.texture.slice(0, this.texture.length - 4)).toString();
38 | this.addChild(label);
39 | this.numText = label;
40 | this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.propsTap, this);
41 | }
42 |
43 | public updatePropsNum(){
44 | console.log('update');
45 | this.removeChild(this.numText)
46 | //创建 TextField 对象
47 | var label:egret.TextField = new egret.TextField();
48 | //设置文本颜色
49 | label.textColor = 0xffffff;
50 | //设置字号
51 | label.size = 40;
52 | label.width = this.girdSize - 20;
53 | label.height = 60;
54 | label.textAlign = 'right';
55 | label.verticalAlign = 'middle';
56 | //设置显示文本
57 | label.text = LocalStorageControl.getPropsItemNum(this.texture.slice(0, this.texture.length - 4)).toString();
58 | this.addChild(label);
59 | this.numText = label;
60 | }
61 |
62 | private propsTap(evt:egret.TouchEvent){
63 | const props = this.texture.slice(0, this.texture.length - 4);
64 | if(!LocalStorageControl.getPropsItemNum(props)) return;
65 | LocalStorageControl.usePropsItemNum(props)
66 | this.updatePropsNum();
67 | PropsManager.userProps(this.propsId);
68 | }
69 |
70 | }
--------------------------------------------------------------------------------
/src/element/GameElement.ts:
--------------------------------------------------------------------------------
1 | class GameElement extends egret.Sprite{
2 | public id: number;
3 | public type: string = "";
4 | public locationX: number;
5 | public locationY: number;
6 | public x: number;
7 | public y: number;
8 | constructor(id, type){
9 | super();
10 | this.id = id;
11 | this.type = type;
12 | this.locationX = id % GameData.maxRow ;
13 | this.locationY = Math.floor(id / GameData.maxRow) ;
14 | }
15 | public update(id: number){
16 | this.id = id;
17 | this.locationX = id % GameData.maxRow ;
18 | this.locationY = Math.floor(id / GameData.maxRow) ;
19 | }
20 | }
--------------------------------------------------------------------------------
/src/event/GameEvent.ts:
--------------------------------------------------------------------------------
1 | class GameEvent extends egret.Event{
2 | public static TAP_TWO_ELEMENT:string = "tap_two_element";
3 | public static REMOVE_ANIMATION_OVER:string = "remove_animation_over";
4 | public static UPDATE_MAP:string = "update_map";
5 | public static UPDATE_VIEW_OVER:string = "update_view_over";
6 | public static USE_PROP_CLICK:string = "use_prop_click";
7 | public static TIME_OUT: string = "time_out"
8 |
9 | public propToElementLocation:number = 0; //携带道具点击的元素位置
10 | public ele1:number=0;//第一个点击的元素
11 | public ele2:number=0;//第二个点击的元素
12 | public constructor(type:string, bubbles:boolean = false, cancelable:boolean = false)
13 | {
14 | super(type,bubbles,cancelable);
15 | }
16 |
17 |
18 | /**
19 | * 事件使用方法
20 | * //注册侦听器
21 | let evf =()=>{
22 | console.log('呵呵')
23 | }
24 | this.addEventListener(ElementEvent.TAP_TWO_ELEMENT,evf,this);
25 |
26 | var daterEvent:DateEvent = new DateEvent(ElementEvent.TAP_TWO_ELEMENT);
27 | this.dispatchEvent(daterEvent);
28 | this.removeEventListener(ElementEvent.TAP_TWO_ELEMENT,evf,this);
29 | */
30 | }
--------------------------------------------------------------------------------
/src/sceen/ChapterSceen.ts:
--------------------------------------------------------------------------------
1 | class ChapterSceen extends egret.Sprite{
2 | private group:eui.Group;
3 | public constructor() {
4 | super();
5 | this.touchEnabled=true;
6 | this.touchChildren=true;
7 | this.init();
8 | }
9 |
10 | private init(){
11 | //创建背景图
12 | let cs = GameData.stage.createBitmapByName("chapter_sceen_jpg");
13 | cs.width = GameData.stageW;
14 | cs.height = GameData.stageH;
15 | this.addChild(cs);
16 | var myscrollView:egret.ScrollView = new egret.ScrollView();
17 | myscrollView.width = GameData.stageW;
18 | myscrollView.height = GameData.stageH - 200;
19 | myscrollView.y = 100;
20 | this.addChild(myscrollView);
21 | let content = this.createElements();
22 | myscrollView.setContent(content);
23 | myscrollView.touchEnabled=true;
24 | myscrollView.touchChildren=true;
25 | myscrollView.addEventListener(egret.TouchEvent.TOUCH_TAP,this.do,this);
26 | //创建返回按钮
27 | const backbtn = new BackBtn("back_btn_png", 225, 80, GameData.stageW - 250, 20, "Home");
28 | this.addChild(backbtn);
29 | }
30 | do(evt:TouchEvent){
31 | let target: any = evt.target;
32 | if(target.type == "unlock"){
33 | SceenControl.loadGame(target.id);
34 | }
35 | }
36 |
37 | private createElements(): egret.Sprite{
38 | let len = ChapterConfig.getChapterNum();
39 | let row = Math.ceil(len / 3);
40 | let column = 3;
41 | let parent: egret.Sprite = new egret.Sprite();
42 | let girdW = (GameData.stageW - 160) / 3;
43 | let child: egret.Sprite;
44 | for(let i=0;i{
18 | if(this.parent){
19 | this.thisparent.removeChild(this);
20 | }
21 | }, 1000);
22 | }
23 | }
--------------------------------------------------------------------------------
/src/view/GameBackground.ts:
--------------------------------------------------------------------------------
1 | class GameBackground extends egret.Sprite{
2 | private chapter:number;
3 | private thisparent: GameSceen;
4 | public constructor(chapter: number, parent: GameSceen) {
5 | super();
6 | this.chapter = chapter;
7 | this.thisparent = parent;
8 | this.changeBackground();
9 | }
10 |
11 | private changeBackground(){
12 | this.cacheAsBitmap=false;
13 | this.removeChildren();
14 | this.createBackgroundImage();
15 | this.createLevelImage();
16 | this.createTimerImage();
17 | this.createIconView();
18 | this.cacheAsBitmap=true;
19 | }
20 |
21 | private createBackgroundImage(){
22 | let url = ChapterConfig.getData(this.chapter+ 1).background;
23 | let bgImg:egret.Bitmap = new egret.Bitmap();
24 | bgImg.width = GameData.stageW;
25 | bgImg.height = GameData.stageH;
26 | bgImg.texture = RES.getRes(url);
27 | this.addChild(bgImg);
28 | }
29 |
30 |
31 |
32 | private createLevelImage(){
33 | var label:egret.TextField = new egret.TextField();
34 | //设置文本颜色
35 | label.textColor = 0xffffff;
36 | //设置字号
37 | label.size = 40;
38 | label.width = GameData.stageW;
39 | label.height = 80;
40 | label.textAlign = 'center';
41 | label.verticalAlign = 'middle';
42 | //设置显示文本
43 | label.text = (this.chapter+1).toString();
44 | this.addChild(label);
45 | }
46 |
47 |
48 | private createTimerImage(){
49 | let tv = new TimerView(1000,TimerData.time ,this.thisparent);
50 | GameData.timerManager = tv;
51 | this.addChild(tv);
52 | tv.x = 20;
53 | tv.y = 160;
54 | }
55 |
56 | private createIconView(){
57 | var label:egret.TextField = new egret.TextField();
58 | //设置文本颜色
59 | label.textColor = 0xffff00;
60 | //设置字号
61 | label.size = 40;
62 | label.width = 260;
63 | label.height = 110;
64 | label.textAlign = 'center';
65 | label.verticalAlign = 'middle';
66 | //设置显示文本
67 | label.text = LocalStorageControl.getIcon().toString();
68 | this.addChild(label);
69 | }
70 |
71 |
72 | }
--------------------------------------------------------------------------------
/src/view/HomeBtnsView.ts:
--------------------------------------------------------------------------------
1 | class HomeBtnsView extends egret.Sprite{
2 | public constructor() {
3 | super();
4 | this.touchChildren = true;
5 | this.init();
6 | }
7 | private init(){
8 | this.createChapter();
9 | this.createStore();
10 | }
11 |
12 | //章节关卡
13 | private createChapter(){
14 | let btn: EnterChapterBtn = new EnterChapterBtn("startbtn_png", 225, 85, 230, 255, null);
15 | this.addChild(btn);
16 | }
17 |
18 |
19 | private createStore(){
20 | let btn: EnterStoreBtn = new EnterStoreBtn("storebtn_png", 225, 85, 230, 400, null);
21 | this.addChild(btn);
22 | }
23 |
24 | }
--------------------------------------------------------------------------------
/src/view/IconView.ts:
--------------------------------------------------------------------------------
1 | class IconView extends egret.Sprite{
2 | public constructor() {
3 | super();
4 | this.createIconView();
5 | }
6 |
7 | private createIconView(){
8 | var label:egret.TextField = new egret.TextField();
9 | //设置文本颜色
10 | label.textColor = 0xffff00;
11 | //设置字号
12 | label.size = 40;
13 | label.width = 260;
14 | label.height = 110;
15 | label.textAlign = 'center';
16 | label.verticalAlign = 'middle';
17 | //设置显示文本
18 | label.text = LocalStorageControl.getIcon().toString();
19 | this.addChild(label);
20 | }
21 |
22 | }
--------------------------------------------------------------------------------
/src/view/LockChapter.ts:
--------------------------------------------------------------------------------
1 | class LockChapter extends egret.Sprite{
2 | public id: number;
3 | public type: string = "lock";
4 | public constructor(id: number,w:number, h: number) {
5 | super();
6 | this.touchEnabled=true;
7 | this.id = id;
8 | this.init(w, h)
9 | }
10 |
11 | init(w:number, h: number){
12 | let lock = GameData.stage.createBitmapByName("cadeado_png");
13 | lock.width = w;
14 | lock.height = h;
15 | this.addChild(lock)
16 | }
17 | }
--------------------------------------------------------------------------------
/src/view/LoseView.ts:
--------------------------------------------------------------------------------
1 | class LoseView extends egret.Sprite{
2 | public constructor() {
3 | super();
4 | this.touchEnabled = true;
5 | this.init();
6 | }
7 |
8 | init(){
9 | this.createView();
10 | }
11 |
12 | private createView(){
13 | let bgImg:egret.Bitmap = new egret.Bitmap();
14 | bgImg.width = GameData.stageW;
15 | bgImg.height = GameData.stageH;
16 | bgImg.texture = RES.getRes("lose_png");
17 | this.addChild(bgImg);
18 | this.createBtnView();
19 | }
20 |
21 | private createBtnView(){
22 | const backBtn = new BackBtn('exit_png', 200, 100, 100, GameData.stageH-400, 'Chapter');
23 | this.addChild(backBtn);
24 | const againBtn = new BackBtn('again_png', 200, 100, 300, GameData.stageH-400, 'Game');
25 | this.addChild(againBtn);
26 | }
27 |
28 | }
--------------------------------------------------------------------------------
/src/view/PassView.ts:
--------------------------------------------------------------------------------
1 | class PassView extends egret.Sprite{
2 | public constructor() {
3 | super();
4 | this.touchEnabled = true;
5 | this.init();
6 | }
7 |
8 | init(){
9 | this.createView();
10 | }
11 |
12 | private createView(){
13 | let bgImg:egret.Bitmap = new egret.Bitmap();
14 | bgImg.texture = RES.getRes("win_png");
15 | bgImg.height = GameData.stageH;
16 | bgImg.width = GameData.stageW;
17 | this.addChild(bgImg);
18 | this.createBtnView();
19 | }
20 | private createBtnView(){
21 | const backBtn = new BackBtn('exit_png', 200, 100, 100, GameData.stageH-400, 'Chapter');
22 | this.addChild(backBtn);
23 | const againBtn = new BackBtn('next_png', 200, 100, 300, GameData.stageH-400, 'Game');
24 | this.addChild(againBtn);
25 | }
26 |
27 | }
--------------------------------------------------------------------------------
/src/view/PropViews.ts:
--------------------------------------------------------------------------------
1 | class PropViews extends egret.Sprite{
2 | public constructor() {
3 | super();
4 | this.init();
5 | }
6 |
7 | private init(){
8 | this.createProps();
9 | }
10 |
11 | private createProps(){
12 | const girdSize = (GameData.stageW - 160) /3
13 | //提示道具
14 | const promptView = new BasePropsElements(0, "prompt_png", girdSize);
15 | promptView.y= GameData.stageH - girdSize - 30;
16 | promptView.x= 40;
17 | this.addChild(promptView);
18 |
19 | //暂停时间道具
20 | const stopTimeView = new BasePropsElements(1, "pause_png", girdSize);
21 | stopTimeView.y= GameData.stageH - girdSize - 30;
22 | stopTimeView.x= 80 + girdSize
23 | this.addChild(stopTimeView);
24 |
25 | //重新开具道具
26 | const resetView = new BasePropsElements(2, "reset_png", girdSize);
27 | resetView.y= GameData.stageH - girdSize - 30;
28 | resetView.x= 120 + girdSize * 2;
29 | this.addChild(resetView);
30 |
31 | //重新开具道具
32 |
33 | }
34 |
35 | }
--------------------------------------------------------------------------------
/src/view/PropsShopItem.ts:
--------------------------------------------------------------------------------
1 | class PropsShopItem extends egret.Sprite{
2 | public type:string;
3 | public constructor(bitmapName: string,type: string, y:number, text:string) {
4 | super();
5 | this.type=type;
6 | this.createView(bitmapName, y, text);
7 | }
8 |
9 | private createView(bitmapName: string, y:number, text:string){
10 |
11 | const promptBtn = GameData.stage.createBitmapByName(bitmapName);
12 | this.addChild(promptBtn);
13 | promptBtn.width=100;
14 | promptBtn.height=100;
15 | promptBtn.x=100;
16 | promptBtn.y=y;
17 |
18 |
19 | //创建 TextField 对象
20 | var label:egret.TextField = new egret.TextField();
21 | //设置字体
22 | label.fontFamily = "Arial";
23 | //设置文本颜色
24 | label.textColor = 0xffffff;
25 | //设置字号
26 | label.size = 30;
27 | label.bold = true;
28 | //设置显示文本
29 | label.text = PropsPrice.prompt.toString();
30 | //添加到显示列表
31 | this.addChild(label);
32 | label.x=250;
33 | label.y=y+10;
34 |
35 | //创建 TextField 对象
36 | var showText:egret.TextField = new egret.TextField();
37 | //设置字体
38 | showText.fontFamily = "Arial";
39 | //设置文本颜色
40 | showText.textColor = 0xffffff;
41 | showText.bold = true;
42 | //设置字号
43 | showText.size = 30;
44 | //设置显示文本
45 | showText.text = text;
46 | //添加到显示列表
47 | this.addChild(showText);
48 | showText.x=250;
49 | showText.y=y+60;
50 |
51 | //创建 TextField 对象
52 | var num:egret.TextField = new egret.TextField();
53 | //设置字体
54 | num.fontFamily = "Arial";
55 | //设置文本颜色
56 | num.textColor = 0xffffff;
57 | num.bold = true;
58 | //设置字号
59 | num.size = 30;
60 | //设置显示文本
61 | num.text = LocalStorageControl.getPropsItemNum(this.type).toString();
62 | //添加到显示列表
63 | this.addChild(num);
64 | num.x=400;
65 | num.y=y+20;
66 |
67 | const buybtn = new BuyBtn(this.type);
68 | this.addChild(buybtn);
69 | buybtn.width = 200;
70 | buybtn.height = 70;
71 | buybtn.x = 470;
72 | buybtn.y = y+20;
73 | }
74 |
75 |
76 | }
--------------------------------------------------------------------------------
/src/view/ResultView.ts:
--------------------------------------------------------------------------------
1 | class ResultView extends egret.Sprite{
2 | private bitmap: string;
3 | public constructor(result: boolean) {
4 | super();
5 | this.init(result)
6 | }
7 |
8 | init(result: boolean){
9 | this.createView(result);
10 | }
11 |
12 | createView(result: boolean){
13 | let rv: egret.Sprite;
14 | if(result){
15 | rv = new PassView();
16 | }else{
17 | rv = new LoseView();
18 | }
19 | this.addChild(rv);
20 | }
21 |
22 | update(){
23 |
24 | }
25 | }
--------------------------------------------------------------------------------
/src/view/TimerView.ts:
--------------------------------------------------------------------------------
1 | class TimerView extends egret.Sprite{
2 | private timer: egret.Timer;
3 | private listener: egret.Sprite;
4 | private timerNumberSp : egret.Sprite;
5 | private pauseTimer = null;
6 | public constructor(dedelay: number, replayCount: number ,listener: egret.Sprite) {
7 | super();
8 | this.timer = new egret.Timer(dedelay,replayCount);
9 | this.listener = listener;
10 | this.init();
11 | }
12 |
13 | private init(){
14 | this.createTimerImage();
15 | }
16 |
17 | private createTimerImage(){
18 | let timerBg:egret.Bitmap = new egret.Bitmap();
19 | timerBg.texture = RES.getRes("timer_png");
20 | timerBg.width=114;
21 | timerBg.height=45;
22 | this.addChild(timerBg);
23 | this.timerNumberSp = new egret.Sprite();
24 | this.timerNumberSp.width=114;
25 | this.timerNumberSp.height=45;
26 | this.addChild(this.timerNumberSp);
27 | this.update();
28 | }
29 |
30 | public update(){
31 | this.timerNumberSp.removeChildren();
32 | let num: number = this.timer.repeatCount - this.timer.currentCount;
33 | //创建 TextField 对象
34 | var label:egret.TextField = new egret.TextField();
35 | //设置文本颜色
36 | label.textColor = 0xffffff;
37 | //设置字号
38 | label.size = 30;
39 | label.width = 115;
40 | label.height = 45;
41 | label.textAlign = 'center';
42 | label.verticalAlign = 'middle';
43 | //设置显示文本
44 | label.text = num.toString();
45 | //添加到显示列表
46 | this.timerNumberSp.addChild(label);
47 | }
48 |
49 | private do(){
50 | this.update()
51 | }
52 | private complete(){
53 | this.timer.removeEventListener(egret.TimerEvent.TIMER,this.do,this);
54 | this.timer.removeEventListener(egret.TimerEvent.TIMER_COMPLETE,this.complete,this);
55 | if(GameData.sceen == this.listener){
56 | GameData.gameMap.timeout();
57 | }
58 | }
59 |
60 | public start(){
61 | //开始计时
62 | this.timer.start();
63 | this.timer.addEventListener(egret.TimerEvent.TIMER,this.do,this);
64 | this.timer.addEventListener(egret.TimerEvent.TIMER_COMPLETE,this.complete,this);
65 | }
66 |
67 | public stop(){
68 | this.timer.stop();
69 | }
70 |
71 | public pause(){
72 | //如果正在暂停
73 | if(this.pauseTimer) {
74 | LocalStorageControl.addPropsItemNum('pause');
75 | return false;
76 | }
77 | this.timer.stop();
78 | this.pauseTimer=setTimeout(()=> {
79 | this.pauseTimer = null;
80 | if(GameData.sceen != this.listener) return clearTimeout(this.pauseTimer);
81 | if(this.timer) return this.timer.start();
82 | }, TimerData.pauseTime * 1000);
83 | }
84 | public reset(){
85 | this.timer.reset();
86 | }
87 |
88 | public running(): boolean{
89 | return this.timer.running;
90 | }
91 | }
--------------------------------------------------------------------------------
/src/view/UnLockChapter.ts:
--------------------------------------------------------------------------------
1 | class UnLockChapter extends egret.Sprite{
2 | public id: number;
3 | public type: string = "unlock";
4 | public constructor(id:number, w:number, h: number) {
5 | super();
6 | this.touchEnabled=true;
7 | this.id = id;
8 | this.init(w, h)
9 | }
10 |
11 | init(w:number, h: number){
12 | let unlock = GameData.stage.createBitmapByName("unlock_png");
13 | unlock.width = w;
14 | unlock.height = h;
15 | this.addChild(unlock);
16 | //创建 TextField 对象
17 | var label:egret.TextField = new egret.TextField();
18 | //设置文本颜色
19 | label.textColor = 0xffffff;
20 | //设置字号
21 | label.size = 40;
22 | label.bold = true;
23 | label.stroke = 2;
24 | label.width = w;
25 | label.height = h;
26 | label.strokeColor = 0x000000;
27 | label.textAlign = 'center';
28 | label.verticalAlign = 'middle';
29 | //设置显示文本
30 | label.text = this.id.toString();
31 | //添加到显示列表
32 | this.addChild(label);
33 | }
34 | }
--------------------------------------------------------------------------------
/src/view/btn/BackBtn.ts:
--------------------------------------------------------------------------------
1 | class BackBtn extends BaseBtn{
2 |
3 | public do(sceen: string){
4 | switch (sceen){
5 | case "Home":
6 | SceenControl.loadHome();
7 | break;
8 | case "Chapter":
9 | SceenControl.loadChapter();
10 | break;
11 | case "Game":
12 | SceenControl.loadGame(LocalStorageControl.getChapter());
13 | break;
14 |
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/src/view/btn/BaseBtn.ts:
--------------------------------------------------------------------------------
1 | class BaseBtn extends egret.Sprite{
2 | private bitmap: string;
3 | private args;
4 | public constructor(bitmap: string, w:number, h: number, x: number, y: number,args: any) {
5 | super();
6 | this.args = args;
7 | this.bitmap = bitmap;
8 | this.touchEnabled = true;
9 | this.init(w, h, x, y);
10 | }
11 |
12 | private init(w:number, h: number, x: number, y: number){
13 | let btn = GameData.stage.createBitmapByName(this.bitmap);
14 | this.addChild(btn);
15 | btn.width = w;
16 | btn.height = h;
17 | btn.x = x;
18 | btn.y = y;
19 | this.addEventListener(egret.TouchEvent.TOUCH_TAP,this.removeEvent,this);
20 | }
21 |
22 | //这段需要覆盖,没覆盖就报错
23 | protected do(args:any){
24 | throw new egret.error();
25 | }
26 |
27 |
28 | private removeEvent(){
29 | this.do(this.args);
30 | this.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.removeEvent,this);
31 | }
32 | }
--------------------------------------------------------------------------------
/src/view/btn/BuyBtn.ts:
--------------------------------------------------------------------------------
1 | class BuyBtn extends egret.Sprite{
2 | private type: string;
3 | constructor(type){
4 | super();
5 | this.touchEnabled = true;
6 | this.type = type;
7 | this.init();
8 | }
9 | init(){
10 | let btn = GameData.stage.createBitmapByName("buy_png");
11 | this.addChild(btn);
12 | btn.width = 100;
13 | btn.height = 50;
14 | this.addEventListener(egret.TouchEvent.TOUCH_TAP,this.do,this);
15 | }
16 |
17 | private do(){
18 | if(this.checkIcon()){
19 | LocalStorageControl.addPropsItemNum(this.type);
20 | LocalStorageControl.useIcon(PropsPrice[this.type]);
21 | SceenControl.loadStore();
22 | }else{
23 | let bfv = new BuyFailView(GameData.sceen);
24 | GameData.sceen.addChild(bfv);
25 | }
26 | }
27 |
28 | private checkIcon(){
29 | return (LocalStorageControl.getIcon() >= PropsPrice[this.type])
30 | }
31 | }
--------------------------------------------------------------------------------
/src/view/btn/EnterChapterBtn.ts:
--------------------------------------------------------------------------------
1 | class EnterChapterBtn extends BaseBtn{
2 | protected do() {
3 | SceenControl.loadChapter();
4 | }
5 | }
--------------------------------------------------------------------------------
/src/view/btn/EnterStoreBtn.ts:
--------------------------------------------------------------------------------
1 | class EnterStoreBtn extends BaseBtn{
2 | protected do() {
3 | SceenControl.loadStore();
4 | }
5 | }
--------------------------------------------------------------------------------
/template/runtime/native_loader.js:
--------------------------------------------------------------------------------
1 | require("launcher/native_require.js");
2 |
3 | egret_native.egtMain = function () {
4 | egret_native.nativeType = "native";
5 |
6 | egret_native.egretInit();
7 | egret_native.egretStart();
8 | };
9 |
--------------------------------------------------------------------------------
/template/runtime/native_require.js:
--------------------------------------------------------------------------------
1 | var manifest = JSON.parse(egret_native.readFileSync("manifest.json"));
2 | var game_file_list = manifest.initial.concat(manifest.game);
3 |
4 | var window = this;
5 |
6 | egret_native.setSearchPaths([""]);
7 |
8 | egret_native.requireFiles = function () {
9 | for (var key in game_file_list) {
10 | var src = game_file_list[key];
11 | require(src);
12 | }
13 | };
14 |
15 | egret_native.egretInit = function () {
16 | if(egret_native.featureEnable) {
17 | //控制一些优化方案是否开启
18 | //Control whether some optimization options are open
19 | var result = egret_native.featureEnable({
20 |
21 | });
22 | }
23 | egret_native.requireFiles();
24 | egret.dom = {};
25 | egret.dom.drawAsCanvas = function () {
26 | };
27 | };
28 |
29 | egret_native.egretStart = function () {
30 | var option = {
31 | //以下为自动修改,请勿修改
32 | //The following is automatically modified, please do not modify
33 | //----auto option start----
34 | entryClassName: "Main",
35 | frameRate: 30,
36 | scaleMode: "showAll",
37 | contentWidth: 640,
38 | contentHeight: 1136,
39 | showPaintRect: false,
40 | showFPS: false,
41 | fpsStyles: "x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9",
42 | showLog: false,
43 | logFilter: "",
44 | maxTouches: 2,
45 | textureScaleFactor: 1
46 | //----auto option end----
47 | };
48 |
49 | egret.native.NativePlayer.option = option;
50 | egret.runEgret();
51 | egret_native.Label.createLabel("/system/fonts/DroidSansFallback.ttf", 20, "", 0);
52 | egret_native.EGTView.preSetOffScreenBufferEnable(true);
53 | };
--------------------------------------------------------------------------------
/template/runtime/runtime_loader.js:
--------------------------------------------------------------------------------
1 | require("launcher/native_require.js");
2 |
3 | egret_native.egtMain = function () {
4 | egret_native.nativeType = "runtime";
5 |
6 | egret_native.egretInit();
7 | egret_native.egretStart();
8 | };
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5"
4 | },
5 | "exclude": [
6 | "node_modules"
7 | ]
8 | }
--------------------------------------------------------------------------------
/wingProperties.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourcePlugin": {
3 | "configs": [
4 | {
5 | "configPath": "resource/default.res.json",
6 | "relativePath": "resource/"
7 | }
8 | ]
9 | },
10 | "theme": "resource/default.thm.json"
11 | }
--------------------------------------------------------------------------------