We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7458fad commit 89e14d0Copy full SHA for 89e14d0
1 file changed
multiplayer/worlds/dreamlab/template-project/src/hello-world.ts
@@ -1,9 +1,12 @@
1
import { Behavior } from "@dreamlab/engine";
2
3
export default class HelloWorld extends Behavior {
4
+ onInitialize() {
5
+ console.log("hello world!");
6
+ }
7
- onInitialize() {
- console.log('hello world!');
- }
8
+ onTick(): void {
9
+ if (!this.game.isServer()) return;
10
+ this.entity.transform.rotation += 0.01;
11
12
}
-
0 commit comments