Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
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
SparkProjects
MingSnake_241120
Commits
a60a67bd
Commit
a60a67bd
authored
Dec 11, 2024
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2efbd4d2
Changes
13
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1267 additions
and
276 deletions
+1267
-276
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+709
-275
topCard.meta
assets/Bundles/MainGame/png/topCard.meta
+9
-0
小横幅背景@1x.png
assets/Bundles/MainGame/png/topCard/小横幅背景@1x.png
+0
-0
小横幅背景@1x.png.meta
assets/Bundles/MainGame/png/topCard/小横幅背景@1x.png.meta
+134
-0
零食卡红色@1x.png
assets/Bundles/MainGame/png/topCard/零食卡红色@1x.png
+0
-0
零食卡红色@1x.png.meta
assets/Bundles/MainGame/png/topCard/零食卡红色@1x.png.meta
+134
-0
零食卡绿色@1x.png
assets/Bundles/MainGame/png/topCard/零食卡绿色@1x.png
+0
-0
零食卡绿色@1x.png.meta
assets/Bundles/MainGame/png/topCard/零食卡绿色@1x.png.meta
+134
-0
零食卡蓝色@1x.png
assets/Bundles/MainGame/png/topCard/零食卡蓝色@1x.png
+0
-0
零食卡蓝色@1x.png.meta
assets/Bundles/MainGame/png/topCard/零食卡蓝色@1x.png.meta
+134
-0
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+3
-1
Player.ts
assets/Scripts/Scenes/MainGame/Player.ts
+4
-0
startGame.do.json
startGame.do.json
+6
-0
No files found.
assets/Bundles/MainGame/MainGame.scene
View file @
a60a67bd
This diff is collapsed.
Click to expand it.
assets/Bundles/MainGame/png/topCard.meta
0 → 100644
View file @
a60a67bd
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "ad7a3793-b4bb-4650-9a1c-23cc885204f9",
"files": [],
"subMetas": {},
"userData": {}
}
assets/Bundles/MainGame/png/topCard/小横幅背景@1x.png
0 → 100644
View file @
a60a67bd
455 Bytes
assets/Bundles/MainGame/png/topCard/小横幅背景@1x.png.meta
0 → 100644
View file @
a60a67bd
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "2dcd82d7-66db-456d-833e-dca6e62ca87c",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "2dcd82d7-66db-456d-833e-dca6e62ca87c@6c48a",
"displayName": "小横幅背景@1x",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "2dcd82d7-66db-456d-833e-dca6e62ca87c",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "2dcd82d7-66db-456d-833e-dca6e62ca87c@f9941",
"displayName": "小横幅背景@1x",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 60,
"rawWidth": 240,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-120,
-30,
0,
120,
-30,
0,
-120,
30,
0,
120,
30,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
60,
240,
60,
0,
0,
240,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-120,
-30,
0
],
"maxPos": [
120,
30,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "2dcd82d7-66db-456d-833e-dca6e62ca87c@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "2dcd82d7-66db-456d-833e-dca6e62ca87c@6c48a"
}
}
assets/Bundles/MainGame/png/topCard/零食卡红色@1x.png
0 → 100644
View file @
a60a67bd
796 Bytes
assets/Bundles/MainGame/png/topCard/零食卡红色@1x.png.meta
0 → 100644
View file @
a60a67bd
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "c6b39193-6b92-404d-b4d1-c3a9cc8b0f80",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c6b39193-6b92-404d-b4d1-c3a9cc8b0f80@6c48a",
"displayName": "零食卡红色@1x",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "c6b39193-6b92-404d-b4d1-c3a9cc8b0f80",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "c6b39193-6b92-404d-b4d1-c3a9cc8b0f80@f9941",
"displayName": "零食卡红色@1x",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 32,
"height": 42,
"rawWidth": 32,
"rawHeight": 42,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-16,
-21,
0,
16,
-21,
0,
-16,
21,
0,
16,
21,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
42,
32,
42,
0,
0,
32,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-16,
-21,
0
],
"maxPos": [
16,
21,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "c6b39193-6b92-404d-b4d1-c3a9cc8b0f80@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "c6b39193-6b92-404d-b4d1-c3a9cc8b0f80@6c48a"
}
}
assets/Bundles/MainGame/png/topCard/零食卡绿色@1x.png
0 → 100644
View file @
a60a67bd
887 Bytes
assets/Bundles/MainGame/png/topCard/零食卡绿色@1x.png.meta
0 → 100644
View file @
a60a67bd
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "20710d44-64c2-4fc5-9736-896ca6e505d9",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "20710d44-64c2-4fc5-9736-896ca6e505d9@6c48a",
"displayName": "零食卡绿色@1x",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "20710d44-64c2-4fc5-9736-896ca6e505d9",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "20710d44-64c2-4fc5-9736-896ca6e505d9@f9941",
"displayName": "零食卡绿色@1x",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 32,
"height": 42,
"rawWidth": 32,
"rawHeight": 42,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-16,
-21,
0,
16,
-21,
0,
-16,
21,
0,
16,
21,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
42,
32,
42,
0,
0,
32,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-16,
-21,
0
],
"maxPos": [
16,
21,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "20710d44-64c2-4fc5-9736-896ca6e505d9@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "20710d44-64c2-4fc5-9736-896ca6e505d9@6c48a"
}
}
assets/Bundles/MainGame/png/topCard/零食卡蓝色@1x.png
0 → 100644
View file @
a60a67bd
744 Bytes
assets/Bundles/MainGame/png/topCard/零食卡蓝色@1x.png.meta
0 → 100644
View file @
a60a67bd
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a4050df6-9647-4152-ad4b-20e2878a272e",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a4050df6-9647-4152-ad4b-20e2878a272e@6c48a",
"displayName": "零食卡蓝色@1x",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a4050df6-9647-4152-ad4b-20e2878a272e",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "a4050df6-9647-4152-ad4b-20e2878a272e@f9941",
"displayName": "零食卡蓝色@1x",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 32,
"height": 42,
"rawWidth": 32,
"rawHeight": 42,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-16,
-21,
0,
16,
-21,
0,
-16,
21,
0,
16,
21,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
42,
32,
42,
0,
0,
32,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-16,
-21,
0
],
"maxPos": [
16,
21,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "a4050df6-9647-4152-ad4b-20e2878a272e@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a4050df6-9647-4152-ad4b-20e2878a272e@6c48a"
}
}
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
a60a67bd
...
...
@@ -210,7 +210,9 @@ export class MainGame extends Scene {
reactionLenDisposer = null;
async initStage() {
const { currentStage } = gameStore.startInfo;
let { currentStage } = gameStore.startInfo;
currentStage = 3
// 初始化玩家
this.player.init({
...
...
assets/Scripts/Scenes/MainGame/Player.ts
View file @
a60a67bd
...
...
@@ -48,6 +48,10 @@ export class Player extends Snake {
gameStore
.
gameInfo
.
luckNum
=
value
;
}
checkCard
()
{
console
.
warn
(
"xxxx"
,
this
.
cardMap
)
}
onLoad
()
{
super
.
onLoad
();
this
.
tag
=
Snake
.
getTag
();
...
...
startGame.do.json
0 → 100644
View file @
a60a67bd
{
"success"
:
true
,
"code"
:
""
,
"message"
:
""
,
"data"
:
"Dn22D8mkVmDOfP4ajNWcqtUT2BWK7hLAEHSofRAnITI23/h6M5dk9MJ+cY56DvHjlsXFGC8q3BgSsz56SCAcO6LiZx8tbmrjStn4UcGZq6/W+ZIm0IEma+v0iYkjGBT6bqBnMhA+9JKPvWXKnFJiNR2b8kEDC1Mjt2MH2penAaujIPcM6SAvaaZuTB04+Jtk5VSYZXauvq4KmXW3GGRumeiiyEIA+ZXAopsUzjcknsRY6nZmKVj0NjiFtVGF84qiZnISqNrmwNrdHOQONlI0TLVPx0Bzlpich1zyMUMMkZ/7cV2CeMi6Sm84oR/risQdMtm7d9EPsIDnoL6i0TO+JLCfvbc2r4yxr3qVSjSnK8A2DqxrtTBtXV8BLNwPLVjtZLVP0MnLPT6PXS5TNsD/jRswCJPga523j5LQgkXjJLlRl83WRQ8/SrcECSAoTF0gHG0+rm8WuFVrvQadxzK8kWZertwqJhAKkAlaj5rOJIgfS7rfoxrqPFSG7JvnMFNyCJ5Z8e4SSC6R/G8pBB1js45fXO6HvLg1QrYCZp+yxNAhcvDgXSPMIHVQns9RFNrw5cC0a4gSW8qIqzNbbl12pfq/OYvV0TjVFIZuGGYAlDrmSifBtQbh3yuT4pd6NH/inb/RXr6U3M6zCet4l0foaQ=="
}
\ No newline at end of file
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