Skip to content

Commit 89e14d0

Browse files
authored
Update hello-world.ts
1 parent 7458fad commit 89e14d0

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

multiplayer/worlds/dreamlab/template-project/src/hello-world.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import { Behavior } from "@dreamlab/engine";
22

33
export default class HelloWorld extends Behavior {
4+
onInitialize() {
5+
console.log("hello world!");
6+
}
47

5-
onInitialize() {
6-
console.log('hello world!');
7-
}
8+
onTick(): void {
9+
if (!this.game.isServer()) return;
10+
this.entity.transform.rotation += 0.01;
11+
}
812
}
9-

0 commit comments

Comments
 (0)