Commit 60ebed90 authored by Đặng Minh Chiến's avatar Đặng Minh Chiến

Initial commit

parents
Pipeline #1673 failed with stages
#/////////////////////////////////////////////////////////////////////////////
# Fireball Projects
#/////////////////////////////////////////////////////////////////////////////
/library/
/temp/
/local/
/build/
native
#/////////////////////////////////////////////////////////////////////////////
# npm files
#/////////////////////////////////////////////////////////////////////////////
npm-debug.log
node_modules/
#/////////////////////////////////////////////////////////////////////////////
# Logs and databases
#/////////////////////////////////////////////////////////////////////////////
*.log
*.sql
*.sqlite
#/////////////////////////////////////////////////////////////////////////////
# files for debugger
#/////////////////////////////////////////////////////////////////////////////
*.sln
*.csproj
*.pidb
*.unityproj
*.suo
#/////////////////////////////////////////////////////////////////////////////
# OS generated files
#/////////////////////////////////////////////////////////////////////////////
.DS_Store
ehthumbs.db
Thumbs.db
#/////////////////////////////////////////////////////////////////////////////
# WebStorm files
#/////////////////////////////////////////////////////////////////////////////
.idea/
#//////////////////////////
# VS Code files
#//////////////////////////
.vscode/
{
"ver": "1.1.3",
"uuid": "7ed0ead0-bbe5-4512-9c80-657fc24a4219",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "HandGreen",
"_objFlags": 0,
"_native": "",
"_duration": 0.5,
"sample": 60,
"speed": 1,
"wrapMode": 2,
"curveData": {
"props": {
"x": [
{
"frame": 0,
"value": 445
},
{
"frame": 0.25,
"value": 465
},
{
"frame": 0.5,
"value": 445
}
]
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.2",
"uuid": "3a9ad9da-7907-458d-9707-a7981081332f",
"importer": "animation-clip",
"subMetas": {}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "HandRed",
"_objFlags": 0,
"_native": "",
"_duration": 0.5,
"sample": 60,
"speed": 1,
"wrapMode": 2,
"curveData": {
"props": {
"x": [
{
"frame": 0,
"value": -150
},
{
"frame": 0.25,
"value": -170
},
{
"frame": 0.5,
"value": -150
}
]
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.2",
"uuid": "e724441d-d7ec-448c-b5a4-724e3697b37e",
"importer": "animation-clip",
"subMetas": {}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "HandYellow",
"_objFlags": 0,
"_native": "",
"_duration": 0.5,
"sample": 60,
"speed": 1,
"wrapMode": 2,
"curveData": {
"props": {
"x": [
{
"frame": 0,
"value": -151.466
},
{
"frame": 0.25,
"value": -170
},
{
"frame": 0.5,
"value": -150
}
]
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.2",
"uuid": "d10d188e-4e9c-43c9-ab4d-1ce3e82252ea",
"importer": "animation-clip",
"subMetas": {}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "HighlightersAnim",
"_objFlags": 0,
"_native": "",
"_duration": 0.5166666666666667,
"sample": 60,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": null
},
{
"frame": 0.25,
"value": {
"__uuid__": "f8b77589-72f4-44ff-a9a3-854368d83eac"
}
},
{
"frame": 0.5,
"value": null
}
]
}
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.2",
"uuid": "5e24ab30-c6bc-46cd-af10-f129447ef24b",
"importer": "animation-clip",
"subMetas": {}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "StepEffect",
"_objFlags": 0,
"_native": "",
"_duration": 0.5,
"sample": 60,
"speed": 1,
"wrapMode": 1,
"curveData": {
"props": {
"scale": [
{
"frame": 0,
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 1
}
},
{
"frame": 0.5,
"value": {
"__type__": "cc.Vec3",
"x": 1.2,
"y": 1.2,
"z": 1
}
}
],
"color": [
{
"frame": 0.5,
"value": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
}
}
]
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.2",
"uuid": "0357c41b-f7e9-4ead-bb71-9e10ce2e4273",
"importer": "animation-clip",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.3",
"uuid": "f73fc143-7c3b-4b6e-a086-58e1e735dce1",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.3",
"uuid": "806256d4-9470-4170-af6c-54b3341ae03c",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 1.176,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.3",
"uuid": "7b5f14a0-7d0a-446e-9c06-43f0921f58ec",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 25.286531,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.3",
"uuid": "02f53a09-3d96-430f-8281-aaaf7638a2b6",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 0.287347,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.3",
"uuid": "946cb485-c99d-41a0-aba5-31f14d6646f6",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 5.82525,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.3",
"uuid": "9bd20fe3-6fc1-4a0a-ad0e-dd4ea6475382",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 0.24,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.3",
"uuid": "7d065b60-8ae7-4d65-8b55-91cb3b75700e",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 0.18275,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.3",
"uuid": "2d5ee2ce-0658-4bfa-9a48-450d0c6a0603",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 1.07102,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.3",
"uuid": "f6dd455e-fca4-4ad7-9873-2f3552064241",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 1.152,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.3",
"uuid": "9e0918bf-f170-429c-be4d-5e45bbc8e17b",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 1.201633,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.3",
"uuid": "1a892481-c7ab-4785-a137-300b45696aa1",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 0.313469,
"subMetas": {}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "BlueHand",
"_objFlags": 0,
"_native": "",
"_duration": 0.5,
"sample": 60,
"speed": 1,
"wrapMode": 1,
"curveData": {
"props": {
"x": [
{
"frame": 0,
"value": 445
},
{
"frame": 0.25,
"value": 465
},
{
"frame": 0.5,
"value": 445
}
]
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.2",
"uuid": "c09f7ada-33f0-4592-9d7a-aa2bf45516cb",
"importer": "animation-clip",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.3",
"uuid": "93d958cd-e47b-47ff-a67a-1b04af5f9a1b",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.3",
"uuid": "179c4e54-4b1c-4e3f-ab71-2792b4478933",
"importer": "asset",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.3",
"uuid": "c24feb02-e73b-40d0-a244-7ab5256c3ffa",
"importer": "asset",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.3",
"uuid": "28da35bb-aa02-4e0a-bee3-2fb9c9df1d5a",
"importer": "asset",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.3",
"uuid": "b7b10b96-fe60-431f-b2c5-a5e6ae520e0c",
"importer": "asset",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.3",
"uuid": "d571bfec-920e-476c-9ee2-08e31e13f0df",
"importer": "asset",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.3",
"uuid": "67e3d797-3a65-4834-9465-e6f078f31849",
"importer": "asset",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.3",
"uuid": "2032aff3-ba15-4d01-8643-d1314880b73a",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "EffectDot",
"_objFlags": 0,
"_parent": null,
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
}
],
"_prefab": {
"__id__": 3
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 32,
"height": 32
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
0,
0,
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",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "5c9ecd36-be11-4623-82aa-25ed204ad9fe"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.3.2",
"uuid": "fed2bef7-42a9-46b5-b5b4-2a3f07828fed",
"importer": "prefab",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "Player",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
}
],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": {
"__id__": 12
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
397.176,
-69.378,
0,
0,
0,
0,
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",
"_name": "Image",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 64,
"height": 64
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
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",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "dd83bd33-d0f1-4fbe-84a1-d7d96e7651c9"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "5eHZqDOhJK35eefJD/sseY",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "Location",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 6
}
],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 218,
"g": 218,
"b": 218,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33,
"height": 42
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
32.495,
0,
0,
0,
0,
1,
1.2,
1.2,
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",
"_name": "Dot",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
}
],
"_prefab": {
"__id__": 8
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 204,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 18,
"height": 18
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
4.68,
0,
0,
0,
0,
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",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "5c9ecd36-be11-4623-82aa-25ed204ad9fe"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "abGmL2WHJE+ZlArU/e7Sam",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9056936d-cb56-45f0-b472-c9a2a24a5578"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c8utIDYnxCoZauT8MAazMI",
"sync": false
},
{
"__type__": "500508zgpFNPKSrM2g7BfN1",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"positionIndex": 0,
"initalPosition": null,
"basePosition": null,
"isOnSafePosition": false,
"isOnFinalPos": false,
"isMovable": false,
"isOutOfStartBox": false,
"isRotating": false,
"chipToRotate": {
"__id__": 2
},
"colorDot": {
"__id__": 6
},
"isScaleChanged": false,
"playerClass": 0,
"wasScaleDown": false,
"pastScale": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.3.2",
"uuid": "c0d2acff-f4fc-4c3b-8720-07c0f7c79853",
"importer": "prefab",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "SoundManager",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
},
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": {
"__id__": 12
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
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",
"_name": "UISource",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
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.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_clip": null,
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "4fGwu5extLXpK73ZWE00PV",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "GameAudioPlay",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
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.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_clip": null,
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "09BR5XqEZCY7VgpQjmAoA7",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "BG",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
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.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_clip": {
"__uuid__": "7b5f14a0-7d0a-446e-9c06-43f0921f58ec"
},
"_volume": 1,
"_mute": false,
"_loop": true,
"_firstlyEnabled": true,
"playOnLoad": true,
"preload": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "ae3dhbIEtJa7++tLd4/Act",
"sync": false
},
{
"__type__": "2af73c770tBwaSJsqrW+SZz",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"uiAudioSrc": {
"__id__": 3
},
"gamePlayAudioSrc": {
"__id__": 6
},
"gameBK": {
"__id__": 9
},
"audioClips": [
{
"__uuid__": "2d5ee2ce-0658-4bfa-9a48-450d0c6a0603"
},
{
"__uuid__": "1a892481-c7ab-4785-a137-300b45696aa1"
},
{
"__uuid__": "02f53a09-3d96-430f-8281-aaaf7638a2b6"
},
{
"__uuid__": "9bd20fe3-6fc1-4a0a-ad0e-dd4ea6475382"
},
{
"__uuid__": "7d065b60-8ae7-4d65-8b55-91cb3b75700e"
},
{
"__uuid__": "946cb485-c99d-41a0-aba5-31f14d6646f6"
},
{
"__uuid__": "9e0918bf-f170-429c-be4d-5e45bbc8e17b"
},
{
"__uuid__": "f6dd455e-fca4-4ad7-9873-2f3552064241"
},
{
"__uuid__": "806256d4-9470-4170-af6c-54b3341ae03c"
}
],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.3.2",
"uuid": "f2bb30eb-5004-4648-9ca2-d69f75141244",
"importer": "prefab",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.3",
"uuid": "f47065bd-7d76-43f0-902a-028a42c07ee5",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.3.2",
"uuid": "13e00b6b-327f-48d1-8f84-36b5e0a6efff",
"importer": "scene",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.3.2",
"uuid": "05e5fb08-b6b5-43b8-85fc-bee7c12a1e00",
"importer": "scene",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.3.2",
"uuid": "ae4ecb51-fcea-4005-aab8-b8eced40ec0d",
"importer": "scene",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.3",
"uuid": "174e5f50-8a90-4818-bf05-bc1864348ce5",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.3",
"uuid": "e132cca9-1c4f-424a-86c1-5b5c1ffeffd2",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
export const PLAYER_COLOR: string = "PlayerColor";
export const NO_OF_PLAYERS: string = "NoOfPlayers";
export const MUSIC: string = "Music";
export const SOUND: string = "Sound";
export const GAME_TYPE: string = "GameType";
export const SCENE_MAIN: string = "Main";
export const SCENE_MENU: string = "Menu";
export const PLAYER_NAME_1 = "player1name";
export const PLAYER_NAME_2 = "player2name";
export const PLAYER_NAME_3 = "player3name";
export const PLAYER_NAME_4 = "player4name";
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "9192731c-e7d7-4bb4-9f8b-fab2cf52c723",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.1.0",
"uuid": "4443820c-fc22-40c7-bc24-e2ec4d2b9c6d",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.3",
"uuid": "e3ee9475-7624-49dc-8159-a64f6f1f0fad",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
// Learn TypeScript:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator;
@ccclass
export default class EffectsManager extends cc.Component {
@property(cc.Prefab)
effectPrefab: cc.Prefab = null;
@property(cc.Prefab)
winEffectPrefab: cc.Prefab = null;
static instance: EffectsManager = null;
onLoad() {
EffectsManager.instance = this;
}
playPlayerStepEffect(effectColor: cc.Color, effectPosition: cc.Vec3) {
let node = cc.instantiate(this.effectPrefab);
node.parent = this.node;
node.setPosition(effectPosition);
node.color = new cc.Color(effectColor.r, effectColor.g, effectColor.b, 0.1) ;
cc.tween(node)
.to(0.5, { scale: 1.4, opacity: 0 })
.start();
node.runAction(cc.sequence(cc.delayTime(0.5), cc.removeSelf()));
}
playPlayerWinEffect(effectColor: cc.Color, effectPosition: cc.Vec3) {
let node = cc.instantiate(this.winEffectPrefab);
node.parent = this.node;
node.setPosition(effectPosition);
node.color = new cc.Color(effectColor.r, effectColor.g, effectColor.b, 0.1);
node.scale = 0;
cc.tween(node)
.to(0.5, { scale: 5, opacity: 0 })
.start();
node.runAction(cc.sequence(cc.delayTime(2), cc.removeSelf()));
}
}
{
"ver": "1.1.0",
"uuid": "a601c13d-c606-46ac-806c-6729df785ab2",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.1.0",
"uuid": "cc5a0de7-7586-4fce-ada5-a40f1b016571",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.1.0",
"uuid": "f7b1f236-4b43-4971-b30d-c9b333b260f1",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// Learn TypeScript:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator;
@ccclass
export default class SoundsManager extends cc.Component {
public static Instance: SoundsManager = null;
@property(cc.AudioSource)
uiAudioSrc : cc.AudioSource = null;
@property(cc.AudioSource)
gamePlayAudioSrc : cc.AudioSource = null;
@property(cc.AudioSource)
gameBK : cc.AudioSource = null;
@property([cc.AudioClip])
audioClips : cc.AudioClip[] = [];
onLoad () {
SoundsManager.Instance = this;
}
playDiceThrowSounds()
{
this.gamePlayAudioSrc.clip = this.audioClips[0];
this.gamePlayAudioSrc.play();
}
playPlayerStepSound()
{
this.gamePlayAudioSrc.clip = this.audioClips[1];
this.gamePlayAudioSrc.play();
}
playToggleClickSound()
{
this.uiAudioSrc.clip = this.audioClips[2];
this.uiAudioSrc.play();
}
playUIButtonClickSound()
{
this.uiAudioSrc.clip = this.audioClips[3];
this.uiAudioSrc.play();
}
playCoinSound()
{
this.uiAudioSrc.clip = this.audioClips[4];
this.uiAudioSrc.play();
}
playCheerSound()
{
this.uiAudioSrc.clip = this.audioClips[5];
this.uiAudioSrc.play();
}
playKillSound()
{
this.uiAudioSrc.clip = this.audioClips[6];
this.uiAudioSrc.play();
}
playTokenEnterSound()
{
this.uiAudioSrc.clip = this.audioClips[7];
this.uiAudioSrc.play();
}
playCoinCollectionSound()
{
this.uiAudioSrc.clip = this.audioClips[8];
this.uiAudioSrc.play();
}
musicOn()
{
this.gameBK.mute = false;
}
musicOff()
{
this.gameBK.mute = true;
}
soundOn()
{
this.gamePlayAudioSrc.mute = false;
this.uiAudioSrc.mute = false;
}
soundOff()
{
this.gamePlayAudioSrc.mute = true;
this.uiAudioSrc.mute = true;
}
// LIFE-CYCLE CALLBACKS:
}
{
"ver": "1.1.0",
"uuid": "2af7373b-ef4b-41c1-a489-b2aad6f92673",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.1.0",
"uuid": "3a12fa99-ad7c-4200-a9c1-e13d7b9c4da2",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.3",
"uuid": "a11fb3c4-805c-403b-bcee-2ae56173ec5b",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.1.0",
"uuid": "50050f33-8291-4d3c-a4ab-33683b05f375",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// Learn TypeScript:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
import { GAME_TYPE, NO_OF_PLAYERS, PLAYER_COLOR } from "../Data/Constans";
import GameBroadManager from "../Manager/GameBroadManager";
const { ccclass, property } = cc._decorator;
@ccclass
export default class PlayerDiceTapHandler extends cc.Component {
@property()
id: number = 0;
private noOfPlayer: number = 0;
private gameType: number = 0;
start() {
this.noOfPlayer = cc.sys.localStorage.getItem(NO_OF_PLAYERS);
this.gameType = cc.sys.localStorage.getItem(GAME_TYPE);
this.node.on(cc.Node.EventType.MOUSE_DOWN, this.onRightClick, this);
if (this.gameType == 1) {
this.setActiveTapHandle();
if (this.node.active) {
this.id = 0;
}
} else if (this.gameType == 2) {
if (this.noOfPlayer == 2 && this.id == 1) {
this.node.active = false;
}
if (this.noOfPlayer == 2 && this.id == 3) {
this.node.active = false;
}
if (this.noOfPlayer === 3 && this.id === 3) {
this.node.active = false;
}
}
}
onRightClick(event) {
if (GameBroadManager.isPlayerDiceTappable) {
GameBroadManager.Instance.performDiceThrowForPlayer1(this.id);
}
}
setActiveTapHandle() {
switch (cc.sys.localStorage.getItem(PLAYER_COLOR)) {
case "R":
if (this.id == 1 || this.id == 2 || this.id == 3) {
this.node.active = false;
}
break;
case "Y":
if (this.id == 0 || this.id == 2 || this.id == 3) {
this.node.active = false;
}
break;
case "G":
if (this.id == 0 || this.id == 1 || this.id == 3) {
this.node.active = false;
}
break;
case "B":
if (this.id == 0 || this.id == 1 || this.id == 2) {
this.node.active = false;
}
break;
}
}
}
{
"ver": "1.1.0",
"uuid": "5798cf92-fbb3-44b5-a781-fe98246c3120",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.1.0",
"uuid": "15a60890-60aa-4d2e-9630-16c4bb57ffcb",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.1.0",
"uuid": "dcb17683-dcea-46fa-ac89-a7af4f686be0",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{
"ver": "1.0.3",
"uuid": "87c9811a-cf3c-4fd5-a2af-43b0fb2333e7",
"importer": "asset",
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment