diff options
Diffstat (limited to 'client/game.lua')
-rw-r--r-- | client/game.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/game.lua b/client/game.lua index 31e02b8..c5cdffb 100644 --- a/client/game.lua +++ b/client/game.lua @@ -343,6 +343,7 @@ end local connected = false local sent_hshake = false +local username = nil function SCENE.update(dt) if connected then return update(dt) @@ -367,11 +368,14 @@ function SCENE.draw() end end -function SCENE.load(username) +function SCENE.load(_username) love.keyboard.setKeyRepeat(true) -- require"profile".start(10,io.open("./trace","w")) host = enet.host_create() peer = host:connect(SERVER_HOSTNAME..":8473",2) + username = _username + print("got username",_username) + end function SCENE.quit() |