fix capitalisation error

This commit is contained in:
Ronja 2021-02-08 18:56:19 +01:00
parent 15607e5ef6
commit 7cc4875a10
4 changed files with 2 additions and 7 deletions

View file

@ -1,5 +1,5 @@
import "luxe: world" for Entity, Transform, Sprite import "luxe: world" for Entity, Transform, Sprite
import "Globals" for Globals import "globals" for Globals
import "luxe: containers" for Lists import "luxe: containers" for Lists
import "math/observable" for Observable import "math/observable" for Observable
import "math/vector" for Vector import "math/vector" for Vector
@ -10,7 +10,6 @@ class Human{
_active = value _active = value
if(!__activeHumans) __activeHumans = Observable.new([]) if(!__activeHumans) __activeHumans = Observable.new([])
if(value){ if(value){
System.print(Globals)
show() show()
_changeToken = __activeHumans.on_change{|x| update()} _changeToken = __activeHumans.on_change{|x| update()}
__activeHumans.value.add(this) __activeHumans.value.add(this)
@ -40,7 +39,6 @@ class Human{
} }
show(){ show(){
System.print(Globals)
_entity = Entity.create(Globals["Game"].app.world, name) _entity = Entity.create(Globals["Game"].app.world, name)
Transform.create(_entity) Transform.create(_entity)
Sprite.create(_entity, _material, 10, 12) Sprite.create(_entity, _material, 10, 12)

View file

@ -155,4 +155,4 @@ class HumanSystem is ModifierSystem {
var Modifier = HumanSystem //required var Modifier = HumanSystem //required
import "blocks/ui/ui" for Ui //import at the end in case of cyclic dependency import "blocks/ui/ui" for Ui //import at the end in case of cyclic dependency

View file

@ -98,8 +98,6 @@ class Game is Ready {
var names = Assets.lx("assets/names.lx") var names = Assets.lx("assets/names.lx")
var name = names[RandomInst.int(0, names.count)] var name = names[RandomInst.int(0, names.count)]
human.name = name human.name = name
Globals["wee"]=false
System.print(Globals)
human.active = true human.active = true
} }

View file

@ -1,4 +1,3 @@
modules = { modules = {
luxe = "2021.0.0" luxe = "2021.0.0"
luxe-agent = "2020.3.4"
} //modules } //modules