Compare commits

..

No commits in common. "698cc12615a9ed85de1e6bf44210b37e8b3cea30" and "a29d234bd6b8e4d1e02fda8ce9b8d533aacc8508" have entirely different histories.

3 changed files with 8 additions and 17 deletions

View File

@ -40,6 +40,7 @@ local function setupCharacterLocally(client, char)
end
local function characterSpawnedHandler(newClientId)
repeat wait() until engine.networking.me -- we shouldnt need to do this
print("spawning", newClientId, engine.networking.me.id)
if engine.networking.me.id == newClientId then
print("waiting")
@ -62,6 +63,10 @@ local function characterSpawnedHandler(newClientId)
end
end
for _,v in pairs(engine.networking.clients.children) do
characterSpawnedHandler(v.id)
end
engine.networking.clients:clientConnected(function (client)
characterSpawnedHandler(client.id)
end)
@ -169,7 +174,4 @@ engine.input:keyReleased(function (inputObj)
end
end)
repeat print(engine.networking.me) wait() until engine.networking.me
characterSpawnedHandler(engine.networking.me.id)
return controller

View File

@ -9,13 +9,4 @@ print("Loaded Client")
require("tevgit:core/client/debug.lua")
require("tevgit:core/client/chat.lua")
require("tevgit:core/client/playerList.lua")
require("tevgit:core/client/characterController.lua")
workspace.camera.position = vector3(40, 15, 0)
workspace.camera:lookAt(vector3(0, 0, 0))
engine.construct("block", workspace, {
position = vector3(0, 10, 0),
static = false,
colour = colour(0.3, 0.3, 0.3)
})
require("tevgit:core/client/characterController.lua")

View File

@ -40,13 +40,11 @@ return {
name = "blueSphere",
colour = colour(0, 0, 1),
size = vector3(1, 1, 1),
position = vector3(0.5, 5, 0),
position = vector3(0.5, 1, 0),
mesh = "primitive:sphere",
roughness = 0.5,
metalness = 0.8,
static = false
metalness = 0.8
})
engine.physics:resume()
end,
setupEnvironment = function ()