mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-04 11:35:06 +03:00
- Added Input wren module - Added Math wren module - Added Entity wren module - Changed camera API
27 lines
480 B
Plaintext
27 lines
480 B
Plaintext
import "Scripts/Engine" for Engine
|
|
import "Scripts/Input" for Input
|
|
import "Scripts/Scene" for Scene, Entity
|
|
|
|
class Test {
|
|
init() {
|
|
System.print("hello init")
|
|
}
|
|
|
|
update(t) {
|
|
System.print("hello update %(t)")
|
|
}
|
|
|
|
exit() {
|
|
System.print("hello exit ")
|
|
}
|
|
|
|
static hello() {
|
|
var entity = Scene.GetEntity("Light")
|
|
var light = entity.GetComponent("Light")
|
|
light.SetIntensity(1.0)
|
|
|
|
if(Input.IsMouseButtonPressed(2) == true) {
|
|
Engine.Log("RIGHT CLICK!!!!!!")
|
|
}
|
|
}
|
|
} |