mirror of https://github.com/teverse/teverse
Compare commits
No commits in common. "5c70b55a67590c9f617b4cb766057bb5aeb7eb12" and "0bfe732c3af036931e9a6a0235c7d5489135f971" have entirely different histories.
5c70b55a67
...
0bfe732c3a
|
@ -6,11 +6,13 @@ print("Hello Client!")
|
||||||
require("tevgit:core/client/debug.lua")
|
require("tevgit:core/client/debug.lua")
|
||||||
require("tevgit:core/client/chat.lua")
|
require("tevgit:core/client/chat.lua")
|
||||||
require("tevgit:core/client/playerList.lua")
|
require("tevgit:core/client/playerList.lua")
|
||||||
require("tevgit:core/client/characterController.lua")
|
|
||||||
|
|
||||||
workspace.camera.position = vector3(0, 15, -10)
|
workspace.camera.position = vector3(0, 15, -10)
|
||||||
workspace.camera:lookAt(vector3(0, 0, 0))
|
workspace.camera:lookAt(vector3(0, 0, 0))
|
||||||
|
|
||||||
|
-- Stealing camera from workshop
|
||||||
|
require("tevgit:workshop/controllers/environment/camera.lua")
|
||||||
|
|
||||||
local function registerBlock(c)
|
local function registerBlock(c)
|
||||||
if c.className == "block" then
|
if c.className == "block" then
|
||||||
c:once("mouseLeftPressed", function ()
|
c:once("mouseLeftPressed", function ()
|
||||||
|
|
|
@ -5,7 +5,6 @@ print("Hello Server!")
|
||||||
|
|
||||||
require("tevgit:core/server/debug.lua")
|
require("tevgit:core/server/debug.lua")
|
||||||
require("tevgit:core/server/chat.lua")
|
require("tevgit:core/server/chat.lua")
|
||||||
local char = require("tevgit:core/server/characterController.lua")
|
|
||||||
|
|
||||||
workspace:destroyAllChildren()
|
workspace:destroyAllChildren()
|
||||||
|
|
||||||
|
@ -65,7 +64,7 @@ local function fillSpace(x, y, z)
|
||||||
name = "minable",
|
name = "minable",
|
||||||
position = vector3(x * 4, y * 4, z * 4),
|
position = vector3(x * 4, y * 4, z * 4),
|
||||||
size = vector3(4, 4, 4),
|
size = vector3(4, 4, 4),
|
||||||
colour = colour:fromRGB(math.random(55, 85), math.random(40, 60), 5),
|
colour = colour:random(),
|
||||||
static = true
|
static = true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -130,5 +129,3 @@ engine.networking:bind( "mineBlock", function( client, x, y, z )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print("server loaded")
|
|
Loading…
Reference in New Issue