Commit 2428cd66 authored by huangwenjie's avatar huangwenjie

1

parent ff27bbec
{
"version": "0.2.0",
"configurations": [
{
"name": "Wing 内置播放器调试",
"type": "chrome",
"request": "launch",
"file": "index.html",
//"url": "http://mysite.com/index.html",
"runtimeExecutable": "${execPath}",
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
"preLaunchTask":"build",
"port":5454
},
{
"name": "使用本机 Chrome 调试",
"type": "chrome",
"request": "launch",
"file": "index.html",
//"url": "http://mysite.com/index.html",
"runtimeExecutable": "",
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
"preLaunchTask":"build",
"userDataDir":"${tmpdir}",
"port":5454
}
]
}
\ No newline at end of file
{
"version": "0.1.0",
"command": "egret",
"isShellCommand": true,
"tasks": [
{
"taskName": "build",
"showOutput": "always",
"args": [
"build",
"-sourcemap"
],
"problemMatcher": "$tsc"
},
{
"taskName": "clean",
"showOutput": "always",
"args": [
"build",
"-e"
],
"problemMatcher": "$tsc"
},
{
"taskName": "publish",
"showOutput": "always",
"args": [
"publish"
],
"problemMatcher": "$tsc"
}
]
}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"alert_0","version":5,"files":["..\\assets\\alert\\Bitmap-1.png","..\\assets\\alert\\Bitmap-2.png","..\\assets\\alert\\Bitmap-4.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"alert_3","version":5,"files":["../assets/alert/Bitmap-4.png","../assets/alert/Bitmap-2.png","../assets/alert/Bitmap-1.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common_1","version":5,"files":["..\\assets\\common\\logo.png","..\\assets\\common\\joystickBg.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"loading_2","version":5,"files":["..\\assets\\loading\\progress.png","..\\assets\\loading\\bg.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"msg_0","version":5,"files":["../assets/msg/msgBg.png","../assets/msg/x.png","../assets/msg/sureBtn.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"msg_3","version":5,"files":["..\\assets\\msg\\x.png","..\\assets\\msg\\sureBtn.png","..\\assets\\msg\\msgBg.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"playScene_1","version":5,"files":["../assets/playScene/wheelBg2.png","../assets/playScene/wating.png","../assets/playScene/startBtnBg.png","../assets/playScene/sideLightL.png","../assets/playScene/sideLightD.png","../assets/playScene/ruleBtn.png","../assets/playScene/redPacket.png","../assets/playScene/outShell.png","../assets/playScene/myCreditsBg.png","../assets/playScene/multiple3.png","../assets/playScene/multiple.png","../assets/playScene/heartB.png","../assets/playScene/go.png","../assets/playScene/gift.png","../assets/playScene/finger.png","../assets/playScene/earnPanel.png","../assets/playScene/coinIcon.png","../assets/playScene/coinf8.png","../assets/playScene/coinf7.png","../assets/playScene/coinf6.png","../assets/playScene/coinf5.png","../assets/playScene/coinf4.png","../assets/playScene/coinf3.png","../assets/playScene/coinf2.png","../assets/playScene/coinf1.png","../assets/playScene/circleLight2.png","../assets/playScene/circleLight1.png","../assets/playScene/+.png","../assets/playScene/-_.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"play_4","version":5,"files":["..\\assets\\playScene\\uploadBtn.png","..\\assets\\playScene\\photoClose.png","..\\assets\\playScene\\photoBtn.png","..\\assets\\playScene\\fireBtn.png","..\\assets\\playScene\\comfirmBtn.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"preload_8","version":5,"files":["..\\assets\\common\\joystickBg.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"result_5","version":5,"files":["..\\assets\\resultScene\\shareBtn.png","..\\assets\\resultScene\\head.png","..\\assets\\resultScene\\elementbg.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"rule_4","version":5,"files":["../assets/rule/ruleBg.png","../assets/rule/X.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"rule_6","version":5,"files":["..\\assets\\rule\\ruleBg.png","..\\assets\\rule\\X.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"start_7","version":5,"files":["..\\assets\\startScene\\startBtn.png","..\\assets\\startScene\\startBtnD.png"]}
\ No newline at end of file
...@@ -29,11 +29,7 @@ ...@@ -29,11 +29,7 @@
"name": "rule" "name": "rule"
}, },
{ {
"keys": "startBtn_png,startBtnD_png", "keys": "joystickBg_png,maxScoreBg_png,prizeBtn_png,rankBtn_png,ruleBtn_png,startBg_jpg,startDisableBtn_png,startBtn_png",
"name": "start"
},
{
"keys": "joystickBg_png",
"name": "preload" "name": "preload"
} }
], ],
...@@ -168,16 +164,6 @@ ...@@ -168,16 +164,6 @@
"type": "image", "type": "image",
"name": "ruleBg_png" "name": "ruleBg_png"
}, },
{
"url": "assets/startScene/startBtn.png",
"type": "image",
"name": "startBtn_png"
},
{
"url": "assets/startScene/startBtnD.png",
"type": "image",
"name": "startBtnD_png"
},
{ {
"url": "assets/resultScene/facePackE1.json", "url": "assets/resultScene/facePackE1.json",
"type": "json", "type": "json",
...@@ -197,6 +183,41 @@ ...@@ -197,6 +183,41 @@
"url": "assets/common/joystickBg.png", "url": "assets/common/joystickBg.png",
"type": "image", "type": "image",
"name": "joystickBg_png" "name": "joystickBg_png"
},
{
"name": "maxScoreBg_png",
"type": "image",
"url": "assets/startScene/maxScoreBg.png"
},
{
"name": "prizeBtn_png",
"type": "image",
"url": "assets/startScene/prizeBtn.png"
},
{
"name": "rankBtn_png",
"type": "image",
"url": "assets/startScene/rankBtn.png"
},
{
"name": "ruleBtn_png",
"type": "image",
"url": "assets/startScene/ruleBtn.png"
},
{
"name": "startBg_jpg",
"type": "image",
"url": "assets/startScene/startBg.jpg"
},
{
"name": "startDisableBtn_png",
"type": "image",
"url": "assets/startScene/startDisableBtn.png"
},
{
"name": "startBtn_png",
"type": "image",
"url": "assets/startScene/startBtn.png"
} }
] ]
} }
\ No newline at end of file
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
<e:Image source="startSceneBg_jpg" x="0" y="-115"/> <e:Image source="startSceneBg_jpg" x="0" y="-115"/>
<e:Button id="startBtn" label="" anchorOffsetX="156" anchorOffsetY="46.67" skinName="ui.IconButtonSkin" icon="startBtn_png" horizontalCenter="0" verticalCenter="522.5"> <e:Button id="startBtn" label="" anchorOffsetX="156" anchorOffsetY="46.67" skinName="ui.IconButtonSkin" icon="startBtn_png" horizontalCenter="0" verticalCenter="522.5">
</e:Button> </e:Button>
<e:Image id="logo" source="logo_png" x="36.67" y="28.67"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -82,7 +82,7 @@ export default class PlayScene extends Scene{ ...@@ -82,7 +82,7 @@ export default class PlayScene extends Scene{
this.light = new this.BABYLON.DirectionalLight("dir01", new this.BABYLON.Vector3(0, -1, -0.3), this.scene); this.light = new this.BABYLON.DirectionalLight("dir01", new this.BABYLON.Vector3(0, -1, -0.3), this.scene);
this.light.position = new this.BABYLON.Vector3(20, 60, 30); this.light.position = new this.BABYLON.Vector3(20, 60, 30);
this.camera = new this.BABYLON.FreeCamera("Camera", new this.BABYLON.Vector3(0, 12, -22), this.scene); this.camera = new this.BABYLON.FreeCamera("Camera", new this.BABYLON.Vector3(0, 50, -50), this.scene);
// this.camera.attachControl(document.querySelectorAll("canvas")[0], false); // this.camera.attachControl(document.querySelectorAll("canvas")[0], false);
this.glowLayer = new BABYLON.GlowLayer("glow", this.scene); this.glowLayer = new BABYLON.GlowLayer("glow", this.scene);
...@@ -106,7 +106,7 @@ export default class PlayScene extends Scene{ ...@@ -106,7 +106,7 @@ export default class PlayScene extends Scene{
this.camera.parent = this.tank; this.camera.parent = this.tank;
this.camera.setTarget(newMeshes[0].position.add(new this.BABYLON.Vector3(0,5,0))) this.camera.setTarget(newMeshes[0].position.add(new this.BABYLON.Vector3(0,15,0)))
newMeshes.forEach((mesh)=>{ newMeshes.forEach((mesh)=>{
mesh.position.y = -0.8; mesh.position.y = -0.8;
this.tankArr.push(mesh); this.tankArr.push(mesh);
......
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