docs/plugins example change
@@ -19,8 +19,9 @@ Plugin.load("test")
import "external" for ExternalClass
-class Game {
- static init() {
+class Main {
+ construct new() {}
+ init() {
// and allocators for foreign classes
var obj = ExternalClass.init()
@@ -28,9 +29,11 @@ class Game {
// in the plugin native language.
obj.alert("Some words")
}
- static update() {}
- static draw(dt) {}
+ update() {}
+ draw(dt) {}
}
+
+var Game = Main.new()
```
