Commit a7b9b67b authored by wildfirecode's avatar wildfirecode

update

parent 4c168a4c
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -25,31 +25,15 @@ ...@@ -25,31 +25,15 @@
<body> <body>
<div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main" data-orientation="auto" <div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main" data-orientation="auto"
data-scale-mode="showAll" data-frame-rate="30" data-content-width="750" data-content-height="1624" data-scale-mode="showAll" data-frame-rate="30" data-content-width="400" data-content-height="300"
data-multi-fingered="2" data-show-fps="false" data-show-log="false" data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9"> data-multi-fingered="2" data-show-fps="false" data-show-log="false" data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
</div> </div>
<script src="//http://yun.duiba.com.cn/db_games/egret_5.2.9/egret.js"></script> <script src="https://yun.duiba.com.cn/db_games/egret_5.2.9/egret.js"></script>
<script src="//http://yun.duiba.com.cn/db_games/egret_5.2.9/egret.web.js"></script> <script src="https://yun.duiba.com.cn/db_games/egret_5.2.9/egret.web.js"></script>
<script src="//http://yun.duiba.com.cn/db_games/egret_5.2.9/eui.js"></script> <script src="https://yun.duiba.com.cn/db_games/egret_5.2.9/assetsmanager.js"></script>
<script src="//http://yun.duiba.com.cn/db_games/egret_5.2.9/assetsmanager.js"></script> <script src="https://yun.duiba.com.cn/db_games/egret_5.2.9/promise.js"></script>
<script src="//http://yun.duiba.com.cn/db_games/egret_5.2.9/tween.js"></script> <script src="main.js"></script>
<script src="//http://yun.duiba.com.cn/db_games/egret_5.2.9/promise.js"></script>
<script src="output.js"></script>
<script>
egret.runEgret({
renderMode: "webgl", audioType: 0, calculateCanvasScaleFactor: function (context) {
var backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;
return (window.devicePixelRatio || 1) / backingStore;
}
});
</script>
</body> </body>
</html> </html>
\ No newline at end of file
class Main extends egret.DisplayObjectContainer {
constructor() {
super();
this.addEventListener(egret.Event.ADDED_TO_STAGE, this.onAddToStage, this);
}
onAddToStage(event) {
let textfield = new egret.TextField();
this.addChild(textfield);
textfield.textColor = 0xff0000;
textfield.text = 'hello world';
}
}
window['Main']=Main;
egret.runEgret({
renderMode: "webgl", audioType: 0, calculateCanvasScaleFactor: function (context) {
var backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;
return (window.devicePixelRatio || 1) / backingStore;
}
});
\ No newline at end of file
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