├── .gitignore
├── game-path
├── games
│ ├── catch-fish
│ │ └── images
│ │ │ ├── fish_path_0.json
│ │ │ ├── fish_path_1.json
│ │ │ ├── fish_path_2.json
│ │ │ ├── fish_path_3.json
│ │ │ ├── fish_path_4.json
│ │ │ ├── fish_path_5.json
│ │ │ ├── fish_path_6.json
│ │ │ ├── fish_path_7.json
│ │ │ ├── fish_path_8.json
│ │ │ ├── game_bg.jpg
│ │ │ ├── paodan1.png
│ │ │ ├── paodan2.png
│ │ │ ├── paodan3.png
│ │ │ ├── paodan4.png
│ │ │ ├── paodan5.png
│ │ │ ├── paodan6.png
│ │ │ ├── paodan7.png
│ │ │ ├── texturepacker.json
│ │ │ ├── texturepacker.plist
│ │ │ └── texturespack.png
│ ├── cut-fruit
│ │ └── images
│ │ │ ├── apple_0.png
│ │ │ ├── apple_1.png
│ │ │ ├── apple_2.png
│ │ │ ├── apple_3.png
│ │ │ ├── apple_e.png
│ │ │ ├── apple_e_1.png
│ │ │ ├── apple_e_2.png
│ │ │ ├── apple_pe.png
│ │ │ ├── banana_0.png
│ │ │ ├── banana_1.png
│ │ │ ├── banana_2.png
│ │ │ ├── banana_3.png
│ │ │ ├── banana_e.png
│ │ │ ├── banana_e_1.png
│ │ │ ├── banana_e_2.png
│ │ │ ├── banana_pe.png
│ │ │ ├── baoji_2.png
│ │ │ ├── baoji_3.png
│ │ │ ├── baoji_4.png
│ │ │ ├── baoji_5.png
│ │ │ ├── bj.jpg
│ │ │ ├── blade.png
│ │ │ ├── dargonfruit_0.png
│ │ │ ├── dargonfruit_1.png
│ │ │ ├── dargonfruit_2.png
│ │ │ ├── dargonfruit_3.png
│ │ │ ├── dargonfruit_e.png
│ │ │ ├── dargonfruit_e_1.png
│ │ │ ├── dargonfruit_e_2.png
│ │ │ ├── dargonfruit_pe.png
│ │ │ ├── go.png
│ │ │ ├── icon_start.png
│ │ │ ├── jindutiao_0.png
│ │ │ ├── jindutiao_1.png
│ │ │ ├── jindutiao_2.png
│ │ │ ├── jindutiao_3.png
│ │ │ ├── jindutiao_4.png
│ │ │ ├── kiwifruit_0.png
│ │ │ ├── kiwifruit_1.png
│ │ │ ├── kiwifruit_2.png
│ │ │ ├── kiwifruit_3.png
│ │ │ ├── kiwifruit_e.png
│ │ │ ├── kiwifruit_e_1.png
│ │ │ ├── kiwifruit_e_2.png
│ │ │ ├── kiwifruit_pe.png
│ │ │ ├── lemon_0.png
│ │ │ ├── lemon_1.png
│ │ │ ├── lemon_2.png
│ │ │ ├── lemon_3.png
│ │ │ ├── lemon_e.png
│ │ │ ├── lemon_e_1.png
│ │ │ ├── lemon_e_2.png
│ │ │ ├── lemon_pe.png
│ │ │ ├── logo.png
│ │ │ ├── orange_0.png
│ │ │ ├── orange_1.png
│ │ │ ├── orange_2.png
│ │ │ ├── orange_3.png
│ │ │ ├── orange_e.png
│ │ │ ├── orange_e_1.png
│ │ │ ├── orange_e_2.png
│ │ │ ├── orange_pe.png
│ │ │ ├── peach_0.png
│ │ │ ├── peach_1.png
│ │ │ ├── peach_2.png
│ │ │ ├── peach_3.png
│ │ │ ├── peach_e.png
│ │ │ ├── peach_e_1.png
│ │ │ ├── peach_e_2.png
│ │ │ ├── peach_pe.png
│ │ │ ├── pear_0.png
│ │ │ ├── pear_1.png
│ │ │ ├── pear_2.png
│ │ │ ├── pear_3.png
│ │ │ ├── pear_e.png
│ │ │ ├── pear_e_1.png
│ │ │ ├── pear_e_2.png
│ │ │ ├── pear_pe.png
│ │ │ ├── pineapple_0.png
│ │ │ ├── pineapple_1.png
│ │ │ ├── pineapple_2.png
│ │ │ ├── pineapple_3.png
│ │ │ ├── pineapple_e.png
│ │ │ ├── pineapple_e_1.png
│ │ │ ├── pineapple_e_2.png
│ │ │ ├── pineapple_pe.png
│ │ │ ├── pomegranate_e.png
│ │ │ ├── pomegranate_e_1.png
│ │ │ ├── pomegranate_e_2.png
│ │ │ ├── pomegranate_pe.png
│ │ │ ├── pomegranatefragments_1.png
│ │ │ ├── pomegranatefragments_2.png
│ │ │ ├── strawberry_0.png
│ │ │ ├── strawberry_1.png
│ │ │ ├── strawberry_2.png
│ │ │ ├── strawberry_3.png
│ │ │ ├── strawberry_e.png
│ │ │ ├── strawberry_e_1.png
│ │ │ ├── strawberry_e_2.png
│ │ │ ├── strawberry_pe.png
│ │ │ ├── watermelon_0.png
│ │ │ ├── watermelon_1.png
│ │ │ ├── watermelon_2.png
│ │ │ ├── watermelon_3.png
│ │ │ ├── watermelon_e.png
│ │ │ ├── watermelon_e_1.png
│ │ │ ├── watermelon_e_2.png
│ │ │ └── watermelon_pe.png
│ ├── protect-radish
│ │ └── images
│ │ │ ├── Bg3.png
│ │ │ ├── Bg4.png
│ │ │ ├── CloseNormal.png
│ │ │ ├── CloseSelected.png
│ │ │ ├── Data
│ │ │ ├── BatteryDt.json
│ │ │ ├── BulletDt.json
│ │ │ ├── CardDt.json
│ │ │ ├── EffectDt.json
│ │ │ ├── MapData.json
│ │ │ ├── MonsterDt.json
│ │ │ ├── ResData.json
│ │ │ ├── SelLevel.json
│ │ │ ├── obstaclesDt.json
│ │ │ └── propsData.json
│ │ │ ├── Default-Landscape~ipad.png
│ │ │ ├── HelloWorld.png
│ │ │ ├── Item1.png
│ │ │ ├── Item2.png
│ │ │ ├── Item3.png
│ │ │ ├── Item4.png
│ │ │ ├── fonts
│ │ │ ├── Marker Felt.ttf
│ │ │ └── arial.ttf
│ │ │ ├── map1.tmx
│ │ │ ├── map2.tmx
│ │ │ ├── map3.tmx
│ │ │ ├── map4.tmx
│ │ │ ├── res
│ │ │ └── .gitkeep
│ │ │ ├── sucai.png
│ │ │ ├── sucai2.png
│ │ │ ├── ui_Battery.json
│ │ │ ├── ui_Battery.plist
│ │ │ ├── ui_Battery.png
│ │ │ ├── ui_Item.json
│ │ │ ├── ui_Item.plist
│ │ │ ├── ui_Item.png
│ │ │ ├── ui_Menu.json
│ │ │ ├── ui_Menu.plist
│ │ │ ├── ui_Menu.png
│ │ │ ├── ui_Monster.json
│ │ │ ├── ui_Monster.plist
│ │ │ ├── ui_Monster.png
│ │ │ ├── ui_ProgressBar_01.png
│ │ │ ├── ui_ProgressBar_02.png
│ │ │ ├── ui_Select.json
│ │ │ ├── ui_Select.plist
│ │ │ ├── ui_Select.png
│ │ │ ├── ui_luobo.json
│ │ │ ├── ui_luobo.plist
│ │ │ ├── ui_luobo.png
│ │ │ ├── ui_obstacle.json
│ │ │ ├── ui_obstacle.plist
│ │ │ └── ui_obstacle.png
│ ├── sicong
│ │ └── images
│ │ │ ├── bg.jpg
│ │ │ ├── check_0.png
│ │ │ ├── check_1.png
│ │ │ ├── game-config.json
│ │ │ ├── hotdog.png
│ │ │ ├── path_0.json
│ │ │ ├── path_1.json
│ │ │ ├── path_2.json
│ │ │ ├── path_3.json
│ │ │ ├── path_4.json
│ │ │ ├── path_5.json
│ │ │ ├── path_6.json
│ │ │ ├── path_7.json
│ │ │ └── sicong.png
│ └── wuziqi-online
│ │ └── images
│ │ ├── black.bmp
│ │ ├── chessboard.bmp
│ │ └── white.bmp
├── index.html
└── libs
│ ├── Tween.js
│ ├── pixi.min.js
│ └── socket.io.slim.js
├── games
├── bezier-editor
│ └── src
│ │ ├── editor-layer.js
│ │ ├── editor-scene.js
│ │ └── ui-layer.js
├── catch-fish
│ ├── images
│ │ ├── fish_path_0.json
│ │ ├── fish_path_1.json
│ │ ├── fish_path_2.json
│ │ ├── fish_path_3.json
│ │ ├── fish_path_4.json
│ │ ├── fish_path_5.json
│ │ ├── fish_path_6.json
│ │ ├── fish_path_7.json
│ │ ├── fish_path_8.json
│ │ ├── game_bg.jpg
│ │ ├── paodan1.png
│ │ ├── paodan2.png
│ │ ├── paodan3.png
│ │ ├── paodan4.png
│ │ ├── paodan5.png
│ │ ├── paodan6.png
│ │ ├── paodan7.png
│ │ ├── texturepacker.json
│ │ ├── texturepacker.plist
│ │ └── texturespack.png
│ ├── resources.js
│ ├── src
│ │ ├── bullet.js
│ │ ├── fish-type.js
│ │ ├── fish.js
│ │ ├── game-layer.js
│ │ ├── game-scene.js
│ │ ├── gun.js
│ │ └── ui-layer.js
│ └── texturepacker-source-map.js
├── common
│ ├── load-scene.js
│ ├── package-texture.js
│ ├── state.js
│ └── texture-info.js
├── cut-fruit
│ ├── images
│ │ ├── apple_0.png
│ │ ├── apple_1.png
│ │ ├── apple_2.png
│ │ ├── apple_3.png
│ │ ├── apple_e.png
│ │ ├── apple_e_1.png
│ │ ├── apple_e_2.png
│ │ ├── apple_pe.png
│ │ ├── banana_0.png
│ │ ├── banana_1.png
│ │ ├── banana_2.png
│ │ ├── banana_3.png
│ │ ├── banana_e.png
│ │ ├── banana_e_1.png
│ │ ├── banana_e_2.png
│ │ ├── banana_pe.png
│ │ ├── baoji_2.png
│ │ ├── baoji_3.png
│ │ ├── baoji_4.png
│ │ ├── baoji_5.png
│ │ ├── bj.jpg
│ │ ├── blade.png
│ │ ├── dargonfruit_0.png
│ │ ├── dargonfruit_1.png
│ │ ├── dargonfruit_2.png
│ │ ├── dargonfruit_3.png
│ │ ├── dargonfruit_e.png
│ │ ├── dargonfruit_e_1.png
│ │ ├── dargonfruit_e_2.png
│ │ ├── dargonfruit_pe.png
│ │ ├── go.png
│ │ ├── icon_start.png
│ │ ├── jindutiao_0.png
│ │ ├── jindutiao_1.png
│ │ ├── jindutiao_2.png
│ │ ├── jindutiao_3.png
│ │ ├── jindutiao_4.png
│ │ ├── kiwifruit_0.png
│ │ ├── kiwifruit_1.png
│ │ ├── kiwifruit_2.png
│ │ ├── kiwifruit_3.png
│ │ ├── kiwifruit_e.png
│ │ ├── kiwifruit_e_1.png
│ │ ├── kiwifruit_e_2.png
│ │ ├── kiwifruit_pe.png
│ │ ├── lemon_0.png
│ │ ├── lemon_1.png
│ │ ├── lemon_2.png
│ │ ├── lemon_3.png
│ │ ├── lemon_e.png
│ │ ├── lemon_e_1.png
│ │ ├── lemon_e_2.png
│ │ ├── lemon_pe.png
│ │ ├── logo.png
│ │ ├── orange_0.png
│ │ ├── orange_1.png
│ │ ├── orange_2.png
│ │ ├── orange_3.png
│ │ ├── orange_e.png
│ │ ├── orange_e_1.png
│ │ ├── orange_e_2.png
│ │ ├── orange_pe.png
│ │ ├── peach_0.png
│ │ ├── peach_1.png
│ │ ├── peach_2.png
│ │ ├── peach_3.png
│ │ ├── peach_e.png
│ │ ├── peach_e_1.png
│ │ ├── peach_e_2.png
│ │ ├── peach_pe.png
│ │ ├── pear_0.png
│ │ ├── pear_1.png
│ │ ├── pear_2.png
│ │ ├── pear_3.png
│ │ ├── pear_e.png
│ │ ├── pear_e_1.png
│ │ ├── pear_e_2.png
│ │ ├── pear_pe.png
│ │ ├── pineapple_0.png
│ │ ├── pineapple_1.png
│ │ ├── pineapple_2.png
│ │ ├── pineapple_3.png
│ │ ├── pineapple_e.png
│ │ ├── pineapple_e_1.png
│ │ ├── pineapple_e_2.png
│ │ ├── pineapple_pe.png
│ │ ├── pomegranate_e.png
│ │ ├── pomegranate_e_1.png
│ │ ├── pomegranate_e_2.png
│ │ ├── pomegranate_pe.png
│ │ ├── pomegranatefragments_1.png
│ │ ├── pomegranatefragments_2.png
│ │ ├── strawberry_0.png
│ │ ├── strawberry_1.png
│ │ ├── strawberry_2.png
│ │ ├── strawberry_3.png
│ │ ├── strawberry_e.png
│ │ ├── strawberry_e_1.png
│ │ ├── strawberry_e_2.png
│ │ ├── strawberry_pe.png
│ │ ├── watermelon_0.png
│ │ ├── watermelon_1.png
│ │ ├── watermelon_2.png
│ │ ├── watermelon_3.png
│ │ ├── watermelon_e.png
│ │ ├── watermelon_e_1.png
│ │ ├── watermelon_e_2.png
│ │ └── watermelon_pe.png
│ ├── resources.js
│ └── src
│ │ ├── friut.js
│ │ ├── fruit-type.js
│ │ ├── game-layer.js
│ │ ├── game-scene.js
│ │ └── ready-layer.js
├── defines.js
├── game-content.js
├── game-import.js
├── global.js
├── index.js
├── path-editor
│ └── src
│ │ ├── editor-layer.js
│ │ ├── editor-scene.js
│ │ └── ui-layer.js
├── protect-radish
│ ├── images
│ │ ├── Bg3.png
│ │ ├── Bg4.png
│ │ ├── CloseNormal.png
│ │ ├── CloseSelected.png
│ │ ├── Data
│ │ │ ├── BatteryDt.json
│ │ │ ├── BulletDt.json
│ │ │ ├── CardDt.json
│ │ │ ├── EffectDt.json
│ │ │ ├── MapData.json
│ │ │ ├── MonsterDt.json
│ │ │ ├── ResData.json
│ │ │ ├── SelLevel.json
│ │ │ ├── obstaclesDt.json
│ │ │ └── propsData.json
│ │ ├── Default-Landscape~ipad.png
│ │ ├── HelloWorld.png
│ │ ├── Item1.png
│ │ ├── Item2.png
│ │ ├── Item3.png
│ │ ├── Item4.png
│ │ ├── fonts
│ │ │ ├── Marker Felt.ttf
│ │ │ └── arial.ttf
│ │ ├── map1.tmx
│ │ ├── map2.tmx
│ │ ├── map3.tmx
│ │ ├── map4.tmx
│ │ ├── res
│ │ │ └── .gitkeep
│ │ ├── sucai.png
│ │ ├── sucai2.png
│ │ ├── ui_Battery.json
│ │ ├── ui_Battery.plist
│ │ ├── ui_Battery.png
│ │ ├── ui_Item.json
│ │ ├── ui_Item.plist
│ │ ├── ui_Item.png
│ │ ├── ui_Menu.json
│ │ ├── ui_Menu.plist
│ │ ├── ui_Menu.png
│ │ ├── ui_Monster.json
│ │ ├── ui_Monster.plist
│ │ ├── ui_Monster.png
│ │ ├── ui_ProgressBar_01.png
│ │ ├── ui_ProgressBar_02.png
│ │ ├── ui_Select.json
│ │ ├── ui_Select.plist
│ │ ├── ui_Select.png
│ │ ├── ui_luobo.json
│ │ ├── ui_luobo.plist
│ │ ├── ui_luobo.png
│ │ ├── ui_obstacle.json
│ │ ├── ui_obstacle.plist
│ │ └── ui_obstacle.png
│ ├── resources.js
│ ├── src
│ │ ├── game-layer.js
│ │ └── game-scene.js
│ ├── ui_Battery-source-map.js
│ ├── ui_Item-source-map.js
│ ├── ui_Menu-source-map.js
│ ├── ui_Monster-source-map.js
│ ├── ui_Select-source-map.js
│ ├── ui_luobo-source-map.js
│ └── ui_obstacle-source-map.js
├── resources-manager.js
├── sicong
│ ├── images
│ │ ├── bg.jpg
│ │ ├── check_0.png
│ │ ├── check_1.png
│ │ ├── game-config.json
│ │ ├── hotdog.png
│ │ ├── path_0.json
│ │ ├── path_1.json
│ │ ├── path_2.json
│ │ ├── path_3.json
│ │ ├── path_4.json
│ │ ├── path_5.json
│ │ ├── path_6.json
│ │ ├── path_7.json
│ │ └── sicong.png
│ ├── resources.js
│ └── src
│ │ ├── enemy-ai.js
│ │ ├── enemy.js
│ │ ├── game-layer.js
│ │ ├── game-scene.js
│ │ ├── hot-dog.js
│ │ ├── ready-layer.js
│ │ └── sicong.js
└── wuziqi-online
│ ├── images
│ ├── black.bmp
│ ├── chessboard.bmp
│ └── white.bmp
│ ├── resources.js
│ └── src
│ ├── game-layer.js
│ ├── game-scene.js
│ └── ui-layer.js
├── index.html
├── libs
├── Tween.js
├── pixi.min.js
└── socket.io.slim.js
├── package.json
├── tools
├── Jakefile.js
├── compresser.js
├── config-gen.js
├── copy-resources.js
├── helper
│ ├── file-helper.js
│ ├── http-helper.js
│ └── process-helper.js
├── plist-to-resource-map.js
├── plist2json.js
├── resource-gen.js
├── resource-lister.js
├── server-build.js
└── sound-sort.js
├── toturial
├── LF-fisher-master.zip
├── app
│ ├── img
│ │ └── bunny.png
│ ├── index.html
│ └── package.json
├── fisher
│ ├── .babelrc
│ ├── .gitignore
│ ├── context
│ │ ├── .babelrc
│ │ ├── package.json
│ │ ├── src
│ │ │ └── app.js
│ │ └── webpack.config.js
│ ├── dist
│ │ ├── context
│ │ │ ├── index.js
│ │ │ └── index.js.map
│ │ ├── game.js
│ │ ├── game.js.map
│ │ ├── game.json
│ │ ├── project.config.json
│ │ └── static
│ │ │ └── textures
│ │ │ ├── misc.json
│ │ │ ├── misc.png
│ │ │ └── misc
│ │ │ ├── bkg.jpg
│ │ │ ├── fish.1.png
│ │ │ ├── fish.2.png
│ │ │ ├── fish.3.png
│ │ │ ├── fish.4.png
│ │ │ └── overlay.png
│ ├── libs
│ │ └── adapter
│ │ │ ├── Audio.js
│ │ │ ├── Canvas.js
│ │ │ ├── Element.js
│ │ │ ├── Event.js
│ │ │ ├── EventIniter
│ │ │ ├── TouchEvent.js
│ │ │ └── index.js
│ │ │ ├── EventTarget.js
│ │ │ ├── FileReader.js
│ │ │ ├── HTMLAudioElement.js
│ │ │ ├── HTMLElement.js
│ │ │ ├── HTMLMediaElement.js
│ │ │ ├── Image.js
│ │ │ ├── Node.js
│ │ │ ├── WebSocket.js
│ │ │ ├── WindowProperties.js
│ │ │ ├── XMLHttpRequest.js
│ │ │ ├── constructor.js
│ │ │ ├── document.js
│ │ │ ├── index.js
│ │ │ ├── localStorage.js
│ │ │ ├── location.js
│ │ │ ├── navigator.js
│ │ │ ├── util
│ │ │ └── index.js
│ │ │ └── window.js
│ ├── package.json
│ ├── readme.md
│ ├── src
│ │ ├── app.js
│ │ ├── config.js
│ │ ├── core
│ │ │ └── index.js
│ │ └── scenes
│ │ │ ├── game.js
│ │ │ ├── index.js
│ │ │ └── prepare.js
│ ├── static
│ │ └── textures
│ │ │ ├── misc.json
│ │ │ ├── misc.png
│ │ │ └── misc
│ │ │ ├── bkg.jpg
│ │ │ ├── fish.1.png
│ │ │ ├── fish.2.png
│ │ │ ├── fish.3.png
│ │ │ ├── fish.4.png
│ │ │ └── overlay.png
│ └── webpack.config.js
└── wuziqi-online-wchat-game
│ ├── .babelrc
│ ├── 750*1334.psd
│ ├── bg.psd
│ ├── dist
│ ├── .gitignore
│ ├── context
│ │ ├── index.js
│ │ └── index.js.map
│ ├── game.js
│ ├── game.js.map
│ ├── game.json
│ ├── project.config.json
│ └── static
│ │ ├── audio
│ │ └── piece_audio.mp3
│ │ └── textures
│ │ └── login_button.png
│ ├── images.zip
│ ├── images
│ ├── bg.jpg
│ ├── cancel_share_button.png
│ ├── denglu_button.png
│ ├── head_image_kuang.png
│ ├── leave_room.png
│ ├── login_button.png
│ ├── matching_title.png
│ ├── piece_audio.mp3
│ ├── piece_black.png
│ ├── piece_white.png
│ ├── re_start_button.png
│ ├── shard_friend_button.png
│ ├── share_button.png
│ ├── share_image.png
│ ├── wait_friend_tips.png
│ ├── wait_tips.png
│ └── wifi_logo.png
│ ├── index.html
│ ├── libs
│ └── adapter
│ │ ├── Audio.js
│ │ ├── Canvas.js
│ │ ├── Element.js
│ │ ├── Event.js
│ │ ├── EventIniter
│ │ ├── TouchEvent.js
│ │ └── index.js
│ │ ├── EventTarget.js
│ │ ├── FileReader.js
│ │ ├── HTMLAudioElement.js
│ │ ├── HTMLElement.js
│ │ ├── HTMLMediaElement.js
│ │ ├── Image.js
│ │ ├── Node.js
│ │ ├── WebSocket.js
│ │ ├── WindowProperties.js
│ │ ├── XMLHttpRequest.js
│ │ ├── constructor.js
│ │ ├── document.js
│ │ ├── index.js
│ │ ├── localStorage.js
│ │ ├── location.js
│ │ ├── navigator.js
│ │ ├── util
│ │ └── index.js
│ │ └── window.js
│ ├── local-server
│ ├── app.js
│ ├── db.js
│ ├── game-logic.js
│ ├── package-lock.json
│ ├── package.json
│ ├── player.js
│ ├── rank.js
│ ├── room.js
│ ├── state.js
│ └── wechat-wuziqi-pnline-server.js
│ ├── nginx.conf
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ ├── app.js
│ ├── common
│ │ └── load-scene.js
│ ├── config.js
│ ├── defines.js
│ ├── game
│ │ ├── connect.js
│ │ ├── game-layer.js
│ │ ├── game-scene.js
│ │ ├── gameover-layer.js
│ │ ├── head-image.js
│ │ ├── head.js
│ │ ├── rank-head.js
│ │ ├── rank-layer.js
│ │ ├── ui-layer.js
│ │ └── wait-layer.js
│ ├── global.js
│ ├── resources.js
│ └── util
│ │ ├── common
│ │ ├── event-listener.js
│ │ ├── helper.js
│ │ └── state.js
│ │ ├── import.js
│ │ ├── math
│ │ ├── bezier.js
│ │ ├── rect.js
│ │ └── vec2.js
│ │ └── render
│ │ ├── animate.js
│ │ ├── button.js
│ │ ├── director.js
│ │ ├── graphics.js
│ │ ├── label.js
│ │ ├── layer.js
│ │ ├── scene.js
│ │ ├── sprite-frame.js
│ │ └── sprite.js
│ ├── tools
│ ├── Jakefile.js
│ ├── compresser.js
│ ├── config-gen.js
│ ├── copy-resources.js
│ ├── helper
│ │ ├── file-helper.js
│ │ ├── http-helper.js
│ │ └── process-helper.js
│ ├── plist-to-resource-map.js
│ ├── plist2json.js
│ ├── resource-gen.js
│ ├── resource-lister.js
│ ├── server-build.js
│ └── sound-sort.js
│ ├── webpack.config.js
│ ├── wifi.psd
│ ├── 五子棋.psd
│ └── 登录.xmind
├── util
├── common
│ ├── event-listener.js
│ ├── helper.js
│ └── state.js
├── import.js
├── math
│ ├── bezier.js
│ ├── rect.js
│ └── vec2.js
└── render
│ ├── animate.js
│ ├── button.js
│ ├── director.js
│ ├── graphics.js
│ ├── label.js
│ ├── layer.js
│ ├── scene.js
│ ├── sprite-frame.js
│ └── sprite.js
├── webpack.config.js
├── wuziqi-online-server
├── app.js
├── game-logic.js
├── package-lock.json
├── package.json
├── player.js
├── room.js
└── wuziqi-index.js
└── 素材
├── 保卫萝卜资源
├── Bg3.png
├── Bg4.png
├── CloseNormal.png
├── CloseSelected.png
├── Data
│ ├── BatteryDt.json
│ ├── BulletDt.json
│ ├── CardDt.json
│ ├── EffectDt.json
│ ├── MapData.json
│ ├── MonsterDt.json
│ ├── ResData.json
│ ├── SelLevel.json
│ ├── obstaclesDt.json
│ └── propsData.json
├── Default-Landscape~ipad.png
├── HelloWorld.png
├── Item1.png
├── Item2.png
├── Item3.png
├── Item4.png
├── fonts
│ ├── Marker Felt.ttf
│ └── arial.ttf
├── map1.tmx
├── map2.tmx
├── map3.tmx
├── map4.tmx
├── res
│ └── .gitkeep
├── sucai.png
├── sucai2.png
└── ui
│ ├── ui_Battery.plist
│ ├── ui_Battery.png
│ ├── ui_Item.plist
│ ├── ui_Item.png
│ ├── ui_Menu.plist
│ ├── ui_Menu.png
│ ├── ui_Monster.plist
│ ├── ui_Monster.png
│ ├── ui_ProgressBar_01.png
│ ├── ui_ProgressBar_02.png
│ ├── ui_Select.plist
│ ├── ui_Select.png
│ ├── ui_luobo.plist
│ ├── ui_luobo.png
│ ├── ui_obstacle.plist
│ └── ui_obstacle.png
└── 校长吃鸡
├── bg.jpg
├── check_0.png
├── check_1.png
├── hotdog.png
├── sicong.png
├── timg (1).jpeg
├── timg (3).jpeg
└── 校长吃鸡.psd
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | game.all.js
3 |
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/fish_path_0.json:
--------------------------------------------------------------------------------
1 | [{"x":-188.32187500000003,"y":153.07187499999992},{"x":185.95624999999984,"y":-102.90312500000005},{"x":233.89999999999986,"y":342.22187499999984},{"x":650.6749999999997,"y":685.2624999999998},{"x":1219.2781249999996,"y":310.3187499999999}]
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/fish_path_1.json:
--------------------------------------------------------------------------------
1 | [{"x":-193.61875000000006,"y":686.4624999999997},{"x":185.95624999999984,"y":-102.90312500000005},{"x":270.8093749999998,"y":496.95624999999984},{"x":650.6749999999997,"y":685.2624999999998},{"x":1100.2999999999997,"y":-197.78750000000002}]
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/fish_path_2.json:
--------------------------------------------------------------------------------
1 | [{"x":42.462499999999864,"y":826.9843749999998},{"x":185.95624999999984,"y":-102.90312500000005},{"x":566.9281249999998,"y":554.7156249999998},{"x":1081.7187499999998,"y":722.3593749999998},{"x":842.2437499999996,"y":-219.03125000000003}]
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/fish_path_3.json:
--------------------------------------------------------------------------------
1 | [{"x":42.462499999999864,"y":826.9843749999998},{"x":185.95624999999984,"y":-102.90312500000005},{"x":438.4999999999998,"y":-101.83437500000005},{"x":1081.7187499999998,"y":722.3593749999998},{"x":1144.7843749999997,"y":-162.76250000000005}]
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/fish_path_4.json:
--------------------------------------------------------------------------------
1 | [{"x":811.1468749999997,"y":921.8124999999998},{"x":-121.12187500000005,"y":271.4687499999999},{"x":102.50937499999986,"y":-63.856250000000045},{"x":1232.6656249999996,"y":826.3281249999998},{"x":1144.7843749999997,"y":-162.76250000000005},{"x":334.30624999999986,"y":212.43437499999993},{"x":554.3281249999998,"y":-279.884375}]
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/fish_path_5.json:
--------------------------------------------------------------------------------
1 | [{"x":1178.0281249999996,"y":534.5218749999998},{"x":688.1187499999996,"y":-56.67500000000007},{"x":134.29999999999984,"y":725.3499999999997}]
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/fish_path_6.json:
--------------------------------------------------------------------------------
1 | [{"x":1282.4374999999995,"y":99.13749999999993},{"x":386.7499999999998,"y":-171.69687500000003},{"x":134.29999999999984,"y":725.3499999999997},{"x":-174.50312500000007,"y":57.85937499999994}]
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/fish_path_7.json:
--------------------------------------------------------------------------------
1 | [{"x":1180.3718749999996,"y":-127.45625000000004},{"x":386.7499999999998,"y":-171.69687500000003},{"x":1019.7499999999998,"y":832.0749999999998},{"x":-210.59687500000004,"y":541.2437499999999}]
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/fish_path_8.json:
--------------------------------------------------------------------------------
1 | [{"x":1455.5374999999997,"y":251.43437499999982},{"x":449.9843749999998,"y":-177.65937500000004},{"x":1035.0781249999998,"y":580.1406249999998},{"x":-88.20625000000007,"y":762.9624999999999},{"x":-169.97500000000008,"y":-22.96250000000009}]
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/game_bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/catch-fish/images/game_bg.jpg
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/paodan1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/catch-fish/images/paodan1.png
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/paodan2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/catch-fish/images/paodan2.png
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/paodan3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/catch-fish/images/paodan3.png
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/paodan4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/catch-fish/images/paodan4.png
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/paodan5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/catch-fish/images/paodan5.png
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/paodan6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/catch-fish/images/paodan6.png
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/paodan7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/catch-fish/images/paodan7.png
--------------------------------------------------------------------------------
/game-path/games/catch-fish/images/texturespack.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/catch-fish/images/texturespack.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/apple_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/apple_0.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/apple_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/apple_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/apple_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/apple_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/apple_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/apple_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/apple_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/apple_e.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/apple_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/apple_e_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/apple_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/apple_e_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/apple_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/apple_pe.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/banana_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/banana_0.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/banana_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/banana_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/banana_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/banana_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/banana_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/banana_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/banana_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/banana_e.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/banana_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/banana_e_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/banana_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/banana_e_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/banana_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/banana_pe.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/baoji_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/baoji_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/baoji_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/baoji_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/baoji_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/baoji_4.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/baoji_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/baoji_5.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/bj.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/bj.jpg
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/blade.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/blade.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/dargonfruit_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/dargonfruit_0.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/dargonfruit_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/dargonfruit_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/dargonfruit_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/dargonfruit_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/dargonfruit_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/dargonfruit_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/dargonfruit_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/dargonfruit_e.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/dargonfruit_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/dargonfruit_e_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/dargonfruit_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/dargonfruit_e_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/dargonfruit_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/dargonfruit_pe.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/go.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/go.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/icon_start.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/icon_start.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/jindutiao_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/jindutiao_0.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/jindutiao_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/jindutiao_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/jindutiao_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/jindutiao_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/jindutiao_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/jindutiao_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/jindutiao_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/jindutiao_4.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/kiwifruit_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/kiwifruit_0.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/kiwifruit_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/kiwifruit_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/kiwifruit_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/kiwifruit_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/kiwifruit_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/kiwifruit_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/kiwifruit_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/kiwifruit_e.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/kiwifruit_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/kiwifruit_e_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/kiwifruit_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/kiwifruit_e_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/kiwifruit_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/kiwifruit_pe.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/lemon_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/lemon_0.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/lemon_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/lemon_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/lemon_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/lemon_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/lemon_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/lemon_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/lemon_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/lemon_e.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/lemon_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/lemon_e_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/lemon_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/lemon_e_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/lemon_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/lemon_pe.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/logo.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/orange_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/orange_0.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/orange_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/orange_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/orange_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/orange_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/orange_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/orange_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/orange_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/orange_e.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/orange_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/orange_e_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/orange_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/orange_e_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/orange_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/orange_pe.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/peach_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/peach_0.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/peach_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/peach_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/peach_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/peach_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/peach_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/peach_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/peach_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/peach_e.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/peach_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/peach_e_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/peach_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/peach_e_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/peach_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/peach_pe.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pear_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pear_0.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pear_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pear_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pear_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pear_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pear_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pear_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pear_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pear_e.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pear_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pear_e_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pear_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pear_e_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pear_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pear_pe.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pineapple_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pineapple_0.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pineapple_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pineapple_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pineapple_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pineapple_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pineapple_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pineapple_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pineapple_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pineapple_e.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pineapple_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pineapple_e_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pineapple_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pineapple_e_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pineapple_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pineapple_pe.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pomegranate_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pomegranate_e.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pomegranate_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pomegranate_e_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pomegranate_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pomegranate_e_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pomegranate_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pomegranate_pe.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pomegranatefragments_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pomegranatefragments_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/pomegranatefragments_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/pomegranatefragments_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/strawberry_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/strawberry_0.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/strawberry_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/strawberry_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/strawberry_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/strawberry_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/strawberry_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/strawberry_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/strawberry_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/strawberry_e.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/strawberry_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/strawberry_e_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/strawberry_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/strawberry_e_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/strawberry_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/strawberry_pe.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/watermelon_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/watermelon_0.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/watermelon_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/watermelon_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/watermelon_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/watermelon_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/watermelon_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/watermelon_3.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/watermelon_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/watermelon_e.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/watermelon_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/watermelon_e_1.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/watermelon_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/watermelon_e_2.png
--------------------------------------------------------------------------------
/game-path/games/cut-fruit/images/watermelon_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/cut-fruit/images/watermelon_pe.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/Bg3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/Bg3.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/Bg4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/Bg4.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/CloseNormal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/CloseNormal.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/CloseSelected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/CloseSelected.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/Data/ResData.json:
--------------------------------------------------------------------------------
1 | {
2 | "png": [
3 | "ui/ui_Battery.png",
4 | "ui/ui_Bullet.png",
5 | "ui/ui_Monster.png",
6 | "ui/ui_Button.png",
7 | "ui/ui_Select.png",
8 | "ui/ui_Button_2.png",
9 | "ui/ui_Menu.png",
10 | "ui/ui_Button_3.png",
11 | "ui/ui_Result.png",
12 | "ui/ui_obstacle.png",
13 | "ui/ui_Item.png",
14 | "ui/ui_luobo.png"
15 | ],
16 | "plist": [
17 | "ui/ui_Battery.plist",
18 | "ui/ui_Bullet.plist",
19 | "ui/ui_Monster.plist",
20 | "ui/ui_Button.plist",
21 | "ui/ui_Select.plist",
22 | "ui/ui_Button_2.plist",
23 | "ui/ui_Menu.plist",
24 | "ui/ui_Button_3.plist",
25 | "ui/ui_Result.plist",
26 | "ui/ui_obstacle.plist",
27 | "ui/ui_Item.plist",
28 | "ui/ui_luobo.plist"
29 | ],
30 | "music": [
31 | "Music/bgm_boss.mp3",
32 | "Music/bgm_fever.mp3",
33 | "Music/bgm_minigame.mp3",
34 | "Music/bgm_opening.mp3"
35 | ]
36 | }
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/Data/obstaclesDt.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": 7001,
4 | "Coins": 0,
5 | "hp": 10000,
6 | "img": "ui_obstacles_01.png"
7 | },
8 | {
9 | "id": 7002,
10 | "Coins": 100,
11 | "hp": 200,
12 | "img": "ui_obstacles_02.png"
13 | },
14 | {
15 | "id": 7003,
16 | "Coins": 200,
17 | "hp": 400,
18 | "img": "ui_obstacles_03.png"
19 | }
20 | ]
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/Data/propsData.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "nId": 7001,
4 | "nAck": 1000,
5 | "nAddGold": 0,
6 | "fAddAckInterval": 0,
7 | "img": "ui_Props_01_02.png",
8 | "effect": [
9 | "ui_Props_01_03.png",
10 | "ui_Props_01_01.png",
11 | "ui_Props_01_04.png",
12 | "ui_Props_01_05.png",
13 | "ui_Props_01_06.png",
14 | "ui_Props_01_07.png"
15 | ]
16 | },
17 | {
18 | "nId": 7002,
19 | "nAck": 0,
20 | "nAddGold": 0,
21 | "fAddAckInterval": 0.5,
22 | "img": "ui_Props_02_01.png",
23 | "effect": [
24 | "ui_Props_02_02.png",
25 | "ui_Props_02_03.png",
26 | "ui_Props_02_04.png"
27 | ]
28 | },
29 | {
30 | "nId": 7003,
31 | "nAck": 0,
32 | "nAddGold": 500,
33 | "fAddAckInterval": 0,
34 | "img": "ui_Props_03_01.png",
35 | "effect": [
36 | "ui_Props_02_02.png",
37 | "ui_Props_02_03.png",
38 | "ui_Props_02_04.png"
39 | ]
40 | }
41 | ]
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/Default-Landscape~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/Default-Landscape~ipad.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/HelloWorld.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/HelloWorld.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/Item1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/Item1.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/Item2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/Item2.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/Item3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/Item3.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/Item4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/Item4.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/fonts/Marker Felt.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/fonts/Marker Felt.ttf
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/fonts/arial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/fonts/arial.ttf
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/res/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/res/.gitkeep
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/sucai.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/sucai.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/sucai2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/sucai2.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/ui_Battery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/ui_Battery.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/ui_Item.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/ui_Item.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/ui_Menu.json:
--------------------------------------------------------------------------------
1 | {
2 | "ui_Menu_Bg.png":{
3 | "offset":[2,2,960,640],
4 | "rotated":[0,0],
5 | "sourceColorRect":[0,0,960,640],
6 | "sourceSize":"0"},
7 | "ui_Menu_adventure.jpg":{
8 | "offset":[2,644,271,87],
9 | "rotated":[0,0],
10 | "sourceColorRect":[0,0,271,87],
11 | "sourceSize":"2"}
12 | }
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/ui_Menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/ui_Menu.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/ui_Monster.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/ui_Monster.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/ui_ProgressBar_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/ui_ProgressBar_01.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/ui_ProgressBar_02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/ui_ProgressBar_02.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/ui_Select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/ui_Select.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/ui_luobo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/ui_luobo.png
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/ui_obstacle.json:
--------------------------------------------------------------------------------
1 | {
2 | "ui_obstacles_01.png":{
3 | "offset":[2,2,97,76],
4 | "rotated":[0,0],
5 | "sourceColorRect":[0,0,97,76],
6 | "sourceSize":"0"},
7 | "ui_obstacles_02.png":{
8 | "offset":[183,2,76,61],
9 | "rotated":[0,1],
10 | "sourceColorRect":[0,2,76,61],
11 | "sourceSize":"2"},
12 | "ui_obstacles_03.png":{
13 | "offset":[183,80,76,57],
14 | "rotated":[0,0],
15 | "sourceColorRect":[0,0,76,57],
16 | "sourceSize":"2"},
17 | "ui_obstacles_04.png":{
18 | "offset":[101,2,80,79],
19 | "rotated":[0,0],
20 | "sourceColorRect":[0,0,80,79],
21 | "sourceSize":"0"},
22 | "ui_obstacles_05.png":{
23 | "offset":[2,158,79,77],
24 | "rotated":[0,0],
25 | "sourceColorRect":[0,0,79,77],
26 | "sourceSize":"2"}
27 | }
--------------------------------------------------------------------------------
/game-path/games/protect-radish/images/ui_obstacle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/protect-radish/images/ui_obstacle.png
--------------------------------------------------------------------------------
/game-path/games/sicong/images/bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/sicong/images/bg.jpg
--------------------------------------------------------------------------------
/game-path/games/sicong/images/check_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/sicong/images/check_0.png
--------------------------------------------------------------------------------
/game-path/games/sicong/images/check_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/sicong/images/check_1.png
--------------------------------------------------------------------------------
/game-path/games/sicong/images/hotdog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/sicong/images/hotdog.png
--------------------------------------------------------------------------------
/game-path/games/sicong/images/path_0.json:
--------------------------------------------------------------------------------
1 | [{"x":1208.5906249999996,"y":-93.65000000000006},{"x":846.7437499999996,"y":280.7312499999998},{"x":-258.11875000000003,"y":283.5906249999998}]
--------------------------------------------------------------------------------
/game-path/games/sicong/images/path_1.json:
--------------------------------------------------------------------------------
1 | [{"x":435.79062499999975,"y":-38.70312500000006},{"x":800.8906249999998,"y":286.9281249999999},{"x":-177.20312500000006,"y":289.7031249999999}]
--------------------------------------------------------------------------------
/game-path/games/sicong/images/path_2.json:
--------------------------------------------------------------------------------
1 | [{"x":421.0624999999998,"y":737.8374999999999},{"x":795.2656249999998,"y":495.64374999999984},{"x":-139.83437500000008,"y":497.8656249999998}]
--------------------------------------------------------------------------------
/game-path/games/sicong/images/path_3.json:
--------------------------------------------------------------------------------
1 | [{"x":499.7656249999998,"y":-135.80000000000004},{"x":762.3687499999996,"y":290.65937499999984},{"x":-175.67500000000007,"y":298.0843749999999}]
--------------------------------------------------------------------------------
/game-path/games/sicong/images/path_4.json:
--------------------------------------------------------------------------------
1 | [{"x":337.86874999999986,"y":713.6218749999998},{"x":705.8937499999997,"y":328.7874999999999},{"x":-260.771875,"y":326.6312499999999}]
--------------------------------------------------------------------------------
/game-path/games/sicong/images/path_5.json:
--------------------------------------------------------------------------------
1 | [{"x":1183.8312499999997,"y":286.0843749999999},{"x":756.3968749999997,"y":300.9812499999998},{"x":-89.07812500000006,"y":312.0156249999999}]
--------------------------------------------------------------------------------
/game-path/games/sicong/images/path_6.json:
--------------------------------------------------------------------------------
1 | [{"x":751.7937499999998,"y":743.9968749999998},{"x":735.7531249999997,"y":312.8968749999999},{"x":-173.70625000000007,"y":315.35312499999986}]
--------------------------------------------------------------------------------
/game-path/games/sicong/images/path_7.json:
--------------------------------------------------------------------------------
1 | [{"x":759.3593749999998,"y":-161.28125000000003},{"x":767.2999999999997,"y":304.9187499999998},{"x":-145.45000000000005,"y":309.49374999999986}]
--------------------------------------------------------------------------------
/game-path/games/sicong/images/sicong.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/sicong/images/sicong.png
--------------------------------------------------------------------------------
/game-path/games/wuziqi-online/images/black.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/wuziqi-online/images/black.bmp
--------------------------------------------------------------------------------
/game-path/games/wuziqi-online/images/chessboard.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/wuziqi-online/images/chessboard.bmp
--------------------------------------------------------------------------------
/game-path/games/wuziqi-online/images/white.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/game-path/games/wuziqi-online/images/white.bmp
--------------------------------------------------------------------------------
/game-path/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 学习React
7 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/games/bezier-editor/src/editor-scene.js:
--------------------------------------------------------------------------------
1 | import {Scene} from './../../../util/import'
2 | import EditorLayer from './editor-layer'
3 | import UILayer from './ui-layer'
4 | class BezierScene extends Scene{
5 | constructor(){
6 | super();
7 | console.log('初始化贝塞尔曲线编辑器');
8 | this.setDesignSize(1920, 1280);
9 | }
10 | onLoad(){
11 | let layer = new EditorLayer();
12 | this.addLayer(layer);
13 | let uiLayer = new UILayer(layer);
14 | this.addLayer(uiLayer);
15 | }
16 | }
17 | export default BezierScene;
--------------------------------------------------------------------------------
/games/bezier-editor/src/ui-layer.js:
--------------------------------------------------------------------------------
1 | import {Layer, Button} from './../../../util/import'
2 | class UILayer extends Layer{
3 | constructor(editorLayer){
4 | super();
5 | let clearButton = new Button({
6 | text: 'clear',
7 | touchCb: ()=>{
8 | editorLayer.clear();
9 |
10 | }
11 | });
12 | clearButton.position = {
13 | x: 100,
14 | y: 200
15 | }
16 | this.addChild(clearButton);
17 |
18 | let exportButton = new Button({
19 | text: 'export',
20 | touchCb:()=>{
21 | editorLayer.export();
22 | }
23 | })
24 | exportButton.position = {
25 | x: 100,
26 | y: 300
27 | }
28 | this.addChild(exportButton);
29 | }
30 | }
31 | export default UILayer;
--------------------------------------------------------------------------------
/games/catch-fish/images/fish_path_0.json:
--------------------------------------------------------------------------------
1 | [{"x":-188.32187500000003,"y":153.07187499999992},{"x":185.95624999999984,"y":-102.90312500000005},{"x":233.89999999999986,"y":342.22187499999984},{"x":650.6749999999997,"y":685.2624999999998},{"x":1219.2781249999996,"y":310.3187499999999}]
--------------------------------------------------------------------------------
/games/catch-fish/images/fish_path_1.json:
--------------------------------------------------------------------------------
1 | [{"x":-193.61875000000006,"y":686.4624999999997},{"x":185.95624999999984,"y":-102.90312500000005},{"x":270.8093749999998,"y":496.95624999999984},{"x":650.6749999999997,"y":685.2624999999998},{"x":1100.2999999999997,"y":-197.78750000000002}]
--------------------------------------------------------------------------------
/games/catch-fish/images/fish_path_2.json:
--------------------------------------------------------------------------------
1 | [{"x":42.462499999999864,"y":826.9843749999998},{"x":185.95624999999984,"y":-102.90312500000005},{"x":566.9281249999998,"y":554.7156249999998},{"x":1081.7187499999998,"y":722.3593749999998},{"x":842.2437499999996,"y":-219.03125000000003}]
--------------------------------------------------------------------------------
/games/catch-fish/images/fish_path_3.json:
--------------------------------------------------------------------------------
1 | [{"x":42.462499999999864,"y":826.9843749999998},{"x":185.95624999999984,"y":-102.90312500000005},{"x":438.4999999999998,"y":-101.83437500000005},{"x":1081.7187499999998,"y":722.3593749999998},{"x":1144.7843749999997,"y":-162.76250000000005}]
--------------------------------------------------------------------------------
/games/catch-fish/images/fish_path_4.json:
--------------------------------------------------------------------------------
1 | [{"x":811.1468749999997,"y":921.8124999999998},{"x":-121.12187500000005,"y":271.4687499999999},{"x":102.50937499999986,"y":-63.856250000000045},{"x":1232.6656249999996,"y":826.3281249999998},{"x":1144.7843749999997,"y":-162.76250000000005},{"x":334.30624999999986,"y":212.43437499999993},{"x":554.3281249999998,"y":-279.884375}]
--------------------------------------------------------------------------------
/games/catch-fish/images/fish_path_5.json:
--------------------------------------------------------------------------------
1 | [{"x":1178.0281249999996,"y":534.5218749999998},{"x":688.1187499999996,"y":-56.67500000000007},{"x":134.29999999999984,"y":725.3499999999997}]
--------------------------------------------------------------------------------
/games/catch-fish/images/fish_path_6.json:
--------------------------------------------------------------------------------
1 | [{"x":1282.4374999999995,"y":99.13749999999993},{"x":386.7499999999998,"y":-171.69687500000003},{"x":134.29999999999984,"y":725.3499999999997},{"x":-174.50312500000007,"y":57.85937499999994}]
--------------------------------------------------------------------------------
/games/catch-fish/images/fish_path_7.json:
--------------------------------------------------------------------------------
1 | [{"x":1180.3718749999996,"y":-127.45625000000004},{"x":386.7499999999998,"y":-171.69687500000003},{"x":1019.7499999999998,"y":832.0749999999998},{"x":-210.59687500000004,"y":541.2437499999999}]
--------------------------------------------------------------------------------
/games/catch-fish/images/fish_path_8.json:
--------------------------------------------------------------------------------
1 | [{"x":1455.5374999999997,"y":251.43437499999982},{"x":449.9843749999998,"y":-177.65937500000004},{"x":1035.0781249999998,"y":580.1406249999998},{"x":-88.20625000000007,"y":762.9624999999999},{"x":-169.97500000000008,"y":-22.96250000000009}]
--------------------------------------------------------------------------------
/games/catch-fish/images/game_bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/catch-fish/images/game_bg.jpg
--------------------------------------------------------------------------------
/games/catch-fish/images/paodan1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/catch-fish/images/paodan1.png
--------------------------------------------------------------------------------
/games/catch-fish/images/paodan2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/catch-fish/images/paodan2.png
--------------------------------------------------------------------------------
/games/catch-fish/images/paodan3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/catch-fish/images/paodan3.png
--------------------------------------------------------------------------------
/games/catch-fish/images/paodan4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/catch-fish/images/paodan4.png
--------------------------------------------------------------------------------
/games/catch-fish/images/paodan5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/catch-fish/images/paodan5.png
--------------------------------------------------------------------------------
/games/catch-fish/images/paodan6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/catch-fish/images/paodan6.png
--------------------------------------------------------------------------------
/games/catch-fish/images/paodan7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/catch-fish/images/paodan7.png
--------------------------------------------------------------------------------
/games/catch-fish/images/texturespack.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/catch-fish/images/texturespack.png
--------------------------------------------------------------------------------
/games/catch-fish/src/bullet.js:
--------------------------------------------------------------------------------
1 | import {Sprite, director} from './../../../util/import'
2 | import resources from './../resources'
3 | import global from './../../global'
4 | class Bullet extends Sprite{
5 | constructor(spec){
6 |
7 | let level = spec.level;
8 | let startPos = spec.startPos;
9 | let endPos = spec.endPos;
10 | let angle = spec.angle;
11 |
12 |
13 | let texture = global.resource[resources['paodan' + level]].texture;
14 | super(texture);
15 | this.position = startPos;
16 | this.rotation = angle;
17 | this._direction = spec.direction;
18 | this._controller = spec.controller;
19 | this._index = spec.index;
20 | }
21 | update(dt){
22 | this.position = {
23 | x: this.position.x + this._direction.x * dt,
24 | y: this.position.y + this._direction.y * dt
25 | }
26 | if (this.position.x < 0 || this.position.x > director.designSize.width || this.position.y < 0){
27 | this._controller.removeBullet(this._index);
28 | }
29 | }
30 | }
31 | export default Bullet;
--------------------------------------------------------------------------------
/games/catch-fish/src/fish-type.js:
--------------------------------------------------------------------------------
1 | import resources from './../resources'
2 | const FishType = {
3 | hailuoshuimu: 'hailuoshuimu',
4 | bigred: 'bigred',
5 | denglongyu: 'denglongyu',
6 | fuyi: 'fuyi',
7 | gui: 'gui',
8 | hetun: 'hetun',
9 | jinshayu: 'jinshayu',
10 | red: 'red',
11 | shayu: 'shayu',
12 | shuimu: 'shuimu',
13 | yellow: 'yellow'
14 |
15 | };
16 | const FishWeight = {
17 | hailuoshuimu: 10,
18 | bigred: 10,
19 | denglongyu: 10,
20 | fuyi: 5,
21 | gui: 5,
22 | hetun: 10,
23 | shayu: 3,
24 | jinshayu: 2,
25 | red: 10
26 | // ,
27 | // shuimu: 10
28 | }
29 | const FishPath = {
30 | fish_path_0: resources.json_fish_path_0,
31 | fish_path_1: resources.json_fish_path_1,
32 | fish_path_2: resources.json_fish_path_2,
33 | fish_path_3: resources.json_fish_path_3,
34 | fish_path_4: resources.json_fish_path_4,
35 | fish_path_5: resources.json_fish_path_5,
36 | fish_path_6: resources.json_fish_path_6,
37 | fish_path_7: resources.json_fish_path_7,
38 | fish_path_8: resources.json_fish_path_8
39 |
40 | };
41 | export { FishType, FishWeight, FishPath };
--------------------------------------------------------------------------------
/games/catch-fish/src/game-scene.js:
--------------------------------------------------------------------------------
1 | import Scene from './../../../util/render/scene'
2 | import GameLayer from './game-layer'
3 | import { director } from '../../../util/import';
4 | class GameScene extends Scene {
5 | constructor() {
6 | super();
7 | console.log('进入')
8 |
9 | let sizeRate = director.width/director.height
10 |
11 | this.setDesignSize(1024, 1024 / sizeRate);
12 | }
13 |
14 | onLoad() {
15 | //初始化游戏层
16 | let layer = new GameLayer();
17 | this.addLayer(layer);
18 | }
19 | }
20 | export default GameScene;
--------------------------------------------------------------------------------
/games/common/package-texture.js:
--------------------------------------------------------------------------------
1 | import {SpriteFrame} from '../../util/import'
2 | import global from '../global'
3 | import resources from '../catch-fish/resources'
4 | import TextureInfo from './texture-info'
5 | class PackageTexture extends SpriteFrame{
6 | constructor( jsonTexturePacker,textureName){
7 | let textureInfo = new TextureInfo(jsonTexturePacker, textureName);
8 | super(global.resource[resources.texturespack].texture, textureInfo);
9 | }
10 | }
11 | export default PackageTexture;
--------------------------------------------------------------------------------
/games/common/state.js:
--------------------------------------------------------------------------------
1 | class State{
2 | constructor(){
3 | this._state = 'invalide';
4 | this._register = {};
5 | }
6 | setState(state){
7 | if (state == this._state){
8 | return;
9 | }
10 | if (this._register[state]){
11 | let handlerList = this._register[state];
12 | for (let i = 0 ; i < handlerList.length ; i ++){
13 | let handler = handlerList[i];
14 | handler.call(null);
15 | }
16 | }
17 | this._state = state;
18 | }
19 | addState(state, cb){
20 | if (this._register[state]){
21 | this._register[state].push(cb)
22 | }else{
23 | this._register[state] = [cb];
24 | }
25 | }
26 | getState(){
27 | return this._state;
28 | }
29 |
30 | }
31 | export default State;
--------------------------------------------------------------------------------
/games/common/texture-info.js:
--------------------------------------------------------------------------------
1 | import global from '../global'
2 | class TextureInfo {
3 | constructor(textureJson, textureName) {
4 | let json = global.resource[textureJson].data;
5 | let texturePos = json[textureName].textureRect;
6 | this.rotate =parseInt(json[textureName].textureRotated);
7 | this.frame = {
8 | x: texturePos[0],
9 | y: texturePos[1],
10 | width: this.rotate?texturePos[3]:texturePos[2],
11 | height: this.rotate?texturePos[2]:texturePos[3]
12 | }
13 | }
14 | }
15 | export default TextureInfo;
--------------------------------------------------------------------------------
/games/cut-fruit/images/apple_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/apple_0.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/apple_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/apple_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/apple_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/apple_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/apple_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/apple_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/apple_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/apple_e.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/apple_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/apple_e_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/apple_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/apple_e_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/apple_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/apple_pe.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/banana_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/banana_0.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/banana_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/banana_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/banana_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/banana_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/banana_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/banana_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/banana_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/banana_e.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/banana_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/banana_e_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/banana_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/banana_e_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/banana_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/banana_pe.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/baoji_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/baoji_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/baoji_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/baoji_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/baoji_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/baoji_4.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/baoji_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/baoji_5.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/bj.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/bj.jpg
--------------------------------------------------------------------------------
/games/cut-fruit/images/blade.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/blade.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/dargonfruit_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/dargonfruit_0.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/dargonfruit_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/dargonfruit_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/dargonfruit_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/dargonfruit_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/dargonfruit_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/dargonfruit_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/dargonfruit_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/dargonfruit_e.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/dargonfruit_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/dargonfruit_e_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/dargonfruit_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/dargonfruit_e_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/dargonfruit_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/dargonfruit_pe.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/go.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/go.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/icon_start.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/icon_start.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/jindutiao_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/jindutiao_0.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/jindutiao_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/jindutiao_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/jindutiao_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/jindutiao_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/jindutiao_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/jindutiao_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/jindutiao_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/jindutiao_4.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/kiwifruit_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/kiwifruit_0.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/kiwifruit_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/kiwifruit_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/kiwifruit_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/kiwifruit_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/kiwifruit_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/kiwifruit_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/kiwifruit_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/kiwifruit_e.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/kiwifruit_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/kiwifruit_e_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/kiwifruit_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/kiwifruit_e_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/kiwifruit_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/kiwifruit_pe.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/lemon_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/lemon_0.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/lemon_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/lemon_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/lemon_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/lemon_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/lemon_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/lemon_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/lemon_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/lemon_e.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/lemon_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/lemon_e_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/lemon_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/lemon_e_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/lemon_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/lemon_pe.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/logo.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/orange_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/orange_0.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/orange_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/orange_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/orange_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/orange_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/orange_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/orange_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/orange_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/orange_e.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/orange_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/orange_e_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/orange_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/orange_e_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/orange_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/orange_pe.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/peach_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/peach_0.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/peach_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/peach_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/peach_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/peach_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/peach_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/peach_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/peach_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/peach_e.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/peach_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/peach_e_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/peach_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/peach_e_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/peach_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/peach_pe.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pear_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pear_0.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pear_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pear_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pear_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pear_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pear_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pear_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pear_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pear_e.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pear_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pear_e_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pear_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pear_e_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pear_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pear_pe.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pineapple_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pineapple_0.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pineapple_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pineapple_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pineapple_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pineapple_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pineapple_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pineapple_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pineapple_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pineapple_e.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pineapple_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pineapple_e_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pineapple_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pineapple_e_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pineapple_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pineapple_pe.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pomegranate_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pomegranate_e.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pomegranate_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pomegranate_e_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pomegranate_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pomegranate_e_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pomegranate_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pomegranate_pe.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pomegranatefragments_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pomegranatefragments_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/pomegranatefragments_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/pomegranatefragments_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/strawberry_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/strawberry_0.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/strawberry_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/strawberry_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/strawberry_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/strawberry_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/strawberry_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/strawberry_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/strawberry_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/strawberry_e.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/strawberry_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/strawberry_e_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/strawberry_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/strawberry_e_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/strawberry_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/strawberry_pe.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/watermelon_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/watermelon_0.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/watermelon_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/watermelon_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/watermelon_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/watermelon_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/watermelon_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/watermelon_3.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/watermelon_e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/watermelon_e.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/watermelon_e_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/watermelon_e_1.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/watermelon_e_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/watermelon_e_2.png
--------------------------------------------------------------------------------
/games/cut-fruit/images/watermelon_pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/cut-fruit/images/watermelon_pe.png
--------------------------------------------------------------------------------
/games/cut-fruit/src/fruit-type.js:
--------------------------------------------------------------------------------
1 | const FruitType = {
2 | 1: 'apple',
3 | 2: 'banana',
4 | 3: 'dargonfruit',
5 | 4: 'kiwifruit',
6 | 5: 'lemon',
7 | 6: 'orange',
8 | 7: 'peach',
9 | 8: 'pear',
10 | 9: 'pineapple',
11 | 10: 'strawberry',
12 | 11: 'watermelon'
13 | }
14 | export default FruitType;
--------------------------------------------------------------------------------
/games/cut-fruit/src/game-scene.js:
--------------------------------------------------------------------------------
1 | import GameLayer from './game-layer'
2 | import Scene from './../../../util/render/scene'
3 | import ReadyLayer from './ready-layer'
4 | import { director } from '../../../util/import';
5 | class GameScene extends Scene {
6 | constructor() {
7 | super();
8 | console.log("显示切水果游戏");
9 | this.setDesignSize(800, 800/director.sizeRate);
10 |
11 | }
12 | onLoad() {
13 | let _gameLayer = new GameLayer();
14 | this.addLayer(_gameLayer);
15 | this.interactive = true;
16 | let readyLayer = new ReadyLayer(() => {
17 | this.removeChild(readyLayer);
18 | //把准备层删掉
19 |
20 | _gameLayer.startGame();
21 | });
22 | this.addChild(readyLayer);
23 | }
24 |
25 | }
26 | export default GameScene;
--------------------------------------------------------------------------------
/games/defines.js:
--------------------------------------------------------------------------------
1 | const defines = {
2 | wuziqi_server_url: 'localhost:3001'
3 | }
4 | export default defines;
--------------------------------------------------------------------------------
/games/game-import.js:
--------------------------------------------------------------------------------
1 |
2 | import LoadScene from './common/load-scene'
3 |
4 | import CutFruit from './cut-fruit/src/game-scene'
5 | import CatchFish from './catch-fish/src/game-scene'
6 | import SiCong from './sicong/src/game-scene'
7 | import ProtectRadish from './protect-radish/src/game-scene'
8 | import WuZiQiOnline from './wuziqi-online/src/game-scene'
9 |
10 |
11 | import CutFruitResources from './cut-fruit/resources'
12 | import CatchFishResources from './catch-fish/resources'
13 | import SiCongResources from './sicong/resources'
14 | import ProtectRadishResources from './protect-radish/resources'
15 | import WuZiQiOnlineResources from './wuziqi-online/resources'
16 |
17 | import BezierEditor from './bezier-editor/src/editor-scene'
18 | import PathEditor from './path-editor/src/editor-scene'
19 |
20 |
21 | export {
22 | //scene
23 | CutFruit,
24 | CatchFish,
25 | LoadScene,
26 | SiCong,
27 | ProtectRadish,
28 | WuZiQiOnline,
29 | //resources
30 | CutFruitResources,
31 | CatchFishResources,
32 | SiCongResources,
33 | ProtectRadishResources,
34 | WuZiQiOnlineResources,
35 | //editor
36 | BezierEditor,
37 | PathEditor
38 | }
--------------------------------------------------------------------------------
/games/global.js:
--------------------------------------------------------------------------------
1 | import {EventListener} from './../util/import'
2 | const global = {
3 | resource: [],
4 | event: new EventListener()
5 | };
6 | export default global;
--------------------------------------------------------------------------------
/games/index.js:
--------------------------------------------------------------------------------
1 | import gameContent from './game-content'
2 | import {helper} from './../util/import'
3 | window.onload = function(){
4 | console.log('window load');
5 | gameContent.showApp();
6 |
7 | let key = helper.getQueryString('game-type');
8 | console.log('key', key);
9 |
10 | gameContent.showGame(key);
11 | }
--------------------------------------------------------------------------------
/games/path-editor/src/editor-scene.js:
--------------------------------------------------------------------------------
1 | import {Scene} from './../../../util/import'
2 | import EditorLayer from './editor-layer'
3 | import UILayer from './ui-layer'
4 | class EditorScene extends Scene{
5 | constructor(){
6 | super();
7 | this.setDesignSize(1920, 1280);
8 |
9 | }
10 | onLoad(){
11 | let editorLayer = new EditorLayer();
12 | this.addLayer(editorLayer);
13 | let uiLayer = new UILayer(editorLayer);
14 | this.addLayer(uiLayer);
15 | }
16 | }
17 | export default EditorScene;
--------------------------------------------------------------------------------
/games/path-editor/src/ui-layer.js:
--------------------------------------------------------------------------------
1 | import {Layer, Button} from './../../../util/import'
2 | class UILayer extends Layer{
3 | constructor(editorLayer){
4 | super();
5 | let clearButton = new Button({
6 | text: 'clear',
7 | touchCb: ()=>{
8 | if (editorLayer){
9 | editorLayer.clearCb();
10 | }
11 | }
12 | });
13 | this.addChild(clearButton);
14 | clearButton.position = {
15 | x: 100,
16 | y: 200
17 | }
18 |
19 | let exportButton = new Button({
20 | text: 'export',
21 | touchCb: ()=>{
22 | if (editorLayer){
23 | editorLayer.exportCb();
24 | }
25 | }
26 | });
27 | this.addChild(exportButton);
28 | exportButton.position = {
29 | x: 100,
30 | y: 400
31 | }
32 | }
33 | }
34 | export default UILayer;
--------------------------------------------------------------------------------
/games/protect-radish/images/Bg3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/Bg3.png
--------------------------------------------------------------------------------
/games/protect-radish/images/Bg4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/Bg4.png
--------------------------------------------------------------------------------
/games/protect-radish/images/CloseNormal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/CloseNormal.png
--------------------------------------------------------------------------------
/games/protect-radish/images/CloseSelected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/CloseSelected.png
--------------------------------------------------------------------------------
/games/protect-radish/images/Data/ResData.json:
--------------------------------------------------------------------------------
1 | {
2 | "png": [
3 | "ui/ui_Battery.png",
4 | "ui/ui_Bullet.png",
5 | "ui/ui_Monster.png",
6 | "ui/ui_Button.png",
7 | "ui/ui_Select.png",
8 | "ui/ui_Button_2.png",
9 | "ui/ui_Menu.png",
10 | "ui/ui_Button_3.png",
11 | "ui/ui_Result.png",
12 | "ui/ui_obstacle.png",
13 | "ui/ui_Item.png",
14 | "ui/ui_luobo.png"
15 | ],
16 | "plist": [
17 | "ui/ui_Battery.plist",
18 | "ui/ui_Bullet.plist",
19 | "ui/ui_Monster.plist",
20 | "ui/ui_Button.plist",
21 | "ui/ui_Select.plist",
22 | "ui/ui_Button_2.plist",
23 | "ui/ui_Menu.plist",
24 | "ui/ui_Button_3.plist",
25 | "ui/ui_Result.plist",
26 | "ui/ui_obstacle.plist",
27 | "ui/ui_Item.plist",
28 | "ui/ui_luobo.plist"
29 | ],
30 | "music": [
31 | "Music/bgm_boss.mp3",
32 | "Music/bgm_fever.mp3",
33 | "Music/bgm_minigame.mp3",
34 | "Music/bgm_opening.mp3"
35 | ]
36 | }
--------------------------------------------------------------------------------
/games/protect-radish/images/Data/obstaclesDt.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": 7001,
4 | "Coins": 0,
5 | "hp": 10000,
6 | "img": "ui_obstacles_01.png"
7 | },
8 | {
9 | "id": 7002,
10 | "Coins": 100,
11 | "hp": 200,
12 | "img": "ui_obstacles_02.png"
13 | },
14 | {
15 | "id": 7003,
16 | "Coins": 200,
17 | "hp": 400,
18 | "img": "ui_obstacles_03.png"
19 | }
20 | ]
--------------------------------------------------------------------------------
/games/protect-radish/images/Data/propsData.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "nId": 7001,
4 | "nAck": 1000,
5 | "nAddGold": 0,
6 | "fAddAckInterval": 0,
7 | "img": "ui_Props_01_02.png",
8 | "effect": [
9 | "ui_Props_01_03.png",
10 | "ui_Props_01_01.png",
11 | "ui_Props_01_04.png",
12 | "ui_Props_01_05.png",
13 | "ui_Props_01_06.png",
14 | "ui_Props_01_07.png"
15 | ]
16 | },
17 | {
18 | "nId": 7002,
19 | "nAck": 0,
20 | "nAddGold": 0,
21 | "fAddAckInterval": 0.5,
22 | "img": "ui_Props_02_01.png",
23 | "effect": [
24 | "ui_Props_02_02.png",
25 | "ui_Props_02_03.png",
26 | "ui_Props_02_04.png"
27 | ]
28 | },
29 | {
30 | "nId": 7003,
31 | "nAck": 0,
32 | "nAddGold": 500,
33 | "fAddAckInterval": 0,
34 | "img": "ui_Props_03_01.png",
35 | "effect": [
36 | "ui_Props_02_02.png",
37 | "ui_Props_02_03.png",
38 | "ui_Props_02_04.png"
39 | ]
40 | }
41 | ]
--------------------------------------------------------------------------------
/games/protect-radish/images/Default-Landscape~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/Default-Landscape~ipad.png
--------------------------------------------------------------------------------
/games/protect-radish/images/HelloWorld.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/HelloWorld.png
--------------------------------------------------------------------------------
/games/protect-radish/images/Item1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/Item1.png
--------------------------------------------------------------------------------
/games/protect-radish/images/Item2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/Item2.png
--------------------------------------------------------------------------------
/games/protect-radish/images/Item3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/Item3.png
--------------------------------------------------------------------------------
/games/protect-radish/images/Item4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/Item4.png
--------------------------------------------------------------------------------
/games/protect-radish/images/fonts/Marker Felt.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/fonts/Marker Felt.ttf
--------------------------------------------------------------------------------
/games/protect-radish/images/fonts/arial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/fonts/arial.ttf
--------------------------------------------------------------------------------
/games/protect-radish/images/res/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/res/.gitkeep
--------------------------------------------------------------------------------
/games/protect-radish/images/sucai.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/sucai.png
--------------------------------------------------------------------------------
/games/protect-radish/images/sucai2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/sucai2.png
--------------------------------------------------------------------------------
/games/protect-radish/images/ui_Battery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/ui_Battery.png
--------------------------------------------------------------------------------
/games/protect-radish/images/ui_Item.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/ui_Item.png
--------------------------------------------------------------------------------
/games/protect-radish/images/ui_Menu.json:
--------------------------------------------------------------------------------
1 | {
2 | "ui_Menu_Bg.png":{
3 | "offset":[2,2,960,640],
4 | "rotated":[0,0],
5 | "sourceColorRect":[0,0,960,640],
6 | "sourceSize":"0"},
7 | "ui_Menu_adventure.jpg":{
8 | "offset":[2,644,271,87],
9 | "rotated":[0,0],
10 | "sourceColorRect":[0,0,271,87],
11 | "sourceSize":"2"}
12 | }
--------------------------------------------------------------------------------
/games/protect-radish/images/ui_Menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/ui_Menu.png
--------------------------------------------------------------------------------
/games/protect-radish/images/ui_Monster.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/ui_Monster.png
--------------------------------------------------------------------------------
/games/protect-radish/images/ui_ProgressBar_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/ui_ProgressBar_01.png
--------------------------------------------------------------------------------
/games/protect-radish/images/ui_ProgressBar_02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/ui_ProgressBar_02.png
--------------------------------------------------------------------------------
/games/protect-radish/images/ui_Select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/ui_Select.png
--------------------------------------------------------------------------------
/games/protect-radish/images/ui_luobo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/ui_luobo.png
--------------------------------------------------------------------------------
/games/protect-radish/images/ui_obstacle.json:
--------------------------------------------------------------------------------
1 | {
2 | "ui_obstacles_01.png":{
3 | "offset":[2,2,97,76],
4 | "rotated":[0,0],
5 | "sourceColorRect":[0,0,97,76],
6 | "sourceSize":"0"},
7 | "ui_obstacles_02.png":{
8 | "offset":[183,2,76,61],
9 | "rotated":[0,1],
10 | "sourceColorRect":[0,2,76,61],
11 | "sourceSize":"2"},
12 | "ui_obstacles_03.png":{
13 | "offset":[183,80,76,57],
14 | "rotated":[0,0],
15 | "sourceColorRect":[0,0,76,57],
16 | "sourceSize":"2"},
17 | "ui_obstacles_04.png":{
18 | "offset":[101,2,80,79],
19 | "rotated":[0,0],
20 | "sourceColorRect":[0,0,80,79],
21 | "sourceSize":"0"},
22 | "ui_obstacles_05.png":{
23 | "offset":[2,158,79,77],
24 | "rotated":[0,0],
25 | "sourceColorRect":[0,0,79,77],
26 | "sourceSize":"2"}
27 | }
--------------------------------------------------------------------------------
/games/protect-radish/images/ui_obstacle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/protect-radish/images/ui_obstacle.png
--------------------------------------------------------------------------------
/games/protect-radish/src/game-layer.js:
--------------------------------------------------------------------------------
1 | import { Layer, Sprite, director } from './../../../util/import'
2 | import resources from './../resources'
3 | import global from './../../global'
4 | import uiBatterySourceMap from './../ui_Battery-source-map'
5 | import PackageTexture from './../../common/package-texture'
6 | class GameLayer extends Layer {
7 | constructor() {
8 | super();
9 |
10 | let bg = new Sprite(global.resource[resources.Bg3].texture);
11 | this.addChild(bg);
12 | bg.position = {
13 | x: director.designSize.width * 0.5,
14 | y: director.designSize.height * 0.5
15 | }
16 |
17 | // let sp = new Sprite(new PackageTexture(resources.json_ui_Battery, uiBatterySourceMap.ui_Battery_01_01));
18 | // this.addChild(sp);
19 | // sp.position = {
20 | // x: 100,
21 | // y: 100
22 | // }
23 |
24 |
25 | }
26 | }
27 | export default GameLayer;
--------------------------------------------------------------------------------
/games/protect-radish/src/game-scene.js:
--------------------------------------------------------------------------------
1 | import {Scene} from './../../../util/import'
2 | import GameLayer from './game-layer'
3 | class GameScene extends Scene{
4 | constructor() {
5 | super();
6 | this.setDesignSize(960, 640);
7 | }
8 | onLoad(){
9 | let gameLayer = new GameLayer();
10 | this.addLayer(gameLayer);
11 | }
12 | }
13 | export default GameScene;
--------------------------------------------------------------------------------
/games/protect-radish/ui_Menu-source-map.js:
--------------------------------------------------------------------------------
1 | const resourceMap = {
2 | ui_Menu_Bg: "ui_Menu_Bg.png"
3 | }
4 | export default resourceMap;
--------------------------------------------------------------------------------
/games/protect-radish/ui_Monster-source-map.js:
--------------------------------------------------------------------------------
1 | const resourceMap = {
2 | ui_L_Monsters_01_01: "ui_L_Monsters_01_01.png",
3 | ui_L_Monsters_01_02: "ui_L_Monsters_01_02.png",
4 | ui_L_Monsters_02_01: "ui_L_Monsters_02_01.png",
5 | ui_L_Monsters_02_02: "ui_L_Monsters_02_02.png",
6 | ui_L_Monsters_03_01: "ui_L_Monsters_03_01.png",
7 | ui_L_Monsters_03_02: "ui_L_Monsters_03_02.png",
8 | ui_L_Monsters_04_01: "ui_L_Monsters_04_01.png",
9 | ui_L_Monsters_04_02: "ui_L_Monsters_04_02.png",
10 | ui_R_Monsters_01_01: "ui_R_Monsters_01_01.png",
11 | ui_R_Monsters_01_02: "ui_R_Monsters_01_02.png",
12 | ui_R_Monsters_02_01: "ui_R_Monsters_02_01.png",
13 | ui_R_Monsters_02_02: "ui_R_Monsters_02_02.png",
14 | ui_R_Monsters_03_01: "ui_R_Monsters_03_01.png",
15 | ui_R_Monsters_03_02: "ui_R_Monsters_03_02.png",
16 | ui_R_Monsters_04_01: "ui_R_Monsters_04_01.png",
17 | ui_R_Monsters_04_02: "ui_R_Monsters_04_02.png"
18 | }
19 | export default resourceMap;
--------------------------------------------------------------------------------
/games/protect-radish/ui_Select-source-map.js:
--------------------------------------------------------------------------------
1 | const resourceMap = {
2 | ui_S_Bg: "ui_S_Bg.png",
3 | ui_SelBattery_01: "ui_SelBattery_01.png",
4 | ui_SelBattery_02: "ui_SelBattery_02.png",
5 | ui_SelBattery_03: "ui_SelBattery_03.png",
6 | ui_SelBattery_04: "ui_SelBattery_04.png",
7 | ui_SelBattery_05: "ui_SelBattery_05.png",
8 | ui_SelBattery_06: "ui_SelBattery_06.png",
9 | ui_SelBattery_07: "ui_SelBattery_07.png",
10 | ui_map_01: "ui_map_01.png",
11 | ui_map_01_01: "ui_map_01_01.png",
12 | ui_map_02: "ui_map_02.png",
13 | ui_map_02_01: "ui_map_02_01.png",
14 | ui_map_03: "ui_map_03.png",
15 | ui_map_03_01: "ui_map_03_01.png",
16 | ui_map_04: "ui_map_04.png",
17 | ui_map_04_01: "ui_map_04_01.png"
18 | }
19 | export default resourceMap;
--------------------------------------------------------------------------------
/games/protect-radish/ui_luobo-source-map.js:
--------------------------------------------------------------------------------
1 | const resourceMap = {
2 | ui_luobo_01: "ui_luobo_01.png",
3 | ui_luobo_02: "ui_luobo_02.png",
4 | ui_luobo_03: "ui_luobo_03.png",
5 | ui_luobo_04: "ui_luobo_04.png",
6 | ui_luobo_05: "ui_luobo_05.png",
7 | ui_luobo_06: "ui_luobo_06.png",
8 | ui_luobo_07: "ui_luobo_07.png",
9 | ui_luobo_08: "ui_luobo_08.png"
10 | }
11 | export default resourceMap;
--------------------------------------------------------------------------------
/games/protect-radish/ui_obstacle-source-map.js:
--------------------------------------------------------------------------------
1 | const resourceMap = {
2 | ui_obstacles_01: "ui_obstacles_01.png",
3 | ui_obstacles_02: "ui_obstacles_02.png",
4 | ui_obstacles_03: "ui_obstacles_03.png",
5 | ui_obstacles_04: "ui_obstacles_04.png",
6 | ui_obstacles_05: "ui_obstacles_05.png"
7 | }
8 | export default resourceMap;
--------------------------------------------------------------------------------
/games/resources-manager.js:
--------------------------------------------------------------------------------
1 | export class ResourceManager{
2 | constructor(){
3 | this.resources = {};
4 | }
5 | load(resUrl, cb){
6 | let loader = new PIXI.loader.Loader();
7 | loader.add(resUrl, resUrl);
8 | loader.load((loader, resources)=>{
9 | if (cb){
10 | cb();
11 | }
12 | })
13 | }
14 | loadList(resList, cb, preCb){
15 | let loadCount = 0;
16 | let loadTotalCount = resList.length;
17 | const loadCb = function(){
18 | loadCount ++;
19 | if (preCb){
20 | preCb(loadCount)
21 | }
22 | if (loadCount === loadTotalCount){
23 | if(cb){
24 | cb();
25 | }
26 | }
27 | }.bind(this);
28 | for (let i = 0 ; i < resList.length; i ++){
29 | this.load(resList[i], loadCb);
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/games/sicong/images/bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/sicong/images/bg.jpg
--------------------------------------------------------------------------------
/games/sicong/images/check_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/sicong/images/check_0.png
--------------------------------------------------------------------------------
/games/sicong/images/check_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/sicong/images/check_1.png
--------------------------------------------------------------------------------
/games/sicong/images/hotdog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/sicong/images/hotdog.png
--------------------------------------------------------------------------------
/games/sicong/images/path_0.json:
--------------------------------------------------------------------------------
1 | [{"x":1208.5906249999996,"y":-93.65000000000006},{"x":846.7437499999996,"y":280.7312499999998},{"x":-258.11875000000003,"y":283.5906249999998}]
--------------------------------------------------------------------------------
/games/sicong/images/path_1.json:
--------------------------------------------------------------------------------
1 | [{"x":435.79062499999975,"y":-38.70312500000006},{"x":800.8906249999998,"y":286.9281249999999},{"x":-177.20312500000006,"y":289.7031249999999}]
--------------------------------------------------------------------------------
/games/sicong/images/path_2.json:
--------------------------------------------------------------------------------
1 | [{"x":421.0624999999998,"y":737.8374999999999},{"x":795.2656249999998,"y":495.64374999999984},{"x":-139.83437500000008,"y":497.8656249999998}]
--------------------------------------------------------------------------------
/games/sicong/images/path_3.json:
--------------------------------------------------------------------------------
1 | [{"x":499.7656249999998,"y":-135.80000000000004},{"x":762.3687499999996,"y":290.65937499999984},{"x":-175.67500000000007,"y":298.0843749999999}]
--------------------------------------------------------------------------------
/games/sicong/images/path_4.json:
--------------------------------------------------------------------------------
1 | [{"x":337.86874999999986,"y":713.6218749999998},{"x":705.8937499999997,"y":328.7874999999999},{"x":-260.771875,"y":326.6312499999999}]
--------------------------------------------------------------------------------
/games/sicong/images/path_5.json:
--------------------------------------------------------------------------------
1 | [{"x":1183.8312499999997,"y":286.0843749999999},{"x":756.3968749999997,"y":300.9812499999998},{"x":-89.07812500000006,"y":312.0156249999999}]
--------------------------------------------------------------------------------
/games/sicong/images/path_6.json:
--------------------------------------------------------------------------------
1 | [{"x":751.7937499999998,"y":743.9968749999998},{"x":735.7531249999997,"y":312.8968749999999},{"x":-173.70625000000007,"y":315.35312499999986}]
--------------------------------------------------------------------------------
/games/sicong/images/path_7.json:
--------------------------------------------------------------------------------
1 | [{"x":759.3593749999998,"y":-161.28125000000003},{"x":767.2999999999997,"y":304.9187499999998},{"x":-145.45000000000005,"y":309.49374999999986}]
--------------------------------------------------------------------------------
/games/sicong/images/sicong.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/sicong/images/sicong.png
--------------------------------------------------------------------------------
/games/sicong/resources.js:
--------------------------------------------------------------------------------
1 | const res =
2 | {
3 | "bg": "./games/sicong/images/bg.jpg",
4 | "check_0": "./games/sicong/images/check_0.png",
5 | "check_1": "./games/sicong/images/check_1.png",
6 | "json_game-config": "./games/sicong/images/game-config.json",
7 | "hotdog": "./games/sicong/images/hotdog.png",
8 | "json_path_0": "./games/sicong/images/path_0.json",
9 | "json_path_1": "./games/sicong/images/path_1.json",
10 | "json_path_2": "./games/sicong/images/path_2.json",
11 | "json_path_3": "./games/sicong/images/path_3.json",
12 | "json_path_4": "./games/sicong/images/path_4.json",
13 | "json_path_5": "./games/sicong/images/path_5.json",
14 | "json_path_6": "./games/sicong/images/path_6.json",
15 | "json_path_7": "./games/sicong/images/path_7.json",
16 | "sicong": "./games/sicong/images/sicong.png"
17 | };
18 | export default res;
--------------------------------------------------------------------------------
/games/sicong/src/enemy.js:
--------------------------------------------------------------------------------
1 | import {Sprite} from './../../../util/import'
2 | import resources from './../resources'
3 | import global from './../../global'
4 | import EnemyAi from './enemy-ai'
5 | class Enemy extends Sprite{
6 | constructor(type, controller){
7 | super(global.resource[resources[type]].texture);
8 | this.scale.set(0.5);
9 | this._enemyAi = new EnemyAi(this);
10 | this._controller = controller;
11 | }
12 | update(dt){
13 | if (this._enemyAi){
14 | this._enemyAi.update(dt);
15 | }
16 | }
17 | runEnd (){
18 | if (this._controller){
19 | this._controller.enemyRunEnd(this);
20 | }
21 | }
22 | }
23 |
24 | export default Enemy;
--------------------------------------------------------------------------------
/games/sicong/src/game-scene.js:
--------------------------------------------------------------------------------
1 | import {Scene} from './../../../util/import'
2 | import GameLayer from './game-layer'
3 | import ReadyLayer from './ready-layer'
4 | class GameScene extends Scene{
5 | constructor(){
6 | super();
7 | this.setDesignSize(800, 480);
8 | }
9 | onLoad(){
10 | this.gameLayer = new GameLayer(this);
11 | this.addLayer(this.gameLayer);
12 |
13 |
14 | this.readyLayer = new ReadyLayer(this.gameLayer);
15 | this.addLayer(this.readyLayer);
16 | }
17 | gameOver(){
18 | if (this.readyLayer){
19 | this.readyLayer.showReady();
20 | }
21 | }
22 |
23 | }
24 | export default GameScene;
--------------------------------------------------------------------------------
/games/sicong/src/hot-dog.js:
--------------------------------------------------------------------------------
1 | import { Sprite, State, director } from './../../../util/import'
2 | import global from './../../global'
3 | import resources from './../resources'
4 |
5 | class HotDog extends Sprite {
6 | constructor() {
7 | super(global.resource[resources.hotdog].texture);
8 | this.scale.set(0.2);
9 | this._state = new State();
10 | this._cb = undefined;
11 | this._state.addState('fire-end', () => {
12 | if (this._cb) {
13 | this._cb();
14 | }
15 | });
16 | }
17 | update(dt) {
18 | if (this._state.getState() == 'fire') {
19 | this.position.x += dt;
20 | if (this.position.x - this.width * 0.5 > director.width) {
21 | this._state.setState('fire-end');
22 | }
23 | }
24 | }
25 | fire(cb) {
26 | this._state.setState('fire');
27 | this._cb = cb;
28 | }
29 | }
30 | export default HotDog;
--------------------------------------------------------------------------------
/games/wuziqi-online/images/black.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/wuziqi-online/images/black.bmp
--------------------------------------------------------------------------------
/games/wuziqi-online/images/chessboard.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/wuziqi-online/images/chessboard.bmp
--------------------------------------------------------------------------------
/games/wuziqi-online/images/white.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/games/wuziqi-online/images/white.bmp
--------------------------------------------------------------------------------
/games/wuziqi-online/resources.js:
--------------------------------------------------------------------------------
1 | const res =
2 | {
3 | "black": "./games/wuziqi-online/images/black.bmp",
4 | "chessboard": "./games/wuziqi-online/images/chessboard.bmp",
5 | "white": "./games/wuziqi-online/images/white.bmp"
6 | };
7 | export default res;
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 学习React
7 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "fishjoy",
3 | "version": "0.0.1",
4 | "private": true,
5 | "devDependencies": {
6 | "babel-core": "6.21.0",
7 | "babel-loader": "6.2.10",
8 | "babel-polyfill": "6.20.0",
9 | "babel-preset-env": "^1.6.1",
10 | "ftp": "^0.3.10",
11 | "google-protobuf": "3.3.0",
12 | "mp3-duration": "^1.1.0",
13 | "request": "^2.83.0",
14 | "webpack": "1.14.0"
15 | },
16 | "dependencies": {
17 | "tween.js": "^16.6.0",
18 | "pixi-multistyle-text": "^0.6.0",
19 | "pixi-particles": "^2.1.9",
20 | "pixi-richtext": "^1.0.17",
21 | "pixi-spine": "^1.5.9",
22 | "pixi.js": "^4.6.1",
23 | "socket.io": "^2.1.0"
24 | },
25 | "scripts":{
26 | "start": "npx webpack --config webpack.config.js -w"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/tools/helper/http-helper.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by wizard on 2017/9/26.
3 | */
4 | const request = require('request');
5 |
6 | const HttpHelper = function () {
7 | let that = {};
8 |
9 | that.request = async function (uri) {
10 | return new Promise(function (resolve, reject) {
11 | //todo yuchel: query uri
12 | request(uri, function (err, res, resBody) {
13 | if (err) {
14 | reject(err);
15 | return;
16 | }
17 | resolve(resBody);
18 | });
19 | });
20 | };
21 |
22 | return that;
23 | };
24 |
25 | let helper = HttpHelper();
26 |
27 | module.exports = helper;
--------------------------------------------------------------------------------
/tools/helper/process-helper.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by wizard on 2017/10/18.
3 | */
4 |
5 | const process = require('child_process');
6 |
7 | const ProcessHelper = function () {
8 | let that = {};
9 |
10 | that.exec = function (cmd) {
11 | return new Promise(function (resolve, reject) {
12 | process.exec(cmd, function (err, stdout, stderr) {
13 | if (err) {
14 | reject(err);
15 | return;
16 | }
17 |
18 | if(stderr) {
19 | reject(stderr);
20 | return;
21 | }
22 |
23 | resolve(stdout);
24 | });
25 | });
26 | };
27 |
28 | return that;
29 | };
30 |
31 | const processHelper = ProcessHelper();
32 |
33 | module.exports = processHelper;
--------------------------------------------------------------------------------
/toturial/LF-fisher-master.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/LF-fisher-master.zip
--------------------------------------------------------------------------------
/toturial/app/img/bunny.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/app/img/bunny.png
--------------------------------------------------------------------------------
/toturial/app/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 学习React
7 |
14 |
15 |
16 |
17 |
18 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/toturial/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "app",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "start": "echo \"Hello World\""
9 | },
10 | "author": "",
11 | "license": "ISC",
12 | "dependencies": {
13 | "pixi.js": "^4.6.1"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/toturial/fisher/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["@babel/env", {
4 | "useBuiltIns": "entry"
5 | }]
6 | ],
7 |
8 | "plugins": [
9 | "@babel/proposal-class-properties",
10 | "@babel/plugin-proposal-optional-chaining",
11 | "@babel/proposal-export-default-from",
12 | "@babel/proposal-export-namespace-from",
13 | ["@babel/transform-runtime", {
14 | "corejs": false,
15 | "helpers": false,
16 | "regenerator": true
17 | }]
18 | ]
19 | }
--------------------------------------------------------------------------------
/toturial/fisher/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | package-lock.json
--------------------------------------------------------------------------------
/toturial/fisher/context/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["@babel/env"]
4 | ],
5 |
6 | "plugins": [
7 | "@babel/proposal-class-properties",
8 | ["@babel/transform-runtime", {
9 | "corejs": false,
10 | "helpers": false,
11 | "regenerator": true
12 | }]
13 | ]
14 | }
--------------------------------------------------------------------------------
/toturial/fisher/context/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "logi.context",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "build": "webpack -p",
8 | "dev": "webpack -w",
9 | "test": "echo \"Error: no test specified\" && exit 1"
10 | },
11 | "browserslist": [
12 | "ios >= 8",
13 | "android >= 5"
14 | ],
15 | "author": "JetLu",
16 | "license": "ISC",
17 | "devDependencies": {
18 | "webpack": "^4.20.2",
19 | "webpack-cli": "^3.1.1"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/toturial/fisher/context/src/app.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/context/src/app.js
--------------------------------------------------------------------------------
/toturial/fisher/context/webpack.config.js:
--------------------------------------------------------------------------------
1 | const
2 | path = require('path'),
3 | webpack = require('webpack')
4 |
5 | const isProd = process.env.NODE_ENV === 'production' ? true : false
6 |
7 | module.exports = {
8 | entry: [
9 | './src/app.js'
10 | ],
11 |
12 | output: {
13 | path: path.resolve('../dist/context'),
14 | filename: 'index.js'
15 | },
16 |
17 | devtool: isProd ? false : 'source-map',
18 |
19 | module: {
20 | rules: [
21 | {
22 | test: /\.js$/,
23 | use: ['babel-loader'],
24 | exclude: /node_modules/
25 | }
26 | ]
27 | },
28 |
29 | mode: isProd ? 'production' : 'development'
30 | }
--------------------------------------------------------------------------------
/toturial/fisher/dist/game.json:
--------------------------------------------------------------------------------
1 | {
2 | "deviceOrientation": "landscape",
3 | "showStatusBar": false,
4 | "openDataContext": "context"
5 | }
6 |
--------------------------------------------------------------------------------
/toturial/fisher/dist/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目配置文件。",
3 | "packOptions": {
4 | "ignore": [
5 | {
6 | "type": "suffix",
7 | "value": ".map"
8 | }
9 | ]
10 | },
11 | "setting": {
12 | "urlCheck": false,
13 | "es6": false,
14 | "postcss": false,
15 | "minified": false,
16 | "newFeature": true
17 | },
18 | "compileType": "game",
19 | "libVersion": "2.3.0",
20 | "appid": "wx0042170933ac034d",
21 | "projectname": "fisher",
22 | "isGameTourist": false,
23 | "condition": {
24 | "search": {
25 | "current": -1,
26 | "list": []
27 | },
28 | "conversation": {
29 | "current": -1,
30 | "list": []
31 | },
32 | "game": {
33 | "currentL": -1,
34 | "list": []
35 | },
36 | "miniprogram": {
37 | "current": -1,
38 | "list": []
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/toturial/fisher/dist/static/textures/misc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/dist/static/textures/misc.png
--------------------------------------------------------------------------------
/toturial/fisher/dist/static/textures/misc/bkg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/dist/static/textures/misc/bkg.jpg
--------------------------------------------------------------------------------
/toturial/fisher/dist/static/textures/misc/fish.1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/dist/static/textures/misc/fish.1.png
--------------------------------------------------------------------------------
/toturial/fisher/dist/static/textures/misc/fish.2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/dist/static/textures/misc/fish.2.png
--------------------------------------------------------------------------------
/toturial/fisher/dist/static/textures/misc/fish.3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/dist/static/textures/misc/fish.3.png
--------------------------------------------------------------------------------
/toturial/fisher/dist/static/textures/misc/fish.4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/dist/static/textures/misc/fish.4.png
--------------------------------------------------------------------------------
/toturial/fisher/dist/static/textures/misc/overlay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/dist/static/textures/misc/overlay.png
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/Canvas.js:
--------------------------------------------------------------------------------
1 | import { HTMLCanvasElement, CanvasRenderingContext2D, WebGLRenderingContext } from './constructor'
2 | import HTMLElement from './HTMLElement'
3 | import document from './document'
4 |
5 | let hasModifiedCanvasPrototype = false
6 | let hasInit2DContextConstructor = false
7 | let hasInitWebGLContextConstructor = false
8 |
9 | export default function Canvas() {
10 | const canvas = wx.createCanvas()
11 |
12 | canvas.type = 'canvas'
13 |
14 | canvas.__proto__.__proto__ = new HTMLCanvasElement()
15 |
16 | const _getContext = canvas.getContext
17 |
18 | canvas.getBoundingClientRect = () => {
19 | const ret = {
20 | top: 0,
21 | left: 0,
22 | width: window.innerWidth,
23 | height: window.innerHeight
24 | }
25 | return ret
26 | }
27 |
28 | return canvas
29 | }
30 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/Element.js:
--------------------------------------------------------------------------------
1 | import Node from './Node'
2 |
3 | export default class ELement extends Node {
4 | className = ''
5 | children = []
6 |
7 | constructor() {
8 | super()
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/Event.js:
--------------------------------------------------------------------------------
1 | import {noop} from './util'
2 |
3 | export default class Event {
4 | cancelBubble = false
5 | cancelable = false
6 | target = null
7 | timestampe = Date.now()
8 | preventDefault = noop
9 | stopPropagation = noop
10 |
11 | constructor(type) {
12 | this.type = type
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/EventIniter/TouchEvent.js:
--------------------------------------------------------------------------------
1 | import * as window from '../window'
2 | import document from '../document'
3 | import { noop } from '../util/'
4 |
5 | export default class TouchEvent {
6 | target = window.canvas
7 | currentTarget = window.canvas
8 | touches = []
9 | targetTouches = []
10 | changedTouches = []
11 | preventDefault = noop
12 | stopPropagation = noop
13 | constructor(type) {
14 | this.type = type
15 | }
16 | }
17 |
18 | function touchEventHandlerFactory(type) {
19 | return (event) => {
20 | const touchEvent = new TouchEvent(type)
21 |
22 | touchEvent.touches = event.touches
23 | touchEvent.targetTouches = Array.prototype.slice.call(event.touches)
24 | touchEvent.changedTouches = event.changedTouches
25 | touchEvent.timeStamp = event.timeStamp
26 | document.dispatchEvent(touchEvent)
27 | }
28 | }
29 |
30 | wx.onTouchStart(touchEventHandlerFactory('touchstart'))
31 | wx.onTouchMove(touchEventHandlerFactory('touchmove'))
32 | wx.onTouchEnd(touchEventHandlerFactory('touchend'))
33 | wx.onTouchCancel(touchEventHandlerFactory('touchcancel'))
34 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/EventIniter/index.js:
--------------------------------------------------------------------------------
1 | import './TouchEvent'
2 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/FileReader.js:
--------------------------------------------------------------------------------
1 | /*
2 | * TODO 使用 wx.readFile 来封装 FileReader
3 | */
4 | export default class FileReader {
5 | construct() {
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/HTMLAudioElement.js:
--------------------------------------------------------------------------------
1 | import HTMLMediaElement from './HTMLMediaElement'
2 |
3 | export default class HTMLAudioElement extends HTMLMediaElement {
4 | constructor() {
5 | super('audio')
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/HTMLElement.js:
--------------------------------------------------------------------------------
1 | import Element from './Element'
2 | import { noop } from './util'
3 | import { innerWidth, innerHeight } from './WindowProperties'
4 |
5 | export default class HTMLElement extends Element {
6 | className = ''
7 | childern = []
8 | style = {
9 | width: `${innerWidth}px`,
10 | height: `${innerHeight}px`
11 | }
12 |
13 | insertBefore = noop
14 |
15 | innerHTML = ''
16 |
17 | constructor(tagName = '') {
18 | super()
19 | this.tagName = tagName.toUpperCase()
20 | }
21 |
22 | setAttribute(name, value) {
23 | this[name] = value
24 | }
25 |
26 | getAttribute(name) {
27 | return this[name]
28 | }
29 |
30 | get clientWidth() {
31 | const ret = parseInt(this.style.fontSize, 10) * this.innerHTML.length
32 |
33 | return Number.isNaN(ret) ? 0 : ret
34 | }
35 |
36 | get clientHeight() {
37 | const ret = parseInt(this.style.fontSize, 10)
38 |
39 | return Number.isNaN(ret) ? 0 : ret
40 | }
41 |
42 | getBoundingClientRect() {
43 | return {
44 | top: 0,
45 | left: 0,
46 | width: innerWidth,
47 | height: innerHeight
48 | }
49 | }
50 |
51 | focus() {
52 |
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/HTMLMediaElement.js:
--------------------------------------------------------------------------------
1 | import HTMLElement from './HTMLElement'
2 |
3 | export default class HTMLMediaElement extends HTMLElement {
4 | constructor(type) {
5 | super(type)
6 | }
7 |
8 | addTextTrack() {
9 | }
10 |
11 | captureStream() {
12 | }
13 |
14 | fastSeek() {
15 | }
16 |
17 | load() {
18 | }
19 |
20 | pause() {
21 | }
22 |
23 | play() {
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/Image.js:
--------------------------------------------------------------------------------
1 | export default function Image() {
2 | const image = wx.createImage()
3 |
4 | return image
5 | }
6 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/Node.js:
--------------------------------------------------------------------------------
1 | import EventTarget from './EventTarget'
2 |
3 | export default class Node extends EventTarget {
4 | constructor() {
5 | super()
6 | }
7 |
8 | childNodes = []
9 |
10 | appendChild(node) {
11 | if (node instanceof Node) {
12 | this.childNodes.push(node)
13 | } else {
14 | throw new TypeError('Failed to executed \'appendChild\' on \'Node\': parameter 1 is not of type \'Node\'.')
15 | }
16 | }
17 |
18 | cloneNode() {
19 | const copyNode = Object.create(this)
20 |
21 | Object.assign(copyNode, this)
22 | return copyNode
23 | }
24 |
25 | removeChild(node) {
26 | const index = this.childNodes.findIndex((child) => child === node)
27 |
28 | if (index > -1) {
29 | return this.childNodes.splice(index, 1)
30 | }
31 | return null
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/WindowProperties.js:
--------------------------------------------------------------------------------
1 | const { screenWidth, screenHeight, devicePixelRatio } = wx.getSystemInfoSync()
2 |
3 | export const innerWidth = screenWidth
4 | export const innerHeight = screenHeight
5 | export { devicePixelRatio }
6 | export const screen = {
7 | availWidth: innerWidth,
8 | availHeight: innerHeight
9 | }
10 | export const performance = wx.getPerformance()
11 | export const ontouchstart = null
12 | export const ontouchmove = null
13 | export const ontouchend = null
14 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/constructor.js:
--------------------------------------------------------------------------------
1 | import HTMLElement from './HTMLElement'
2 |
3 |
4 | const HTMLImageElement = wx.createImage().constructor
5 |
6 | export {HTMLImageElement}
7 |
8 |
9 | // export class HTMLImageElement extends HTMLElement {
10 | // constructor() {
11 | // super('img')
12 | // }
13 | // }
14 |
15 | export class HTMLCanvasElement extends HTMLElement {
16 | constructor() {
17 | super('canvas')
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/localStorage.js:
--------------------------------------------------------------------------------
1 | const localStorage = {
2 | get length() {
3 | const { keys } = wx.getStorageInfoSync()
4 |
5 | return keys.length
6 | },
7 |
8 | key(n) {
9 | const { keys } = wx.getStorageInfoSync()
10 |
11 | return keys[n]
12 | },
13 |
14 | getItem(key) {
15 | return wx.getStorageSync(key)
16 | },
17 |
18 | setItem(key, value) {
19 | return wx.setStorageSync(key, value)
20 | },
21 |
22 | removeItem(key) {
23 | wx.removeStorageSync(key)
24 | },
25 |
26 | clear() {
27 | wx.clearStorageSync()
28 | }
29 | }
30 |
31 | export default localStorage
32 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/location.js:
--------------------------------------------------------------------------------
1 | const location = {
2 | href: 'game.js',
3 | reload() {
4 | }
5 | }
6 |
7 | export default location
8 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/navigator.js:
--------------------------------------------------------------------------------
1 | import { noop } from './util'
2 |
3 | // TODO 需要 wx.getSystemInfo 获取更详细信息
4 | const { platform } = wx.getSystemInfoSync()
5 | const navigator = {
6 | platform,
7 | language: 'zh-cn',
8 | appVersion: '5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1',
9 | userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E8301 MicroMessenger/6.6.0 MiniGame NetType/WIFI Language/zh_CN',
10 | onLine: true, // TODO 用 wx.getNetworkStateChange 和 wx.onNetworkStateChange 来返回真实的状态
11 |
12 | // TODO 用 wx.getLocation 来封装 geolocation
13 | geolocation: {
14 | getCurrentPosition: noop,
15 | watchPosition: noop,
16 | clearWatch: noop
17 | }
18 | }
19 |
20 | export default navigator
21 |
--------------------------------------------------------------------------------
/toturial/fisher/libs/adapter/util/index.js:
--------------------------------------------------------------------------------
1 | export function noop() {}
2 |
--------------------------------------------------------------------------------
/toturial/fisher/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "logi",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "game.js",
6 | "scripts": {
7 | "build": "webpack -p",
8 | "dev": "webpack -w",
9 | "test": "echo \"Error: no test specified\" && exit 1"
10 | },
11 | "browserslist": [
12 | "ios >= 8",
13 | "android >= 5"
14 | ],
15 | "author": "JetLu",
16 | "license": "ISC",
17 | "devDependencies": {
18 | "@babel/core": "^7.1.2",
19 | "@babel/plugin-proposal-class-properties": "^7.1.0",
20 | "@babel/plugin-proposal-export-default-from": "^7.0.0",
21 | "@babel/plugin-proposal-export-namespace-from": "^7.0.0",
22 | "@babel/plugin-proposal-optional-chaining": "^7.0.0",
23 | "@babel/plugin-transform-runtime": "^7.1.0",
24 | "@babel/polyfill": "^7.0.0",
25 | "@babel/preset-env": "^7.1.0",
26 | "@babel/runtime": "^7.1.2",
27 | "@babel/runtime-corejs2": "^7.1.2",
28 | "babel-loader": "^8.0.4",
29 | "core-js": "^2.5.7",
30 | "pixi.js": "^4.8.2",
31 | "raw-loader": "^0.5.1",
32 | "url-loader": "^1.1.1",
33 | "webpack": "^4.20.2",
34 | "webpack-cli": "^3.1.1"
35 | },
36 | "dependencies": {}
37 | }
38 |
--------------------------------------------------------------------------------
/toturial/fisher/readme.md:
--------------------------------------------------------------------------------
1 | # fisher
2 |
3 | > 本来打算以pixi-filters的示例为原型写个小游戏,后来种种原因放弃了。顺便就放上来了。
4 |
5 | ## 2018/10/05
6 | > 自己的微信小游戏上线了,感兴可以微信小游戏搜一下 colloc。
7 | >
8 | > 开发中用到的优化同步到这个项目了。
9 |
10 | - 升级到`babel7`
11 | - 项目结构改变:微信开发工具指定目录为`dist`(开发者工具里可以去掉`ES6`转`ES5`),同时复制`static`到`dist`目录(当然你也可以选择删掉项目根目录下的`static`,要改一下`prepare.js`)
12 | - `adpater`优化,可以避免一些坑
13 |
14 |
15 | >
16 |
17 | # 使用
18 |
19 | 进入项目根目录首先安装依赖:
20 | ```
21 | npm i
22 | ```
23 | 开发模式(打开微信开发者工具添加该项目目录):
24 | ```
25 | npm run dev
26 | ```
27 | 发布(在开发工具中上传代码之前):
28 | ```
29 | npm run build
30 | ```
31 |
32 | `/src/config.js` 配置资源目录
33 |
34 |
35 | # 说明
36 | * 图片素材来自 [pixi-filters](https://github.com/pixijs/pixi-filters) 项目,包括部分代码。
--------------------------------------------------------------------------------
/toturial/fisher/src/app.js:
--------------------------------------------------------------------------------
1 | import 'core-js' // 兼容性,在 .babelrc 里配置会有问题所以放这里了
2 | import {game, prepare} from './scenes'
3 |
4 | prepare().then(() => {
5 | game.show()
6 | })
7 |
8 |
--------------------------------------------------------------------------------
/toturial/fisher/src/config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | cdn: location.origin ? `${location.origin}/game` : 'https://wisdom.lufei.so/logi',
3 | bkgColor: 0x171a24,
4 | zoom: {
5 | mix: [],
6 | get min() {return Math.min(...this.mix)},
7 | get max() {return Math.max(...this.mix)}
8 | },
9 | screen: {
10 | width: 750,
11 | height: 1334,
12 | resolution: 1,
13 | mode: 'portrait',
14 | get ratio() {return this.width / this.height}
15 | },
16 | design: {
17 | width: 750,
18 | height: 1334,
19 | mode: 'portrait',
20 | get ratio() {return this.width / this.height}
21 | },
22 | scene: null
23 | }
--------------------------------------------------------------------------------
/toturial/fisher/src/scenes/index.js:
--------------------------------------------------------------------------------
1 | export game from './game'
2 | export prepare from './prepare'
--------------------------------------------------------------------------------
/toturial/fisher/src/scenes/prepare.js:
--------------------------------------------------------------------------------
1 | export default async function() {
2 | // 单图片示例
3 | // 添加缓存
4 | // PIXI.Texture.addToCache(await loadTexture('static/textures/misc.png'), 'misc.png')
5 | // 使用
6 | // PIXI.Sprite.fromFrame('misc.png')
7 | await new Promise(async resolve => {
8 | new PIXI.Spritesheet(
9 | await loadBaseTexture('static/textures/misc.png'),
10 | require('../../static/textures/misc.json') // require('../../dist/static/textures/misc.json') 可以删掉项目根目录下的static文件夹
11 | ).parse(resolve)
12 | })
13 | }
14 |
15 | function loadTexture(url) {
16 | return new Promise(resolve => {
17 | const img = new Image()
18 | img.src = url
19 | img.onload = () => resolve(PIXI.Texture.from(img))
20 | })
21 | }
22 |
23 | function loadBaseTexture(url) {
24 | return new Promise(resolve => {
25 | const img = wx.createImage()
26 | img.src = url
27 | img.onload = () => resolve(new PIXI.BaseTexture(img))
28 | })
29 | }
30 |
--------------------------------------------------------------------------------
/toturial/fisher/static/textures/misc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/static/textures/misc.png
--------------------------------------------------------------------------------
/toturial/fisher/static/textures/misc/bkg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/static/textures/misc/bkg.jpg
--------------------------------------------------------------------------------
/toturial/fisher/static/textures/misc/fish.1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/static/textures/misc/fish.1.png
--------------------------------------------------------------------------------
/toturial/fisher/static/textures/misc/fish.2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/static/textures/misc/fish.2.png
--------------------------------------------------------------------------------
/toturial/fisher/static/textures/misc/fish.3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/static/textures/misc/fish.3.png
--------------------------------------------------------------------------------
/toturial/fisher/static/textures/misc/fish.4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/static/textures/misc/fish.4.png
--------------------------------------------------------------------------------
/toturial/fisher/static/textures/misc/overlay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/fisher/static/textures/misc/overlay.png
--------------------------------------------------------------------------------
/toturial/fisher/webpack.config.js:
--------------------------------------------------------------------------------
1 | const
2 | path = require('path'),
3 | webpack = require('webpack')
4 |
5 | const isProd = process.env.NODE_ENV === 'production'
6 |
7 | module.exports = {
8 | entry: [
9 | './libs/adapter/index.js',
10 | './src/app.js'
11 | ],
12 |
13 | output: {
14 | path: path.resolve('dist'),
15 | filename: 'game.js'
16 | },
17 |
18 | devtool: isProd ? false : 'source-map',
19 |
20 | module: {
21 | rules: [
22 | {
23 | test: /\.js$/,
24 | use: ['babel-loader'],
25 | exclude: /node_modules/
26 | },
27 | {
28 | test: /\.(vert|frag)$/,
29 | use: ['raw-loader']
30 | }
31 | ]
32 | },
33 |
34 | plugins: [
35 | new webpack.ProvidePlugin({
36 | PIXI: 'pixi.js'
37 | })
38 | ],
39 |
40 | mode: isProd ? 'production' : 'development'
41 | }
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["@babel/env", {
4 | "useBuiltIns": "entry"
5 | }]
6 | ],
7 |
8 | "plugins": [
9 | "@babel/proposal-class-properties",
10 | "@babel/plugin-proposal-optional-chaining",
11 | "@babel/proposal-export-default-from",
12 | "@babel/proposal-export-namespace-from",
13 | ["@babel/transform-runtime", {
14 | "corejs": false,
15 | "helpers": false,
16 | "regenerator": true
17 | }]
18 | ]
19 | }
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/750*1334.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/750*1334.psd
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/bg.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/bg.psd
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/dist/.gitignore:
--------------------------------------------------------------------------------
1 | # Windows
2 | [Dd]esktop.ini
3 | Thumbs.db
4 | $RECYCLE.BIN/
5 |
6 | # macOS
7 | .DS_Store
8 | .fseventsd
9 | .Spotlight-V100
10 | .TemporaryItems
11 | .Trashes
12 |
13 | # Node.js
14 | node_modules/
15 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/dist/game.json:
--------------------------------------------------------------------------------
1 | {
2 | "deviceOrientation": "portrait",
3 | "showStatusBar": false,
4 | "openDataContext": "context"
5 | }
6 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/dist/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目配置文件。",
3 | "packOptions": {
4 | "ignore": [
5 | {
6 | "type": "suffix",
7 | "value": ".map"
8 | }
9 | ]
10 | },
11 | "setting": {
12 | "urlCheck": false,
13 | "es6": false,
14 | "postcss": false,
15 | "minified": false,
16 | "newFeature": true
17 | },
18 | "compileType": "game",
19 | "libVersion": "2.4.2",
20 | "appid": "wx99b84ab7a02b1295",
21 | "projectname": "wuziqi-online",
22 | "isGameTourist": false,
23 | "condition": {
24 | "search": {
25 | "current": -1,
26 | "list": []
27 | },
28 | "conversation": {
29 | "current": -1,
30 | "list": []
31 | },
32 | "game": {
33 | "currentL": -1,
34 | "list": []
35 | },
36 | "miniprogram": {
37 | "current": -1,
38 | "list": []
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/dist/static/audio/piece_audio.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/dist/static/audio/piece_audio.mp3
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/dist/static/textures/login_button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/dist/static/textures/login_button.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images.zip
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/bg.jpg
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/cancel_share_button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/cancel_share_button.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/denglu_button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/denglu_button.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/head_image_kuang.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/head_image_kuang.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/leave_room.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/leave_room.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/login_button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/login_button.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/matching_title.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/matching_title.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/piece_audio.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/piece_audio.mp3
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/piece_black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/piece_black.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/piece_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/piece_white.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/re_start_button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/re_start_button.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/shard_friend_button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/shard_friend_button.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/share_button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/share_button.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/share_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/share_image.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/wait_friend_tips.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/wait_friend_tips.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/wait_tips.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/wait_tips.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/images/wifi_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/images/wifi_logo.png
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | hello world
5 |
8 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/Canvas.js:
--------------------------------------------------------------------------------
1 | import { HTMLCanvasElement, CanvasRenderingContext2D, WebGLRenderingContext } from './constructor'
2 | import HTMLElement from './HTMLElement'
3 | import document from './document'
4 |
5 | let hasModifiedCanvasPrototype = false
6 | let hasInit2DContextConstructor = false
7 | let hasInitWebGLContextConstructor = false
8 |
9 | export default function Canvas() {
10 | const canvas = wx.createCanvas()
11 |
12 | canvas.type = 'canvas'
13 |
14 | canvas.__proto__.__proto__ = new HTMLCanvasElement()
15 |
16 | const _getContext = canvas.getContext
17 |
18 | canvas.getBoundingClientRect = () => {
19 | const ret = {
20 | top: 0,
21 | left: 0,
22 | width: window.innerWidth,
23 | height: window.innerHeight
24 | }
25 | return ret
26 | }
27 |
28 | return canvas
29 | }
30 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/Element.js:
--------------------------------------------------------------------------------
1 | import Node from './Node'
2 |
3 | export default class ELement extends Node {
4 | className = ''
5 | children = []
6 |
7 | constructor() {
8 | super()
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/Event.js:
--------------------------------------------------------------------------------
1 | import {noop} from './util'
2 |
3 | export default class Event {
4 | cancelBubble = false
5 | cancelable = false
6 | target = null
7 | timestampe = Date.now()
8 | preventDefault = noop
9 | stopPropagation = noop
10 |
11 | constructor(type) {
12 | this.type = type
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/EventIniter/TouchEvent.js:
--------------------------------------------------------------------------------
1 | import * as window from '../window'
2 | import document from '../document'
3 | import { noop } from '../util/'
4 |
5 | export default class TouchEvent {
6 | target = window.canvas
7 | currentTarget = window.canvas
8 | touches = []
9 | targetTouches = []
10 | changedTouches = []
11 | preventDefault = noop
12 | stopPropagation = noop
13 | constructor(type) {
14 | this.type = type
15 | }
16 | }
17 |
18 | function touchEventHandlerFactory(type) {
19 | return (event) => {
20 | const touchEvent = new TouchEvent(type)
21 |
22 | touchEvent.touches = event.touches
23 | touchEvent.targetTouches = Array.prototype.slice.call(event.touches)
24 | touchEvent.changedTouches = event.changedTouches
25 | touchEvent.timeStamp = event.timeStamp
26 | document.dispatchEvent(touchEvent)
27 | }
28 | }
29 |
30 | wx.onTouchStart(touchEventHandlerFactory('touchstart'))
31 | wx.onTouchMove(touchEventHandlerFactory('touchmove'))
32 | wx.onTouchEnd(touchEventHandlerFactory('touchend'))
33 | wx.onTouchCancel(touchEventHandlerFactory('touchcancel'))
34 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/EventIniter/index.js:
--------------------------------------------------------------------------------
1 | import './TouchEvent'
2 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/FileReader.js:
--------------------------------------------------------------------------------
1 | /*
2 | * TODO 使用 wx.readFile 来封装 FileReader
3 | */
4 | export default class FileReader {
5 | construct() {
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/HTMLAudioElement.js:
--------------------------------------------------------------------------------
1 | import HTMLMediaElement from './HTMLMediaElement'
2 |
3 | export default class HTMLAudioElement extends HTMLMediaElement {
4 | constructor() {
5 | super('audio')
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/HTMLMediaElement.js:
--------------------------------------------------------------------------------
1 | import HTMLElement from './HTMLElement'
2 |
3 | export default class HTMLMediaElement extends HTMLElement {
4 | constructor(type) {
5 | super(type)
6 | }
7 |
8 | addTextTrack() {
9 | }
10 |
11 | captureStream() {
12 | }
13 |
14 | fastSeek() {
15 | }
16 |
17 | load() {
18 | }
19 |
20 | pause() {
21 | }
22 |
23 | play() {
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/Image.js:
--------------------------------------------------------------------------------
1 | export default function Image() {
2 | const image = wx.createImage()
3 |
4 | return image
5 | }
6 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/Node.js:
--------------------------------------------------------------------------------
1 | import EventTarget from './EventTarget'
2 |
3 | export default class Node extends EventTarget {
4 | constructor() {
5 | super()
6 | }
7 |
8 | childNodes = []
9 |
10 | appendChild(node) {
11 | if (node instanceof Node) {
12 | this.childNodes.push(node)
13 | } else {
14 | throw new TypeError('Failed to executed \'appendChild\' on \'Node\': parameter 1 is not of type \'Node\'.')
15 | }
16 | }
17 |
18 | cloneNode() {
19 | const copyNode = Object.create(this)
20 |
21 | Object.assign(copyNode, this)
22 | return copyNode
23 | }
24 |
25 | removeChild(node) {
26 | const index = this.childNodes.findIndex((child) => child === node)
27 |
28 | if (index > -1) {
29 | return this.childNodes.splice(index, 1)
30 | }
31 | return null
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/WindowProperties.js:
--------------------------------------------------------------------------------
1 | const { screenWidth, screenHeight, devicePixelRatio } = wx.getSystemInfoSync()
2 |
3 | export const innerWidth = screenWidth
4 | export const innerHeight = screenHeight
5 | export { devicePixelRatio }
6 | export const screen = {
7 | availWidth: innerWidth,
8 | availHeight: innerHeight
9 | }
10 | export const performance = wx.getPerformance()
11 | export const ontouchstart = null
12 | export const ontouchmove = null
13 | export const ontouchend = null
14 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/constructor.js:
--------------------------------------------------------------------------------
1 | import HTMLElement from './HTMLElement'
2 |
3 |
4 | const HTMLImageElement = wx.createImage().constructor
5 |
6 | export {HTMLImageElement}
7 |
8 |
9 | // export class HTMLImageElement extends HTMLElement {
10 | // constructor() {
11 | // super('img')
12 | // }
13 | // }
14 |
15 | export class HTMLCanvasElement extends HTMLElement {
16 | constructor() {
17 | super('canvas')
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/localStorage.js:
--------------------------------------------------------------------------------
1 | const localStorage = {
2 | get length() {
3 | const { keys } = wx.getStorageInfoSync()
4 |
5 | return keys.length
6 | },
7 |
8 | key(n) {
9 | const { keys } = wx.getStorageInfoSync()
10 |
11 | return keys[n]
12 | },
13 |
14 | getItem(key) {
15 | return wx.getStorageSync(key)
16 | },
17 |
18 | setItem(key, value) {
19 | return wx.setStorageSync(key, value)
20 | },
21 |
22 | removeItem(key) {
23 | wx.removeStorageSync(key)
24 | },
25 |
26 | clear() {
27 | wx.clearStorageSync()
28 | }
29 | }
30 |
31 | export default localStorage
32 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/location.js:
--------------------------------------------------------------------------------
1 | const location = {
2 | href: 'game.js',
3 | reload() {
4 | }
5 | }
6 |
7 | export default location
8 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/navigator.js:
--------------------------------------------------------------------------------
1 | import { noop } from './util'
2 |
3 | // TODO 需要 wx.getSystemInfo 获取更详细信息
4 | const { platform } = wx.getSystemInfoSync()
5 | const navigator = {
6 | platform,
7 | language: 'zh-cn',
8 | appVersion: '5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1',
9 | userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E8301 MicroMessenger/6.6.0 MiniGame NetType/WIFI Language/zh_CN',
10 | onLine: true, // TODO 用 wx.getNetworkStateChange 和 wx.onNetworkStateChange 来返回真实的状态
11 |
12 | // TODO 用 wx.getLocation 来封装 geolocation
13 | geolocation: {
14 | getCurrentPosition: noop,
15 | watchPosition: noop,
16 | clearWatch: noop
17 | }
18 | }
19 |
20 | export default navigator
21 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/libs/adapter/util/index.js:
--------------------------------------------------------------------------------
1 | export function noop() {}
2 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/local-server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ls",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "express": "^4.16.4",
13 | "mysql": "^2.16.0",
14 | "socket.io": "^2.1.0"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/local-server/state.js:
--------------------------------------------------------------------------------
1 | class State{
2 | constructor(){
3 | this._state = 'invalide';
4 | this._register = {};
5 | }
6 | setState(state){
7 | if (state == this._state){
8 | return;
9 | }
10 | this._state = state;
11 | console.log('change state =' + this._state);
12 | if (this._register[state]){
13 | let handlerList = this._register[state];
14 | for (let i = 0 ; i < handlerList.length ; i ++){
15 | let handler = handlerList[i];
16 | handler.call(null);
17 | }
18 | }
19 | }
20 | addState(state, cb){
21 | if (this._register[state]){
22 | this._register[state].push(cb)
23 | }else{
24 | this._register[state] = [cb];
25 | }
26 | }
27 | getState(){
28 | return this._state;
29 | }
30 |
31 | }
32 | module.exports = State;
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/local-server/wechat-wuziqi-pnline-server.js:
--------------------------------------------------------------------------------
1 | const server = require('socket.io')(3002);
2 | const App = require('./app');
3 | let app = new App();
4 | server.on('connection', (socket)=>{
5 | console.log('a user connection');
6 | socket.on('login', (data)=>{
7 | console.log('玩家 login' + JSON.stringify(data));
8 | app.playerLogin(socket, data);
9 | });
10 |
11 | //玩家链接成功了之后,给玩家返回一条请求登陆的消息,然后玩家把登陆信息发过来
12 | socket.emit('request-login');
13 | });
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/src/app.js:
--------------------------------------------------------------------------------
1 | import {director} from './util/import'
2 | import {ScreenSize} from './config'
3 | import GameScene from './game/game-scene'
4 | import LoadScene from './common/load-scene'
5 | import resources from './resources'
6 | class App{
7 | constructor() {
8 | console.log('启动app');
9 | director.init(ScreenSize.width, ScreenSize.height);
10 | director.startScene(new LoadScene(resources), new GameScene());
11 | }
12 | }
13 | export default new App();
14 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/src/config.js:
--------------------------------------------------------------------------------
1 |
2 | const ScreenSize = {
3 | width: 750,
4 | height: 1334
5 | }
6 | export { ScreenSize };
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/src/defines.js:
--------------------------------------------------------------------------------
1 | const defines = {
2 | resourcesUrl: "https://chutianba.xyz/wuziqi-online-resources",
3 | socketUrl: "https://chutianba.xyz"
4 | // socketUrl: "http://localhost:3002"
5 |
6 |
7 | }
8 | export default defines;
9 |
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/src/game/ui-layer.js:
--------------------------------------------------------------------------------
1 | import { Layer } from './../util/import'
2 | import GameOverLayer from './gameover-layer'
3 | class UILayer extends Layer {
4 | constructor(controller) {
5 | super();
6 | this._gameOverLayer = undefined;
7 | this._controller = controller;
8 |
9 |
10 | // this._gameOverLayer = new GameOverLayer('black', this);
11 | // this.addChild(this._gameOverLayer);
12 | }
13 | showWin(color) {
14 | if (!this._gameOverLayer) {
15 | this._gameOverLayer = new GameOverLayer(color, this);
16 | this.addChild(this._gameOverLayer);
17 | }
18 | }
19 | gameOverClose() {
20 | if (this._gameOverLayer) {
21 | this.removeChild(this._gameOverLayer);
22 | this._gameOverLayer = undefined;
23 | }
24 | if (this._controller) {
25 | this._controller.closeGameOverLayer();
26 | }
27 | }
28 | noPSharedButton(){
29 | if (this._controller){
30 | this._controller.noPSharedButton();
31 | }
32 | }
33 |
34 | }
35 | export default UILayer;
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/src/global.js:
--------------------------------------------------------------------------------
1 | import {EventListener} from './util/import'
2 | const global = {
3 | resource: {},
4 | event: new EventListener(),
5 | playerInfo: {
6 | id: '000000'
7 | }
8 | }
9 | export default global
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/src/resources.js:
--------------------------------------------------------------------------------
1 | const res =
2 | {
3 | "bg": "./images/bg.jpg",
4 | "cancel_share_button": "./images/cancel_share_button.png",
5 | "denglu_button": "./images/denglu_button.png",
6 | "head_image_kuang": "./images/head_image_kuang.png",
7 | "leave_room": "./images/leave_room.png",
8 | "login_button": "./images/login_button.png",
9 | "matching_title": "./images/matching_title.png",
10 | "piece_black": "./images/piece_black.png",
11 | "piece_white": "./images/piece_white.png",
12 | "re_start_button": "./images/re_start_button.png",
13 | "shard_friend_button": "./images/shard_friend_button.png",
14 | "share_button": "./images/share_button.png",
15 | "share_image": "./images/share_image.png",
16 | "wait_friend_tips": "./images/wait_friend_tips.png",
17 | "wait_tips": "./images/wait_tips.png",
18 | "wifi_logo": "./images/wifi_logo.png"
19 | };
20 | export default res;
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/src/util/common/helper.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by wizard on 16/3/30.
3 | */
4 |
5 | //import Tween from 'tween.js'
6 |
7 | var helper = helper || {};
8 |
9 | helper.getQueryString = (name) => {
10 | console.log('get data string = ' + window.location.search + ',' + name);
11 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
12 | console.log('reg = ' + reg);
13 | var r = window.location.search.substr(1).match(reg);
14 | if (r != null) return decodeURI(r[2]);
15 | return null;
16 | };
17 |
18 | export default helper;
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/src/util/common/state.js:
--------------------------------------------------------------------------------
1 | class State{
2 | constructor(){
3 | this._state = 'invalide';
4 | this._register = {};
5 | }
6 | setState(state){
7 | if (state == this._state){
8 | return;
9 | }
10 | if (this._register[state]){
11 | let handlerList = this._register[state];
12 | for (let i = 0 ; i < handlerList.length ; i ++){
13 | let handler = handlerList[i];
14 | handler.call(null);
15 | }
16 | }
17 | this._state = state;
18 | }
19 | addState(state, cb){
20 | if (this._register[state]){
21 | this._register[state].push(cb)
22 | }else{
23 | this._register[state] = [cb];
24 | }
25 | }
26 | getState(){
27 | return this._state;
28 | }
29 |
30 | }
31 | export default State;
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/src/util/import.js:
--------------------------------------------------------------------------------
1 | import Animate from './render/animate'
2 | import Button from './render/button'
3 | import director from './render/director'
4 | // import GraphicsCommon from './render/graphics'
5 |
6 | import Layer from './render/layer'
7 | import Scene from './render/scene'
8 | import Sprite from './render/sprite'
9 | import SpriteFrame from './render/sprite-frame'
10 | import Label from './render/label'
11 |
12 |
13 |
14 | import Bezier from './math/bezier'
15 | import Rect from './math/rect'
16 | import Vec2 from './math/vec2'
17 | import State from './common/state'
18 |
19 | import helper from './common/helper'
20 |
21 | import EventListener from './common/event-listener'
22 | export { Animate, Button, director, Layer, Scene, Sprite, Bezier, Rect, Vec2, State, SpriteFrame , EventListener, helper, Label};
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/src/util/render/animate.js:
--------------------------------------------------------------------------------
1 | class Animate extends PIXI.extras.AnimatedSprite {
2 | constructor(textureList) {
3 | super(textureList);
4 | this.ClassType = 'animate';
5 | this._textureList = textureList;
6 | // let texture = textureList[this.currentFrame];
7 | // if (texture.textureInfo) {
8 | // let textureInfo = texture.textureInfo;
9 | // this.width = textureInfo.rotate ? textureInfo.frame.height : textureInfo.frame.width;
10 | // this.height = textureInfo.rotate ? textureInfo.frame.width : textureInfo.frame.height;
11 | // }
12 | }
13 | animateUpdate(dt) {
14 | // this._textureInfo =
15 | let currentTexture = this._textureList[this.currentFrame];
16 | if (currentTexture.textureInfo) {
17 | let textureInfo = currentTexture.textureInfo;
18 | this.width = textureInfo.rotate ? textureInfo.frame.height : textureInfo.frame.width;
19 | this.height = textureInfo.rotate ? textureInfo.frame.width : textureInfo.frame.height;
20 | }
21 | }
22 |
23 | }
24 | export default Animate;
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/src/util/render/label.js:
--------------------------------------------------------------------------------
1 | class Label extends PIXI.Text{
2 | constructor(str, spec){
3 | let style = {
4 | fontFamily: 'Arial',
5 | fontSize: 20,
6 | fontStyle: 'normal',
7 | fontWeight: 'normal',
8 | fill: 0x000000 // gradient
9 | // stroke: '#4a1850',
10 | // strokeThickness: 5,
11 | // dropShadow: true,
12 | // dropShadowColor: '#000000',
13 | // dropShadowBlur: 4,
14 | // dropShadowAngle: Math.PI / 6,
15 | // dropShadowDistance: 6,
16 | // wordWrap: true,
17 | // wordWrapWidth: 440
18 | }
19 | if (spec){
20 | for(let i in style){
21 | style[i] = spec[i]?spec[i]: style[i]
22 | }
23 | }
24 | let text = str?str: "";
25 | super(text, style);
26 | }
27 | setText(text){
28 | this.text = text;
29 | }
30 | update(){
31 |
32 | }
33 | }
34 | export default Label
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/src/util/render/sprite-frame.js:
--------------------------------------------------------------------------------
1 | class SpriteFrame extends PIXI.Texture {
2 | constructor(packageTexture, textureInfo) {
3 | // let textureInfo = new TextureInfo(resources.json_texturepacker, textureNameList[i]);
4 |
5 | // let spriteFrame = new PIXI.Texture(texture, frame, undefined, undefined, rotate);
6 | super(packageTexture, textureInfo.frame, undefined, undefined, textureInfo.rotate);
7 | this.textureInfo = textureInfo;
8 | }
9 | }
10 | export default SpriteFrame;
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/tools/helper/http-helper.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by wizard on 2017/9/26.
3 | */
4 | const request = require('request');
5 |
6 | const HttpHelper = function () {
7 | let that = {};
8 |
9 | that.request = async function (uri) {
10 | return new Promise(function (resolve, reject) {
11 | //todo yuchel: query uri
12 | request(uri, function (err, res, resBody) {
13 | if (err) {
14 | reject(err);
15 | return;
16 | }
17 | resolve(resBody);
18 | });
19 | });
20 | };
21 |
22 | return that;
23 | };
24 |
25 | let helper = HttpHelper();
26 |
27 | module.exports = helper;
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/tools/helper/process-helper.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by wizard on 2017/10/18.
3 | */
4 |
5 | const process = require('child_process');
6 |
7 | const ProcessHelper = function () {
8 | let that = {};
9 |
10 | that.exec = function (cmd) {
11 | return new Promise(function (resolve, reject) {
12 | process.exec(cmd, function (err, stdout, stderr) {
13 | if (err) {
14 | reject(err);
15 | return;
16 | }
17 |
18 | if(stderr) {
19 | reject(stderr);
20 | return;
21 | }
22 |
23 | resolve(stdout);
24 | });
25 | });
26 | };
27 |
28 | return that;
29 | };
30 |
31 | const processHelper = ProcessHelper();
32 |
33 | module.exports = processHelper;
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/webpack.config.js:
--------------------------------------------------------------------------------
1 | const
2 | path = require('path'),
3 | webpack = require('webpack')
4 |
5 | const isProd = process.env.NODE_ENV === 'production'
6 |
7 | module.exports = {
8 | entry: [
9 | './libs/adapter/index.js',
10 | './src/app.js'
11 | ],
12 |
13 | output: {
14 | path: path.resolve('dist'),
15 | filename: 'game.js'
16 | },
17 |
18 | devtool: isProd ? false : 'source-map',
19 |
20 | module: {
21 | rules: [
22 | {
23 | test: /\.js$/,
24 | use: ['babel-loader'],
25 | exclude: /node_modules/
26 | },
27 | {
28 | test: /\.(vert|frag)$/,
29 | use: ['raw-loader']
30 | }
31 | ]
32 | },
33 |
34 | plugins: [
35 | new webpack.ProvidePlugin({
36 | PIXI: 'pixi.js'
37 | }),
38 | new webpack.ProvidePlugin({
39 | TWEEN: 'tween.js'
40 | }),
41 | new webpack.ProvidePlugin({
42 | SocketIO: 'weapp.socket.io'
43 | })
44 | ],
45 |
46 | mode: isProd ? 'production' : 'development'
47 | }
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/wifi.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/wifi.psd
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/五子棋.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/五子棋.psd
--------------------------------------------------------------------------------
/toturial/wuziqi-online-wchat-game/登录.xmind:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/toturial/wuziqi-online-wchat-game/登录.xmind
--------------------------------------------------------------------------------
/util/common/helper.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by wizard on 16/3/30.
3 | */
4 |
5 | //import Tween from 'tween.js'
6 |
7 | var helper = helper || {};
8 |
9 | helper.getQueryString = (name) => {
10 | console.log('get data string = ' + window.location.search + ',' + name);
11 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
12 | console.log('reg = ' + reg);
13 | var r = window.location.search.substr(1).match(reg);
14 | if (r != null) return decodeURI(r[2]);
15 | return null;
16 | };
17 |
18 | export default helper;
--------------------------------------------------------------------------------
/util/common/state.js:
--------------------------------------------------------------------------------
1 | class State{
2 | constructor(){
3 | this._state = 'invalide';
4 | this._register = {};
5 | }
6 | setState(state){
7 | if (state == this._state){
8 | return;
9 | }
10 | if (this._register[state]){
11 | let handlerList = this._register[state];
12 | for (let i = 0 ; i < handlerList.length ; i ++){
13 | let handler = handlerList[i];
14 | handler.call(null);
15 | }
16 | }
17 | this._state = state;
18 | }
19 | addState(state, cb){
20 | if (this._register[state]){
21 | this._register[state].push(cb)
22 | }else{
23 | this._register[state] = [cb];
24 | }
25 | }
26 | getState(){
27 | return this._state;
28 | }
29 |
30 | }
31 | export default State;
--------------------------------------------------------------------------------
/util/import.js:
--------------------------------------------------------------------------------
1 | import Animate from './render/animate'
2 | import Button from './render/button'
3 | import director from './render/director'
4 | // import GraphicsCommon from './render/graphics'
5 |
6 | import Layer from './render/layer'
7 | import Scene from './render/scene'
8 | import Sprite from './render/sprite'
9 | import SpriteFrame from './render/sprite-frame'
10 | import Label from './render/label'
11 |
12 |
13 |
14 | import Bezier from './math/bezier'
15 | import Rect from './math/rect'
16 | import Vec2 from './math/vec2'
17 | import State from './common/state'
18 |
19 | import helper from './common/helper'
20 |
21 | import EventListener from './common/event-listener'
22 | export { Animate, Button, director, Layer, Scene, Sprite, Bezier, Rect, Vec2, State, SpriteFrame , EventListener, helper, Label};
--------------------------------------------------------------------------------
/util/render/animate.js:
--------------------------------------------------------------------------------
1 | class Animate extends PIXI.extras.AnimatedSprite {
2 | constructor(textureList) {
3 | super(textureList);
4 | this.ClassType = 'animate';
5 | this._textureList = textureList;
6 | // let texture = textureList[this.currentFrame];
7 | // if (texture.textureInfo) {
8 | // let textureInfo = texture.textureInfo;
9 | // this.width = textureInfo.rotate ? textureInfo.frame.height : textureInfo.frame.width;
10 | // this.height = textureInfo.rotate ? textureInfo.frame.width : textureInfo.frame.height;
11 | // }
12 | }
13 | animateUpdate(dt) {
14 | // this._textureInfo =
15 | let currentTexture = this._textureList[this.currentFrame];
16 | if (currentTexture.textureInfo) {
17 | let textureInfo = currentTexture.textureInfo;
18 | this.width = textureInfo.rotate ? textureInfo.frame.height : textureInfo.frame.width;
19 | this.height = textureInfo.rotate ? textureInfo.frame.width : textureInfo.frame.height;
20 | }
21 | }
22 |
23 | }
24 | export default Animate;
--------------------------------------------------------------------------------
/util/render/label.js:
--------------------------------------------------------------------------------
1 | class Label extends PIXI.Text{
2 | constructor(str, spec){
3 | let style = {
4 | fontFamily: 'Arial',
5 | fontSize: 20,
6 | fontStyle: 'normal',
7 | fontWeight: 'normal',
8 | fill: ['#000000'], // gradient
9 | // stroke: '#4a1850',
10 | // strokeThickness: 5,
11 | // dropShadow: true,
12 | // dropShadowColor: '#000000',
13 | // dropShadowBlur: 4,
14 | // dropShadowAngle: Math.PI / 6,
15 | // dropShadowDistance: 6,
16 | // wordWrap: true,
17 | // wordWrapWidth: 440
18 | }
19 | if (spec){
20 | for(let i in style){
21 | style[i] = spec[i]?spec[i]: style[i]
22 | }
23 | }
24 | let text = str?str: "";
25 | super(text, style);
26 | }
27 | setText(text){
28 | this.text = text;
29 | }
30 | update(){
31 |
32 | }
33 | }
34 | export default Label
--------------------------------------------------------------------------------
/util/render/layer.js:
--------------------------------------------------------------------------------
1 | class Layer extends PIXI.Container {
2 | constructor() {
3 | super()
4 |
5 | this.on('pointerdown', this.onTouchStart.bind(this))
6 | .on('pointerup', this.onTouchEnd.bind(this))
7 | .on('pointerupoutside', this.onTouchEnd.bind(this))
8 | .on('pointermove', this.onTouchMove.bind(this));
9 | }
10 | onLoad() {
11 |
12 | }
13 | update() {
14 |
15 | }
16 | destroy() {
17 |
18 | }
19 | onTouchStart(){
20 |
21 | }
22 | onTouchMove(){
23 |
24 | }
25 | onTouchEnd(){
26 |
27 | }
28 | }
29 | export default Layer;
--------------------------------------------------------------------------------
/util/render/sprite-frame.js:
--------------------------------------------------------------------------------
1 | class SpriteFrame extends PIXI.Texture {
2 | constructor(packageTexture, textureInfo) {
3 | // let textureInfo = new TextureInfo(resources.json_texturepacker, textureNameList[i]);
4 |
5 | // let spriteFrame = new PIXI.Texture(texture, frame, undefined, undefined, rotate);
6 | super(packageTexture, textureInfo.frame, undefined, undefined, textureInfo.rotate);
7 | this.textureInfo = textureInfo;
8 | }
9 | }
10 | export default SpriteFrame;
--------------------------------------------------------------------------------
/wuziqi-online-server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "server",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "socket.io": "^2.1.0"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/wuziqi-online-server/wuziqi-index.js:
--------------------------------------------------------------------------------
1 | const IO = require('socket.io')(3001);
2 | const App = require('./app');
3 | let app = new App();
4 | IO.on('connection', (socket)=>{
5 | console.log('a user connection');
6 | app.createPlayer(socket);
7 | });
8 | console.log('启动成功');
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/Bg3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/Bg3.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/Bg4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/Bg4.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/CloseNormal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/CloseNormal.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/CloseSelected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/CloseSelected.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/Data/ResData.json:
--------------------------------------------------------------------------------
1 | {
2 | "png": [
3 | "ui/ui_Battery.png",
4 | "ui/ui_Bullet.png",
5 | "ui/ui_Monster.png",
6 | "ui/ui_Button.png",
7 | "ui/ui_Select.png",
8 | "ui/ui_Button_2.png",
9 | "ui/ui_Menu.png",
10 | "ui/ui_Button_3.png",
11 | "ui/ui_Result.png",
12 | "ui/ui_obstacle.png",
13 | "ui/ui_Item.png",
14 | "ui/ui_luobo.png"
15 | ],
16 | "plist": [
17 | "ui/ui_Battery.plist",
18 | "ui/ui_Bullet.plist",
19 | "ui/ui_Monster.plist",
20 | "ui/ui_Button.plist",
21 | "ui/ui_Select.plist",
22 | "ui/ui_Button_2.plist",
23 | "ui/ui_Menu.plist",
24 | "ui/ui_Button_3.plist",
25 | "ui/ui_Result.plist",
26 | "ui/ui_obstacle.plist",
27 | "ui/ui_Item.plist",
28 | "ui/ui_luobo.plist"
29 | ],
30 | "music": [
31 | "Music/bgm_boss.mp3",
32 | "Music/bgm_fever.mp3",
33 | "Music/bgm_minigame.mp3",
34 | "Music/bgm_opening.mp3"
35 | ]
36 | }
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/Data/obstaclesDt.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": 7001,
4 | "Coins": 0,
5 | "hp": 10000,
6 | "img": "ui_obstacles_01.png"
7 | },
8 | {
9 | "id": 7002,
10 | "Coins": 100,
11 | "hp": 200,
12 | "img": "ui_obstacles_02.png"
13 | },
14 | {
15 | "id": 7003,
16 | "Coins": 200,
17 | "hp": 400,
18 | "img": "ui_obstacles_03.png"
19 | }
20 | ]
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/Data/propsData.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "nId": 7001,
4 | "nAck": 1000,
5 | "nAddGold": 0,
6 | "fAddAckInterval": 0,
7 | "img": "ui_Props_01_02.png",
8 | "effect": [
9 | "ui_Props_01_03.png",
10 | "ui_Props_01_01.png",
11 | "ui_Props_01_04.png",
12 | "ui_Props_01_05.png",
13 | "ui_Props_01_06.png",
14 | "ui_Props_01_07.png"
15 | ]
16 | },
17 | {
18 | "nId": 7002,
19 | "nAck": 0,
20 | "nAddGold": 0,
21 | "fAddAckInterval": 0.5,
22 | "img": "ui_Props_02_01.png",
23 | "effect": [
24 | "ui_Props_02_02.png",
25 | "ui_Props_02_03.png",
26 | "ui_Props_02_04.png"
27 | ]
28 | },
29 | {
30 | "nId": 7003,
31 | "nAck": 0,
32 | "nAddGold": 500,
33 | "fAddAckInterval": 0,
34 | "img": "ui_Props_03_01.png",
35 | "effect": [
36 | "ui_Props_02_02.png",
37 | "ui_Props_02_03.png",
38 | "ui_Props_02_04.png"
39 | ]
40 | }
41 | ]
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/Default-Landscape~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/Default-Landscape~ipad.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/HelloWorld.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/HelloWorld.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/Item1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/Item1.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/Item2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/Item2.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/Item3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/Item3.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/Item4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/Item4.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/fonts/Marker Felt.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/fonts/Marker Felt.ttf
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/fonts/arial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/fonts/arial.ttf
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/res/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/res/.gitkeep
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/sucai.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/sucai.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/sucai2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/sucai2.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/ui/ui_Battery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/ui/ui_Battery.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/ui/ui_Item.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/ui/ui_Item.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/ui/ui_Menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/ui/ui_Menu.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/ui/ui_Monster.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/ui/ui_Monster.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/ui/ui_ProgressBar_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/ui/ui_ProgressBar_01.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/ui/ui_ProgressBar_02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/ui/ui_ProgressBar_02.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/ui/ui_Select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/ui/ui_Select.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/ui/ui_luobo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/ui/ui_luobo.png
--------------------------------------------------------------------------------
/素材/保卫萝卜资源/ui/ui_obstacle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/保卫萝卜资源/ui/ui_obstacle.png
--------------------------------------------------------------------------------
/素材/校长吃鸡/bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/校长吃鸡/bg.jpg
--------------------------------------------------------------------------------
/素材/校长吃鸡/check_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/校长吃鸡/check_0.png
--------------------------------------------------------------------------------
/素材/校长吃鸡/check_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/校长吃鸡/check_1.png
--------------------------------------------------------------------------------
/素材/校长吃鸡/hotdog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/校长吃鸡/hotdog.png
--------------------------------------------------------------------------------
/素材/校长吃鸡/sicong.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/校长吃鸡/sicong.png
--------------------------------------------------------------------------------
/素材/校长吃鸡/timg (1).jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/校长吃鸡/timg (1).jpeg
--------------------------------------------------------------------------------
/素材/校长吃鸡/timg (3).jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/校长吃鸡/timg (3).jpeg
--------------------------------------------------------------------------------
/素材/校长吃鸡/校长吃鸡.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haoyuan336/all-game-h5/ef5a7999500407d50ced4959e0480185e3141bfb/素材/校长吃鸡/校长吃鸡.psd
--------------------------------------------------------------------------------