Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
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
wildfirecode13
new_taobao
Commits
3a782a64
Commit
3a782a64
authored
Sep 23, 2020
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified: module/RES.ts
parent
4e12bd4e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
RES.ts
project/src/canvas/game/module/RES.ts
+1
-0
resCanvasList.js
project/src/canvas/game/resCanvasList.js
+0
-2
Main.ts
project/src/canvas/game/src/Main.ts
+4
-4
MainScene.ts
project/src/canvas/game/src/xiaoxiaole/MainScene.ts
+6
-2
No files found.
project/src/canvas/game/module/RES.ts
View file @
3a782a64
...
...
@@ -233,6 +233,7 @@ export namespace RES {
*/
export
function
getRes
(
str
:
string
)
/*: Texture | VideoEntity*/
{
var
type
=
str
.
substring
(
str
.
lastIndexOf
(
"."
)
+
1
,
str
.
length
);
console
.
log
(
type
)
if
(
type
==
"png"
||
type
==
"jpg"
)
{
return
FYGE
.
TextureCache
[
str
]
||
null
;
}
...
...
project/src/canvas/game/resCanvasList.js
View file @
3a782a64
...
...
@@ -629,8 +629,6 @@ const resCanvasList = {
url
:
'https://yun.duiba.com.cn/spark/assets/寝室1.e9238ec5e71c328817026128dd0f41fdc65203f4.jpg'
,
uuid
:
'b3c8c187-e5c9-4968-9a00-a118d18ab2fc'
},
"分割xian"
:
{},
"dasdasdasdasd"
:
{},
'2a747211-0210-4215-86a2-a6955b37c45b'
:
{
name
:
'白色'
,
ext
:
'.png'
,
...
...
project/src/canvas/game/src/Main.ts
View file @
3a782a64
...
...
@@ -84,12 +84,12 @@ export class Main {
Ins
.
stageW
=
this
.
stage
.
viewRect
.
width
;
Ins
.
stageH
=
this
.
stage
.
viewRect
.
height
;
console
.
log
(
"舞台宽高:"
,
Ins
.
stageW
,
Ins
.
stageH
)
await
RES
.
loadSparkAssets
(
res
loading
List
);
await
RES
.
loadSparkAssets
(
res
Canvas
List
);
console
.
log
(
'resloadingList 加载完毕'
)
changeScene
(
XxlScene
);
await
RES
.
loadSparkAssets
(
resCanvasList
).
catch
(()
=>
{
console
.
log
(
'loadSparkAssets resCanvasList 失败'
)
});
await
RES
.
loadSparkAssets
(
resCanvasList
)
console
.
log
(
'resCanvasList 加载完毕'
)
await
InitLottie
.
initLottieList
(
resLottieList
);
console
.
log
(
"initLottieList完成"
)
...
...
project/src/canvas/game/src/xiaoxiaole/MainScene.ts
View file @
3a782a64
...
...
@@ -17,9 +17,13 @@ export class MainScene extends Scene {
initUi
()
{
var
that
=
this
;
that
.
initSceneEle
();
this
.
bg
=
Ins
.
initSprite
(
"7fcd3fb3-57bd-436a-afca-989b68b6b311"
)
that
.
addChild
(
this
.
bg
)
this
.
addChild
(
this
.
bg
);
this
.
x
=
(
Ins
.
stageW
-
750
)
>>
1
;
this
.
y
=
(
Ins
.
stageH
-
1624
)
>>
1
;
this
.
setHexagram
(
7
)
}
...
...
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