Skip to content

Commit be6010a

Browse files
committed
update
1 parent 5ee39e7 commit be6010a

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

bin/js/GameMain.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
define(["require", "exports", "./Foo"], function (require, exports, Foo_1) {
1+
define(["require", "exports", "./Greeting"], function (require, exports, Greeting_1) {
22
"use strict";
33
Object.defineProperty(exports, "__esModule", { value: true });
44
// 程序入口
55
var GameMain = (function () {
66
function GameMain() {
77
Laya.init(600, 400);
8-
new Foo_1.Foo();
8+
new Greeting_1.Greeting();
99
}
1010
return GameMain;
1111
}());
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
define(["require", "exports", "./getColor", "LayaAdapter"], function (require, exports, getColor_1, LayaAdapter_1) {
22
"use strict";
33
Object.defineProperty(exports, "__esModule", { value: true });
4-
var Foo = (function () {
5-
function Foo() {
4+
var Greeting = (function () {
5+
function Greeting() {
66
var hello = new LayaAdapter_1.Text();
77
hello.text = 'Hello LayaAir';
88
hello.fontSize = 20;
99
hello.color = getColor_1.getColor();
1010
Laya.stage.addChild(hello);
1111
}
12-
return Foo;
12+
return Greeting;
1313
}());
14-
exports.Foo = Foo;
14+
exports.Greeting = Greeting;
1515
});

src/GameMain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Foo } from './Foo';
1+
import { Greeting } from './Greeting';
22
// 程序入口
33
class GameMain {
44
constructor() {
55
Laya.init(600, 400);
6-
new Foo();
6+
new Greeting();
77
}
88
}
99

src/Foo.ts renamed to src/Greeting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getColor } from './getColor';
22
import { Text } from 'LayaAdapter';
3-
export class Foo {
3+
export class Greeting {
44
constructor() {
55
const hello = new Text();
66
hello.text = 'Hello LayaAir';

0 commit comments

Comments
 (0)