Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GameDemo
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
张泽禹
GameDemo
Commits
8f546ac3
Commit
8f546ac3
authored
Nov 15, 2021
by
ZhangZeyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: new
parent
f97d21f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Flop.ts
src/game/Flop.ts
+2
-2
No files found.
src/game/Flop.ts
View file @
8f546ac3
...
@@ -40,13 +40,13 @@ export class Flop extends Scene {
...
@@ -40,13 +40,13 @@ export class Flop extends Scene {
let
nnn
=
null
let
nnn
=
null
// 切图
// 切图
await
createCutTextures
(
'//yun.duiba.com.cn/spark/assets/22950e2c20abdc8e06fd0844d6f680e760915ac8.png'
,
5
,
5
).
then
((
res
)
=>
{
await
createCutTextures
(
'//yun.duiba.com.cn/spark/assets/22950e2c20abdc8e06fd0844d6f680e760915ac8.png'
,
4
,
4
).
then
((
res
)
=>
{
PIC_URLS
=
res
PIC_URLS
=
res
})
})
this
.
addChild
(
bigImg
)
this
.
addChild
(
bigImg
)
const
picUnit
=
new
FYGE
.
Sprite
(
PIC_URLS
[
0
])
const
picUnit
=
new
FYGE
.
Sprite
(
PIC_URLS
[
0
])
PIC_SIZE
=
picUnit
.
width
;
//图片宽
PIC_SIZE
=
picUnit
.
width
;
//图片宽
const
GAME_SIZE
=
5
;
const
GAME_SIZE
=
4
;
const
INIT_DATA
:
any
=
fill
(
GAME_SIZE
*
GAME_SIZE
);
//数据为图片id,从0开始(图片索引)
const
INIT_DATA
:
any
=
fill
(
GAME_SIZE
*
GAME_SIZE
);
//数据为图片id,从0开始(图片索引)
console
.
log
(
"INIT_DATA"
,
INIT_DATA
);
console
.
log
(
"INIT_DATA"
,
INIT_DATA
);
...
...
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