Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdn
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
llewan
cdn
Commits
ed65622d
Commit
ed65622d
authored
Mar 06, 2019
by
测试账号
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
075c57fd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
202 additions
and
2 deletions
+202
-2
index.html
h5game/shuiguodashiol/web-mobile/index.html
+2
-2
main.501be.js
h5game/shuiguodashiol/web-mobile/main.501be.js
+198
-0
0c0f3918b.1b0fd.json
...iguodashiol/web-mobile/res/import/0c/0c0f3918b.1b0fd.json
+2
-0
project.a0a91.js
h5game/shuiguodashiol/web-mobile/src/project.a0a91.js
+0
-0
settings.2f937.js
h5game/shuiguodashiol/web-mobile/src/settings.2f937.js
+0
-0
No files found.
h5game/shuiguodashiol/web-mobile/index.html
View file @
ed65622d
...
@@ -47,9 +47,9 @@
...
@@ -47,9 +47,9 @@
<span
style=
"width: 0%"
></span>
<span
style=
"width: 0%"
></span>
</div>
</div>
</div>
</div>
<script
src=
"src/settings.
97259
.js"
charset=
"utf-8"
></script>
<script
src=
"src/settings.
2f937
.js"
charset=
"utf-8"
></script>
<script
src=
"vconsole.min.bac6b.js"
></script>
<script
src=
"vconsole.min.bac6b.js"
></script>
<script
src=
"main.
0f707
.js"
charset=
"utf-8"
></script>
<script
src=
"main.
501be
.js"
charset=
"utf-8"
></script>
<script
src=
"//cdn.bootcss.com/eruda/1.4.2/eruda.min.js"
></script>
<script
src=
"//cdn.bootcss.com/eruda/1.4.2/eruda.min.js"
></script>
<script>
eruda
.
init
();
</script>
<script>
eruda
.
init
();
</script>
...
...
h5game/shuiguodashiol/web-mobile/main.501be.js
0 → 100644
View file @
ed65622d
// QQPlay window need to be inited first
if
(
false
)
{
BK
.
Script
.
loadlib
(
'GameRes://libs/qqplay-adapter.js'
);
}
window
.
boot
=
function
()
{
var
settings
=
window
.
_CCSettings
;
window
.
_CCSettings
=
undefined
;
if
(
!
settings
.
debug
)
{
var
uuids
=
settings
.
uuids
;
var
rawAssets
=
settings
.
rawAssets
;
var
assetTypes
=
settings
.
assetTypes
;
var
realRawAssets
=
settings
.
rawAssets
=
{};
for
(
var
mount
in
rawAssets
)
{
var
entries
=
rawAssets
[
mount
];
var
realEntries
=
realRawAssets
[
mount
]
=
{};
for
(
var
id
in
entries
)
{
var
entry
=
entries
[
id
];
var
type
=
entry
[
1
];
// retrieve minified raw asset
if
(
typeof
type
===
'number'
)
{
entry
[
1
]
=
assetTypes
[
type
];
}
// retrieve uuid
realEntries
[
uuids
[
id
]
||
id
]
=
entry
;
}
}
var
scenes
=
settings
.
scenes
;
for
(
var
i
=
0
;
i
<
scenes
.
length
;
++
i
)
{
var
scene
=
scenes
[
i
];
if
(
typeof
scene
.
uuid
===
'number'
)
{
scene
.
uuid
=
uuids
[
scene
.
uuid
];
}
}
var
packedAssets
=
settings
.
packedAssets
;
for
(
var
packId
in
packedAssets
)
{
var
packedIds
=
packedAssets
[
packId
];
for
(
var
j
=
0
;
j
<
packedIds
.
length
;
++
j
)
{
if
(
typeof
packedIds
[
j
]
===
'number'
)
{
packedIds
[
j
]
=
uuids
[
packedIds
[
j
]];
}
}
}
}
function
setLoadingDisplay
()
{
// Loading splash scene
var
splash
=
document
.
getElementById
(
'splash'
);
var
progressBar
=
splash
.
querySelector
(
'.progress-bar span'
);
cc
.
loader
.
onProgress
=
function
(
completedCount
,
totalCount
,
item
)
{
var
percent
=
100
*
completedCount
/
totalCount
;
if
(
progressBar
)
{
progressBar
.
style
.
width
=
percent
.
toFixed
(
2
)
+
'%'
;
}
};
splash
.
style
.
display
=
'block'
;
progressBar
.
style
.
width
=
'0%'
;
cc
.
director
.
once
(
cc
.
Director
.
EVENT_AFTER_SCENE_LAUNCH
,
function
()
{
splash
.
style
.
display
=
'none'
;
});
}
var
onStart
=
function
()
{
cc
.
loader
.
downloader
.
_subpackages
=
settings
.
subpackages
;
cc
.
view
.
enableRetina
(
true
);
cc
.
view
.
resizeWithBrowserSize
(
true
);
if
(
!
false
&&
!
false
)
{
if
(
cc
.
sys
.
isBrowser
)
{
setLoadingDisplay
();
}
if
(
cc
.
sys
.
isMobile
)
{
if
(
settings
.
orientation
===
'landscape'
)
{
cc
.
view
.
setOrientation
(
cc
.
macro
.
ORIENTATION_LANDSCAPE
);
}
else
if
(
settings
.
orientation
===
'portrait'
)
{
cc
.
view
.
setOrientation
(
cc
.
macro
.
ORIENTATION_PORTRAIT
);
}
cc
.
view
.
enableAutoFullScreen
([
cc
.
sys
.
BROWSER_TYPE_BAIDU
,
cc
.
sys
.
BROWSER_TYPE_WECHAT
,
cc
.
sys
.
BROWSER_TYPE_MOBILE_QQ
,
cc
.
sys
.
BROWSER_TYPE_MIUI
,
].
indexOf
(
cc
.
sys
.
browserType
)
<
0
);
}
// Limit downloading max concurrent task to 2,
// more tasks simultaneously may cause performance draw back on some android system / browsers.
// You can adjust the number based on your own test result, you have to set it before any loading process to take effect.
if
(
cc
.
sys
.
isBrowser
&&
cc
.
sys
.
os
===
cc
.
sys
.
OS_ANDROID
)
{
cc
.
macro
.
DOWNLOAD_MAX_CONCURRENT
=
2
;
}
}
// init assets
cc
.
AssetLibrary
.
init
({
libraryPath
:
'res/import'
,
rawAssetsBase
:
'res/raw-'
,
rawAssets
:
settings
.
rawAssets
,
packedAssets
:
settings
.
packedAssets
,
md5AssetsMap
:
settings
.
md5AssetsMap
});
var
launchScene
=
settings
.
launchScene
;
// load scene
cc
.
director
.
loadScene
(
launchScene
,
null
,
function
()
{
if
(
cc
.
sys
.
isBrowser
)
{
// show canvas
var
canvas
=
document
.
getElementById
(
'GameCanvas'
);
canvas
.
style
.
visibility
=
''
;
var
div
=
document
.
getElementById
(
'GameDiv'
);
if
(
div
)
{
div
.
style
.
backgroundImage
=
''
;
}
}
cc
.
loader
.
onProgress
=
null
;
console
.
log
(
'Success to load scene: '
+
launchScene
);
}
);
};
// jsList
var
jsList
=
settings
.
jsList
;
if
(
false
)
{
BK
.
Script
.
loadlib
();
}
else
{
var
bundledScript
=
settings
.
debug
?
'src/project.dev.js'
:
'src/project.a0a91.js'
;
if
(
jsList
)
{
jsList
=
jsList
.
map
(
function
(
x
)
{
return
'src/'
+
x
;
});
jsList
.
push
(
bundledScript
);
}
else
{
jsList
=
[
bundledScript
];
}
}
// ANYS scripts
if
(
cc
.
sys
.
isNative
&&
cc
.
sys
.
isMobile
)
{
jsList
=
jsList
.
concat
([
'src/ANYS/jsb_ANYS.js'
,
'src/ANYS/jsb_ANYS_constants.js'
]);
}
var
option
=
{
id
:
'GameCanvas'
,
scenes
:
settings
.
scenes
,
debugMode
:
settings
.
debug
?
cc
.
debug
.
DebugMode
.
INFO
:
cc
.
debug
.
DebugMode
.
ERROR
,
showFPS
:
!
false
&&
settings
.
debug
,
frameRate
:
60
,
jsList
:
jsList
,
groupList
:
settings
.
groupList
,
collisionMatrix
:
settings
.
collisionMatrix
,
}
cc
.
game
.
run
(
option
,
onStart
);
};
// main.501be.js is qqplay and jsb platform entry file, so we must leave platform init code here
if
(
false
)
{
BK
.
Script
.
loadlib
(
'GameRes://src/settings.js'
);
BK
.
Script
.
loadlib
();
BK
.
Script
.
loadlib
(
'GameRes://libs/qqplay-downloader.js'
);
var
ORIENTATIONS
=
{
'portrait'
:
1
,
'landscape left'
:
2
,
'landscape right'
:
3
};
BK
.
Director
.
screenMode
=
ORIENTATIONS
[
window
.
_CCSettings
.
orientation
];
initAdapter
();
cc
.
game
.
once
(
cc
.
game
.
EVENT_ENGINE_INITED
,
function
()
{
initRendererAdapter
();
});
qqPlayDownloader
.
REMOTE_SERVER_ROOT
=
""
;
var
prevPipe
=
cc
.
loader
.
md5Pipe
||
cc
.
loader
.
assetLoader
;
cc
.
loader
.
insertPipeAfter
(
prevPipe
,
qqPlayDownloader
);
window
.
boot
();
}
else
if
(
window
.
jsb
)
{
require
(
'src/settings.2f937.js'
);
require
(
'src/cocos2d-jsb.js'
);
require
(
'jsb-adapter/engine/index.js'
);
window
.
boot
();
}
\ No newline at end of file
h5game/shuiguodashiol/web-mobile/res/import/0c/0c0f3918b.1b0fd.json
0 → 100644
View file @
ed65622d
[{
"__type__"
:
"cc.AudioClip"
,
"_name"
:
"audio_fruit1"
,
"_native"
:
".mp3"
},{
"__type__"
:
"cc.AudioClip"
,
"_name"
:
"audio_fruit4"
,
"_native"
:
".mp3"
},{
"__type__"
:
"cc.AudioClip"
,
"_name"
:
"audio_fruit6"
,
"_native"
:
".mp3"
},{
"__type__"
:
"cc.AudioClip"
,
"_name"
:
"audio_fruit5"
,
"_native"
:
".mp3"
},{
"__type__"
:
"cc.AudioClip"
,
"_name"
:
"audio_cutdown"
,
"_native"
:
".mp3"
},{
"__type__"
:
"cc.AudioClip"
,
"_name"
:
"audio_button"
,
"_native"
:
".mp3"
},{
"__type__"
:
"cc.AudioClip"
,
"_name"
:
"audio_fruit3"
,
"_native"
:
".mp3"
},{
"__type__"
:
"cc.AudioClip"
,
"_name"
:
"audio_fruit2"
,
"_native"
:
".mp3"
},{
"__type__"
:
"cc.SpriteFrame"
,
"content"
:{
"name"
:
"ditu"
,
"texture"
:
"7dH+xMP2JOgZb/6RXuHcc1"
,
"rect"
:[
0
,
0
,
750
,
1334
],
"offset"
:[
0
,
0
],
"originalSize"
:[
750
,
1334
],
"capInsets"
:[
0
,
0
,
0
,
0
]}},[{
"__type__"
:
"cc.SceneAsset"
,
"_name"
:
"main"
,
"scene"
:{
"__id__"
:
1
},
"asyncLoadAssets"
:
null
},{
"__type__"
:
"cc.Scene"
,
"_name"
:
"New Node"
,
"_children"
:[{
"__id__"
:
2
},{
"__id__"
:
3
},{
"__id__"
:
4
},{
"__id__"
:
5
},{
"__id__"
:
14
}],
"_anchorPoint"
:{
"__type__"
:
"cc.Vec2"
},
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
0.2556456146926537
,
"y"
:
0.2556456146926537
,
"z"
:
1
},
"autoReleaseAssets"
:
false
},{
"__type__"
:
"cc.Node"
,
"_name"
:
"Audio"
,
"_parent"
:{
"__id__"
:
1
},
"_level"
:
1
,
"_components"
:[{
"__type__"
:
"bd59bxbSHFE14KCIWNFpfg2"
,
"node"
:{
"__id__"
:
2
},
"audio_button"
:{
"__uuid__"
:
"924WpApvRIrIfhbZeRwx4R"
},
"audio_fruit"
:[{
"__uuid__"
:
"09uUnohfRN6Z4AKoZ8yO5T"
},{
"__uuid__"
:
"effwBfJrJA8J2tdIAuZmcm"
},{
"__uuid__"
:
"cebcd/K35A6YGyGgjdNM0f"
},{
"__uuid__"
:
"22iUKCTo1Dsaq+zK/xqyIz"
},{
"__uuid__"
:
"62zUxkb35AyprkCaVTRvZt"
},{
"__uuid__"
:
"29b2d6KPpP76qi4L+Xz/RZ"
}],
"audio_gold"
:{
"__uuid__"
:
"ffGyAhzpBNXa/4zeZk4Hrp"
},
"audio_cutdown"
:{
"__uuid__"
:
"88fuQpoYtFEIwh7+NM7J2n"
},
"audio_shot"
:{
"__uuid__"
:
"fd+ZGDoNZL+oFXKJ3LYKO4"
}}],
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
},
"_id"
:
"47xWMtWmhOfbqEUHOTTlih"
},{
"__type__"
:
"cc.Node"
,
"_name"
:
"Pools"
,
"_parent"
:{
"__id__"
:
1
},
"_level"
:
1
,
"_components"
:[{
"__type__"
:
"624194BvFpFrI+rj+kb7sIV"
,
"node"
:{
"__id__"
:
3
}}],
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
},
"_id"
:
"bffDYfVUVF4oVyy9YERIYk"
},{
"__type__"
:
"cc.Node"
,
"_name"
:
"Gold"
,
"_parent"
:{
"__id__"
:
1
},
"_level"
:
1
,
"_components"
:[{
"__type__"
:
"8dc40z2f91NBqEEuIVX250K"
,
"node"
:{
"__id__"
:
4
}}],
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
},
"_id"
:
"3ewgx6bOpIzqClTwPoRQmn"
},{
"__type__"
:
"cc.Node"
,
"_name"
:
"Root"
,
"_parent"
:{
"__id__"
:
1
},
"_children"
:[{
"__id__"
:
6
},{
"__id__"
:
7
},{
"__id__"
:
8
},{
"__id__"
:
9
},{
"__id__"
:
10
},{
"__id__"
:
11
},{
"__id__"
:
12
},{
"__id__"
:
13
}],
"_level"
:
1
,
"_components"
:[{
"__type__"
:
"cc.Canvas"
,
"node"
:{
"__id__"
:
5
},
"_designResolution"
:{
"__type__"
:
"cc.Size"
,
"width"
:
750
,
"height"
:
1334
},
"_fitWidth"
:
true
,
"_fitHeight"
:
false
},{
"__type__"
:
"85435i96hpJHY6QjfiNR98t"
,
"node"
:{
"__id__"
:
5
},
"UINode"
:{
"__id__"
:
8
},
"SpecialNode"
:{
"__id__"
:
9
},
"ActivityNode"
:{
"__id__"
:
10
},
"MaskNode"
:{
"__id__"
:
11
},
"DialogNode"
:{
"__id__"
:
12
},
"ToastNode"
:{
"__id__"
:
13
}}],
"_contentSize"
:{
"__type__"
:
"cc.Size"
,
"width"
:
750
,
"height"
:
1334
},
"_position"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
375
,
"y"
:
667
},
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
},
"_id"
:
"39EteIBx1PzaW3P8Obz0z2"
},{
"__type__"
:
"cc.Node"
,
"_name"
:
"Main Camera"
,
"_parent"
:{
"__id__"
:
5
},
"_level"
:
2
,
"_components"
:[{
"__type__"
:
"cc.Camera"
,
"node"
:{
"__id__"
:
6
},
"_clearFlags"
:
7
,
"_depth"
:
-1
}],
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
}},{
"__type__"
:
"cc.Node"
,
"_name"
:
"PermanentNode"
,
"_parent"
:{
"__id__"
:
5
},
"_level"
:
2
,
"_components"
:[{
"__type__"
:
"cc.Sprite"
,
"node"
:{
"__id__"
:
7
},
"_spriteFrame"
:{
"__uuid__"
:
"f5pU8Jcj1MHqmnUXsRrydL"
}}],
"_contentSize"
:{
"__type__"
:
"cc.Size"
,
"width"
:
750
,
"height"
:
1334
},
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
}},{
"__type__"
:
"cc.Node"
,
"_name"
:
"UINode"
,
"_parent"
:{
"__id__"
:
5
},
"_level"
:
2
,
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
}},{
"__type__"
:
"cc.Node"
,
"_name"
:
"SpecialNode"
,
"_parent"
:{
"__id__"
:
5
},
"_level"
:
2
,
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
}},{
"__type__"
:
"cc.Node"
,
"_name"
:
"ActivityNode"
,
"_parent"
:{
"__id__"
:
5
},
"_level"
:
2
,
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
}},{
"__type__"
:
"cc.Node"
,
"_name"
:
"MaskNode"
,
"_parent"
:{
"__id__"
:
5
},
"_level"
:
2
,
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
}},{
"__type__"
:
"cc.Node"
,
"_name"
:
"DialogNode"
,
"_parent"
:{
"__id__"
:
5
},
"_level"
:
2
,
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
}},{
"__type__"
:
"cc.Node"
,
"_name"
:
"ToastNode"
,
"_parent"
:{
"__id__"
:
5
},
"_level"
:
2
,
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
}},{
"__type__"
:
"cc.Node"
,
"_name"
:
"Entrance"
,
"_parent"
:{
"__id__"
:
1
},
"_level"
:
1
,
"_components"
:[{
"__type__"
:
"08dc2cCAgtCv4C9OBjKgqbJ"
,
"node"
:{
"__id__"
:
14
},
"fruitPre"
:{
"__uuid__"
:
"8aX0P6/O5PM6sqthygVzyn"
},
"juicePre"
:{
"__uuid__"
:
"4dyUIQAd9I5LONgZ1XLm/p"
}}],
"_scale"
:{
"__type__"
:
"cc.Vec3"
,
"x"
:
1
,
"y"
:
1
,
"z"
:
1
},
"_id"
:
"674wVlEQhKma8G8h6Hxtbd"
}],{
"__type__"
:
"cc.AudioClip"
,
"_name"
:
"audio_shot"
,
"_native"
:
".mp3"
},{
"__type__"
:
"cc.AudioClip"
,
"_name"
:
"audio_gold"
,
"_native"
:
".mp3"
}]
\ No newline at end of file
h5game/shuiguodashiol/web-mobile/src/project.a0a91.js
0 → 100644
View file @
ed65622d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
h5game/shuiguodashiol/web-mobile/src/settings.2f937.js
0 → 100644
View file @
ed65622d
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment