mirror of https://github.com/teverse/teverse
Compare commits
2 Commits
0bfe732c3a
...
5c70b55a67
Author | SHA1 | Date |
---|---|---|
![]() |
5c70b55a67 | |
![]() |
68317c6de3 |
|
@ -6,13 +6,11 @@ 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,6 +5,7 @@ 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()
|
||||||
|
|
||||||
|
@ -64,7 +65,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:random(),
|
colour = colour:fromRGB(math.random(55, 85), math.random(40, 60), 5),
|
||||||
static = true
|
static = true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -129,3 +130,5 @@ engine.networking:bind( "mineBlock", function( client, x, y, z )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
print("server loaded")
|
Loading…
Reference in New Issue