Made frontend landscape.

This commit is contained in:
genxium 2023-01-17 23:29:05 +08:00
parent b8e757064d
commit 342efc623c
23 changed files with 8547 additions and 2789 deletions

View File

@ -67,3 +67,6 @@ To summarize, if UDP is used we need
## Additional hassles to care about using UDP ## Additional hassles to care about using UDP
When using UDP, it's also necessary to verify authorization of each incoming packet, e.g. by simple time limited symmetric key, due to being connectionless. When using UDP, it's also necessary to verify authorization of each incoming packet, e.g. by simple time limited symmetric key, due to being connectionless.
## Why not hybrid?
Instead of replacing all use of TCP by UDP, it's more reasonable to keep using TCP for login and the "all-confirmed downsync inputFrames" from server to players (and possibly "upsync inputFrames" from player to server, but tradeoff on that remains to be discussed), while using UDP for broadcasting inputFrames of each individual player asap (either using p2p or not) just for **better prediction performance**!

File diff suppressed because one or more lines are too long

View File

@ -18,61 +18,43 @@
} }
}, },
{ {
"frame": 0.06666666666666667, "frame": 0.05,
"value": { "value": {
"__uuid__": "dd9a00aa-ddbc-4b01-a7cb-3c43c3a655b6" "__uuid__": "dd9a00aa-ddbc-4b01-a7cb-3c43c3a655b6"
} }
}, },
{ {
"frame": 0.11666666666666667, "frame": 0.08333333333333333,
"value": {
"__uuid__": "f66e83bd-1afc-4957-bb16-488d70566ed1"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "bd682c41-dc62-49ff-a96a-18b33e50a6de"
}
},
{
"frame": 0.23333333333333334,
"value": {
"__uuid__": "94ccab85-e32f-4e13-b0e5-72c798f78ad1"
}
},
{
"frame": 0.3,
"value": { "value": {
"__uuid__": "e80d3a01-5048-42b7-a280-cb6aa01602c2" "__uuid__": "e80d3a01-5048-42b7-a280-cb6aa01602c2"
} }
}, },
{ {
"frame": 0.36666666666666664, "frame": 0.11666666666666667,
"value": { "value": {
"__uuid__": "d899088c-be62-47b4-9ebf-0a89a2261565" "__uuid__": "d899088c-be62-47b4-9ebf-0a89a2261565"
} }
}, },
{ {
"frame": 0.4166666666666667, "frame": 0.15,
"value": { "value": {
"__uuid__": "5b1e5aa7-fd82-47ae-a5b2-6d4983d848ed" "__uuid__": "5b1e5aa7-fd82-47ae-a5b2-6d4983d848ed"
} }
}, },
{ {
"frame": 0.48333333333333334, "frame": 0.18333333333333332,
"value": { "value": {
"__uuid__": "c2945988-b4bb-4583-a5ef-2fa02b23a347" "__uuid__": "c2945988-b4bb-4583-a5ef-2fa02b23a347"
} }
}, },
{ {
"frame": 0.5666666666666667, "frame": 0.23333333333333334,
"value": { "value": {
"__uuid__": "070ea1e3-9c07-4735-8b94-515ef70216ad" "__uuid__": "070ea1e3-9c07-4735-8b94-515ef70216ad"
} }
}, },
{ {
"frame": 0.6666666666666666, "frame": 0.2833333333333333,
"value": { "value": {
"__uuid__": "3b8bc5c0-26df-4218-b7dc-134a36080a35" "__uuid__": "3b8bc5c0-26df-4218-b7dc-134a36080a35"
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 259 KiB

After

Width:  |  Height:  |  Size: 260 KiB

View File

@ -538,7 +538,7 @@
"__id__": 8 "__id__": 8
}, },
"_children": [], "_children": [],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 14 "__id__": 14

View File

@ -8,7 +8,8 @@
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false "asyncLoadAssets": false,
"readonly": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
@ -30,7 +31,6 @@
} }
], ],
"_active": true, "_active": true,
"_level": 1,
"_components": [ "_components": [
{ {
"__id__": 14 "__id__": 14
@ -52,25 +52,14 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1024, "width": 960,
"height": 1920 "height": 640
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
}, },
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "",
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
@ -86,7 +75,19 @@
1, 1,
1 1
] ]
} },
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
@ -97,7 +98,6 @@
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_level": 2,
"_components": [ "_components": [
{ {
"__id__": 3 "__id__": 3
@ -124,17 +124,6 @@
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
}, },
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "",
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
@ -150,7 +139,19 @@
1, 1,
1 1
] ]
} },
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
@ -160,6 +161,13 @@
"__id__": 2 "__id__": 2
}, },
"_enabled": true, "_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "1a2d934e-9d6d-45bf-83c6-564586cc8400" "__uuid__": "1a2d934e-9d6d-45bf-83c6-564586cc8400"
}, },
@ -174,12 +182,9 @@
"_fillStart": 0, "_fillStart": 0,
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_state": 0,
"_atlas": { "_atlas": {
"__uuid__": "030d9286-e8a2-40cf-98f8-baf713f0b8c4" "__uuid__": "030d9286-e8a2-40cf-98f8-baf713f0b8c4"
}, },
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_id": "" "_id": ""
}, },
{ {
@ -202,7 +207,6 @@
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_level": 3,
"_components": [ "_components": [
{ {
"__id__": 6 "__id__": 6
@ -229,17 +233,6 @@
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
}, },
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "",
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
@ -255,7 +248,19 @@
1, 1,
1 1
] ]
} },
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
@ -265,6 +270,13 @@
"__id__": 5 "__id__": 5
}, },
"_enabled": true, "_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "75a2c1e3-2c22-480c-9572-eb65f4a554e1" "__uuid__": "75a2c1e3-2c22-480c-9572-eb65f4a554e1"
}, },
@ -279,12 +291,9 @@
"_fillStart": 0, "_fillStart": 0,
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_state": 0,
"_atlas": { "_atlas": {
"__uuid__": "030d9286-e8a2-40cf-98f8-baf713f0b8c4" "__uuid__": "030d9286-e8a2-40cf-98f8-baf713f0b8c4"
}, },
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_id": "" "_id": ""
}, },
{ {
@ -307,7 +316,6 @@
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_level": 2,
"_components": [ "_components": [
{ {
"__id__": 9 "__id__": 9
@ -327,24 +335,13 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 111.23, "width": 111.23,
"height": 200 "height": 252
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
}, },
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "",
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
@ -360,7 +357,19 @@
0.66667, 0.66667,
0.66667 0.66667
] ]
} },
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
@ -370,6 +379,11 @@
"__id__": 8 "__id__": 8
}, },
"_enabled": true, "_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_useOriginalSize": false, "_useOriginalSize": false,
"_string": "3", "_string": "3",
"_N$string": "3", "_N$string": "3",
@ -407,7 +421,6 @@
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_level": 2,
"_components": [ "_components": [
{ {
"__id__": 12 "__id__": 12
@ -434,17 +447,6 @@
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
}, },
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"groupIndex": 0,
"_id": "",
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
@ -460,7 +462,19 @@
1, 1,
1 1
] ]
} },
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
@ -470,6 +484,13 @@
"__id__": 11 "__id__": 11
}, },
"_enabled": true, "_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "637f31c2-c53e-4dec-ae11-d56c0c6177ad" "__uuid__": "637f31c2-c53e-4dec-ae11-d56c0c6177ad"
}, },
@ -484,12 +505,9 @@
"_fillStart": 0, "_fillStart": 0,
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_state": 0,
"_atlas": { "_atlas": {
"__uuid__": "030d9286-e8a2-40cf-98f8-baf713f0b8c4" "__uuid__": "030d9286-e8a2-40cf-98f8-baf713f0b8c4"
}, },
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_id": "" "_id": ""
}, },
{ {
@ -524,11 +542,18 @@
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "334d4f93-b007-49e8-9268-35891d4f4ebb" "__uuid__": "637f31c2-c53e-4dec-ae11-d56c0c6177ad"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -538,10 +563,9 @@
"_fillStart": 0, "_fillStart": 0,
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_state": 0, "_atlas": {
"_atlas": null, "__uuid__": "030d9286-e8a2-40cf-98f8-baf713f0b8c4"
"_srcBlendFactor": 770, },
"_dstBlendFactor": 771,
"_id": "" "_id": ""
}, },
{ {

File diff suppressed because it is too large Load Diff

View File

@ -46,8 +46,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1024, "width": 960,
"height": 1920 "height": 640
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -130,7 +130,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-564, -142.555,
0, 0,
0, 0,
0, 0,
@ -430,7 +430,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-312, 178.253,
0, 0,
0, 0,
0, 0,
@ -529,7 +529,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "7838f276-ab48-445a-b858-937dd27d9520" "__uuid__": "637f31c2-c53e-4dec-ae11-d56c0c6177ad"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 0,
@ -542,7 +542,9 @@
"_fillStart": 0, "_fillStart": 0,
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": {
"__uuid__": "030d9286-e8a2-40cf-98f8-baf713f0b8c4"
},
"_id": "" "_id": ""
}, },
{ {

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "825df908-a4cb-449d-9731-8ef53f3fd44f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"MiniGame_Background": {
"ver": "1.0.4",
"uuid": "7838f276-ab48-445a-b858-937dd27d9520",
"rawTextureUuid": "825df908-a4cb-449d-9731-8ef53f3fd44f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 750,
"height": 1624,
"rawWidth": 750,
"rawHeight": 1624,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "94b8bb09-e8ac-4402-a933-b79f01b5a813",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"MiniGame_Blackboard": {
"ver": "1.0.4",
"uuid": "334d4f93-b007-49e8-9268-35891d4f4ebb",
"rawTextureUuid": "94b8bb09-e8ac-4402-a933-b79f01b5a813",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1024,
"height": 1920,
"rawWidth": 1024,
"rawHeight": 1920,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

View File

@ -77,9 +77,6 @@
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 37
},
{ {
"__id__": 38 "__id__": 38
}, },
@ -91,6 +88,9 @@
}, },
{ {
"__id__": 41 "__id__": 41
},
{
"__id__": 42
} }
], ],
"_prefab": null, "_prefab": null,
@ -104,8 +104,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1024, "width": 960,
"height": 1920 "height": 640
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -116,8 +116,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
512, 480,
960, 320,
0, 0,
0, 0,
0, 0,
@ -158,7 +158,7 @@
"__id__": 5 "__id__": 5
}, },
{ {
"__id__": 36 "__id__": 37
} }
], ],
"_prefab": null, "_prefab": null,
@ -172,8 +172,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 2048, "width": 960,
"height": 2048 "height": 640
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -283,13 +283,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 30 "__id__": 31
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 35 "__id__": 36
} }
], ],
"_prefab": null, "_prefab": null,
@ -315,16 +315,16 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, -199.439,
-500, -194.735,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
0.66667, 0.4,
0.66667, 0.4,
0.66667 1
] ]
}, },
"_eulerAngles": { "_eulerAngles": {
@ -365,7 +365,11 @@
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 30
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
@ -457,7 +461,7 @@
"array": [ "array": [
0, 0,
0, 0,
209.57814771583418, 210.4394431281402,
0, 0,
0, 0,
0, 0,
@ -560,8 +564,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-478, -447.294,
627, 135.702,
0, 0,
0, 0,
0, 0,
@ -997,7 +1001,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
591, 168.421,
0, 0,
0, 0,
0, 0,
@ -1088,16 +1092,16 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
143.689, 178,
-584.849, -217.627,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
0.66667, 0.5,
0.66667, 0.5,
0.66667 1
] ]
}, },
"_eulerAngles": { "_eulerAngles": {
@ -1276,16 +1280,16 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
370.368, 395,
-424.647, -155.562,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
0.66667, 0.5,
0.66667, 0.5,
0.66667 1
] ]
}, },
"_eulerAngles": { "_eulerAngles": {
@ -1427,6 +1431,33 @@
"_originalHeight": 40, "_originalHeight": 40,
"_id": "5bXB50moJH9aH7RcbRuSS5" "_id": "5bXB50moJH9aH7RcbRuSS5"
}, },
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 0,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "aenJ9ZDDRKDoS7u5MxeZOb"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "JoystickBG", "_name": "JoystickBG",
@ -1436,16 +1467,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 31 "__id__": 32
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 33 "__id__": 34
}, },
{ {
"__id__": 34 "__id__": 35
} }
], ],
"_prefab": null, "_prefab": null,
@ -1501,13 +1532,13 @@
"_name": "Joystick", "_name": "Joystick",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 31
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 32 "__id__": 33
} }
], ],
"_prefab": null, "_prefab": null,
@ -1563,7 +1594,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 31 "__id__": 32
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
@ -1597,7 +1628,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 30 "__id__": 31
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
@ -1631,7 +1662,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 30 "__id__": 31
}, },
"_enabled": true, "_enabled": true,
"alignMode": 0, "alignMode": 0,
@ -1718,8 +1749,8 @@
"_enabled": true, "_enabled": true,
"_designResolution": { "_designResolution": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1024, "width": 960,
"height": 1920 "height": 640
}, },
"_fitWidth": true, "_fitWidth": true,
"_fitHeight": false, "_fitHeight": false,
@ -1794,10 +1825,10 @@
"__id__": 3 "__id__": 3
}, },
"stickhead": { "stickhead": {
"__id__": 31 "__id__": 32
}, },
"base": { "base": {
"__id__": 30 "__id__": 31
}, },
"joyStickEps": 0.1, "joyStickEps": 0.1,
"magicLeanLowerBound": 0.414, "magicLeanLowerBound": 0.414,

File diff suppressed because it is too large Load Diff

View File

@ -77,9 +77,6 @@
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 27
},
{ {
"__id__": 28 "__id__": 28
}, },
@ -91,6 +88,9 @@
}, },
{ {
"__id__": 31 "__id__": 31
},
{
"__id__": 32
} }
], ],
"_prefab": null, "_prefab": null,
@ -104,8 +104,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1024, "width": 960,
"height": 1920 "height": 640
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -116,8 +116,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
512, 480,
960, 320,
0, 0,
0, 0,
0, 0,
@ -172,8 +172,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 2048, "width": 960,
"height": 2048 "height": 640
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -191,8 +191,8 @@
0, 0,
0, 0,
1, 1,
1.2, 1,
1.2, 1,
1 1
] ]
}, },
@ -293,13 +293,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 21 "__id__": 22
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 26 "__id__": 27
} }
], ],
"_prefab": null, "_prefab": null,
@ -325,16 +325,16 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, -176.065,
-500, -136.209,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
0.66667, 0.4,
0.66667, 0.4,
0.66667 1
] ]
}, },
"_eulerAngles": { "_eulerAngles": {
@ -372,7 +372,11 @@
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 21
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
@ -464,7 +468,7 @@
"array": [ "array": [
0, 0,
0, 0,
210.57636167057314, 210.4394431281402,
0, 0,
0, 0,
0, 0,
@ -652,16 +656,16 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
143.689, 178,
-584.849, -156.017,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
0.66667, 0.5,
0.66667, 0.5,
0.66667 1
] ]
}, },
"_eulerAngles": { "_eulerAngles": {
@ -840,16 +844,16 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
370.368, 395,
-424.647, -109.038,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
0.66667, 0.5,
0.66667, 0.5,
0.66667 1
] ]
}, },
"_eulerAngles": { "_eulerAngles": {
@ -991,6 +995,33 @@
"_originalHeight": 40, "_originalHeight": 40,
"_id": "5fVLGAIhROj6UDGotnneup" "_id": "5fVLGAIhROj6UDGotnneup"
}, },
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 0,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "acC7AyRb5LRpSBPNBaQiwi"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "JoystickBG", "_name": "JoystickBG",
@ -1000,16 +1031,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 22 "__id__": 23
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 24 "__id__": 25
}, },
{ {
"__id__": 25 "__id__": 26
} }
], ],
"_prefab": null, "_prefab": null,
@ -1065,13 +1096,13 @@
"_name": "Joystick", "_name": "Joystick",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 21 "__id__": 22
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 23 "__id__": 24
} }
], ],
"_prefab": null, "_prefab": null,
@ -1127,7 +1158,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 22 "__id__": 23
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
@ -1161,7 +1192,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 21 "__id__": 22
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
@ -1195,7 +1226,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 21 "__id__": 22
}, },
"_enabled": true, "_enabled": true,
"alignMode": 0, "alignMode": 0,
@ -1225,12 +1256,12 @@
"__id__": 7 "__id__": 7
}, },
"_enabled": true, "_enabled": true,
"alignMode": 0, "alignMode": 1,
"_target": null, "_target": null,
"_alignFlags": 0, "_alignFlags": 0,
"_left": 278, "_left": 0,
"_right": 480.0000000000002, "_right": 0,
"_top": 544, "_top": 0,
"_bottom": 0, "_bottom": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
@ -1240,9 +1271,9 @@
"_isAbsBottom": true, "_isAbsBottom": true,
"_isAbsHorizontalCenter": true, "_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true, "_isAbsVerticalCenter": true,
"_originalWidth": 480, "_originalWidth": 0,
"_originalHeight": 0, "_originalHeight": 0,
"_id": "2cxYjEIwNO6rUtXX4WcfnV" "_id": "d6b0+dLHZPRazfYJU9laKD"
}, },
{ {
"__type__": "cc.Canvas", "__type__": "cc.Canvas",
@ -1254,8 +1285,8 @@
"_enabled": true, "_enabled": true,
"_designResolution": { "_designResolution": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1024, "width": 960,
"height": 1920 "height": 640
}, },
"_fitWidth": true, "_fitWidth": true,
"_fitHeight": false, "_fitHeight": false,
@ -1330,10 +1361,10 @@
"__id__": 3 "__id__": 3
}, },
"stickhead": { "stickhead": {
"__id__": 22 "__id__": 23
}, },
"base": { "base": {
"__id__": 21 "__id__": 22
}, },
"joyStickEps": 0.1, "joyStickEps": 0.1,
"magicLeanLowerBound": 0.414, "magicLeanLowerBound": 0.414,

View File

@ -68,6 +68,8 @@ cc.Class({
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
onLoad() { onLoad() {
cc.view.setOrientation(cc.macro.ORIENTATION_LANDSCAPE);
cc.view.enableAutoFullScreen(true);
window.atFirstLocationHref = window.location.href.split('#')[0]; window.atFirstLocationHref = window.location.href.split('#')[0];
const self = this; const self = this;

View File

@ -409,6 +409,9 @@ cc.Class({
}, },
onLoad() { onLoad() {
cc.view.setOrientation(cc.macro.ORIENTATION_LANDSCAPE);
cc.view.enableAutoFullScreen(true);
const self = this; const self = this;
window.mapIns = self; window.mapIns = self;
window.forceBigEndianFloatingNumDecoding = self.forceBigEndianFloatingNumDecoding; window.forceBigEndianFloatingNumDecoding = self.forceBigEndianFloatingNumDecoding;
@ -912,7 +915,7 @@ batchInputFrameIdRange=[${batch[0].inputFrameId}, ${batch[batch.length - 1].inpu
if (elapsedMillisSinceLastFrameIdTriggered < self.tooFastDtIntervalMillis) { if (elapsedMillisSinceLastFrameIdTriggered < self.tooFastDtIntervalMillis) {
// [WARNING] We should avoid a frontend ticking too fast to prevent cheating, as well as ticking too slow to cause a "resync avalanche" that impacts user experience! // [WARNING] We should avoid a frontend ticking too fast to prevent cheating, as well as ticking too slow to cause a "resync avalanche" that impacts user experience!
// console.debug("Avoiding too fast frame@renderFrameId=", self.renderFrameId, ": elapsedMillisSinceLastFrameIdTriggered=", elapsedMillisSinceLastFrameIdTriggered); // console.debug("Avoiding too fast frame@renderFrameId=", self.renderFrameId, ": elapsedMillisSinceLastFrameIdTriggered=", elapsedMillisSinceLastFrameIdTriggered);
return; //return;
} }
try { try {
let st = performance.now(); let st = performance.now();

View File

@ -11,6 +11,8 @@ cc.Class({
}, },
onLoad() { onLoad() {
cc.view.setOrientation(cc.macro.ORIENTATION_LANDSCAPE);
cc.view.enableAutoFullScreen(true);
const self = this; const self = this;
window.mapIns = self; window.mapIns = self;
self.showCriticalCoordinateLabels = false; self.showCriticalCoordinateLabels = false;
@ -94,7 +96,7 @@ cc.Class({
const p2Vpos = gopkgs.WorldToVirtualGridPos(boundaryObjs.playerStartingPositions[1].x, boundaryObjs.playerStartingPositions[1].y); const p2Vpos = gopkgs.WorldToVirtualGridPos(boundaryObjs.playerStartingPositions[1].x, boundaryObjs.playerStartingPositions[1].y);
const colliderRadiusV = gopkgs.WorldToVirtualGridPos(12.0, 0); const colliderRadiusV = gopkgs.WorldToVirtualGridPos(12.0, 0);
const speciesIdList = [1, 4096]; const speciesIdList = [4096, 1];
const chConfigsOrderedByJoinIndex = gopkgs.GetCharacterConfigsOrderedByJoinIndex(speciesIdList); const chConfigsOrderedByJoinIndex = gopkgs.GetCharacterConfigsOrderedByJoinIndex(speciesIdList);
const startRdf = window.pb.protos.RoomDownsyncFrame.create({ const startRdf = window.pb.protos.RoomDownsyncFrame.create({
@ -154,7 +156,7 @@ cc.Class({
if (elapsedMillisSinceLastFrameIdTriggered < self.tooFastDtIntervalMillis) { if (elapsedMillisSinceLastFrameIdTriggered < self.tooFastDtIntervalMillis) {
// [WARNING] We should avoid a frontend ticking too fast to prevent cheating, as well as ticking too slow to cause a "resync avalanche" that impacts user experience! // [WARNING] We should avoid a frontend ticking too fast to prevent cheating, as well as ticking too slow to cause a "resync avalanche" that impacts user experience!
// console.debug("Avoiding too fast frame@renderFrameId=", self.renderFrameId, ": elapsedMillisSinceLastFrameIdTriggered=", elapsedMillisSinceLastFrameIdTriggered); // console.debug("Avoiding too fast frame@renderFrameId=", self.renderFrameId, ": elapsedMillisSinceLastFrameIdTriggered=", elapsedMillisSinceLastFrameIdTriggered);
return; //return;
} }
try { try {
let st = performance.now(); let st = performance.now();

View File

@ -173,11 +173,11 @@ cc.Class({
}); });
self.btnA.on(cc.Node.EventType.TOUCH_END, function(evt) { self.btnA.on(cc.Node.EventType.TOUCH_END, function(evt) {
self._triggerEdgeBtnA(false); self._triggerEdgeBtnA(false);
evt.target.runAction(cc.scaleTo(0.1, 1.0)); evt.target.runAction(cc.scaleTo(0.1, 0.5));
}); });
self.btnA.on(cc.Node.EventType.TOUCH_CANCEL, function(evt) { self.btnA.on(cc.Node.EventType.TOUCH_CANCEL, function(evt) {
self._triggerEdgeBtnA(false); self._triggerEdgeBtnA(false);
evt.target.runAction(cc.scaleTo(0.1, 1.0)); evt.target.runAction(cc.scaleTo(0.1, 0.5));
}); });
} }
@ -188,11 +188,11 @@ cc.Class({
}); });
self.btnB.on(cc.Node.EventType.TOUCH_END, function(evt) { self.btnB.on(cc.Node.EventType.TOUCH_END, function(evt) {
self._triggerEdgeBtnB(false); self._triggerEdgeBtnB(false);
evt.target.runAction(cc.scaleTo(0.1, 1.0)); evt.target.runAction(cc.scaleTo(0.1, 0.5));
}); });
self.btnB.on(cc.Node.EventType.TOUCH_CANCEL, function(evt) { self.btnB.on(cc.Node.EventType.TOUCH_CANCEL, function(evt) {
self._triggerEdgeBtnB(false); self._triggerEdgeBtnB(false);
evt.target.runAction(cc.scaleTo(0.1, 1.0)); evt.target.runAction(cc.scaleTo(0.1, 0.5));
}); });
} }

View File

@ -302,7 +302,7 @@ var skills = map[int]*Skill{
HitboxOffsetY: int32(0), HitboxOffsetY: int32(0),
HitboxSizeX: int32(float64(24) * WORLD_TO_VIRTUAL_GRID_RATIO), HitboxSizeX: int32(float64(24) * WORLD_TO_VIRTUAL_GRID_RATIO),
HitboxSizeY: int32(float64(32) * WORLD_TO_VIRTUAL_GRID_RATIO), HitboxSizeY: int32(float64(32) * WORLD_TO_VIRTUAL_GRID_RATIO),
CancellableStFrame: int32(8), CancellableStFrame: int32(13),
CancellableEdFrame: int32(30), CancellableEdFrame: int32(30),
CancelTransit: map[int]int{ CancelTransit: map[int]int{
@ -337,7 +337,7 @@ var skills = map[int]*Skill{
HitboxOffsetY: int32(0), HitboxOffsetY: int32(0),
HitboxSizeX: int32(float64(24) * WORLD_TO_VIRTUAL_GRID_RATIO), HitboxSizeX: int32(float64(24) * WORLD_TO_VIRTUAL_GRID_RATIO),
HitboxSizeY: int32(float64(32) * WORLD_TO_VIRTUAL_GRID_RATIO), HitboxSizeY: int32(float64(32) * WORLD_TO_VIRTUAL_GRID_RATIO),
CancellableStFrame: int32(19), CancellableStFrame: int32(23),
CancellableEdFrame: int32(36), CancellableEdFrame: int32(36),
CancelTransit: map[int]int{ CancelTransit: map[int]int{
1: 6, 1: 6,