diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-12-26 00:57:52 -0500 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-12-26 00:57:52 -0500 |
| commit | 35b7c646fd7f80b64c1ef49b6d81f9df9bc1b940 (patch) | |
| tree | d345f620b51ae1ad1d7923e572a6b07ed8731ee5 /bin/client | |
| parent | cc12503339004bae2f945e7f7339fc845b2a194f (diff) | |
| download | brokengine-35b7c646fd7f80b64c1ef49b6d81f9df9bc1b940.tar.gz brokengine-35b7c646fd7f80b64c1ef49b6d81f9df9bc1b940.tar.bz2 brokengine-35b7c646fd7f80b64c1ef49b6d81f9df9bc1b940.zip | |
Major update
Diffstat (limited to 'bin/client')
| -rw-r--r-- | bin/client/data/deviceinit.lua | 7 | ||||
| -rw-r--r-- | bin/client/data/init.lua | 54 |
2 files changed, 57 insertions, 4 deletions
diff --git a/bin/client/data/deviceinit.lua b/bin/client/data/deviceinit.lua index ebc9cc3..dd31a34 100644 --- a/bin/client/data/deviceinit.lua +++ b/bin/client/data/deviceinit.lua @@ -1,4 +1,3 @@ -print("Hello, world!") return { --[[ Anti-Alias @@ -36,7 +35,7 @@ return { Should the window use doublebuffering? Default:false ]] - ["Double Buffer"] = false, + ["Double Buffer"] = true, --[[ Multithreaded Should the display use multiple threads? @@ -68,7 +67,7 @@ return { Should the stencil buffer be enabled? Default:false ]] - ["Stencil Buffer"] = false, + ["Stencil Buffer"] = true, --[[ Stereo Buffer Should the window use stereo buffers? @@ -81,7 +80,7 @@ return { Enable this if you are getting graphical artifacts Default:false ]] - ["VSync"] = false, + ["VSync"] = true, --[[ Window Width/height Adjusts the size of the window. diff --git a/bin/client/data/init.lua b/bin/client/data/init.lua new file mode 100644 index 0000000..0631f01 --- /dev/null +++ b/bin/client/data/init.lua @@ -0,0 +1,54 @@ + +print("Phys was:",phys) +for k,v in pairs(phys) do + print(k,":",v) +end +local cam = scene.newcamera() +--local cam_m = getmetatable(cam) +--print("cam's meta table is ",cam_m) + +--for k,v in pairs(cam_m["__index"]) do +-- print(k,":",v) +--end + +--print("attempting to create the first physbox") +local cambox = phys.newcphysbox({1,1,1},{0,0,0},1) +--print("function is",phys.newphysbox); +--print("attempting to create the second physbox") +local floor = phys.newcphysbox({10,1,10},{0,-10,0},0) +local floor_light = scene.newlight(1000,{0,-5,0}) +--print("created cam box") +print("cambox_m is:") +local cambox_m = getmetatable(cambox); +for k,v in pairs(cambox_m["__index"]) do + print(k,":",v) +end +print("cambox is:") +for k,v in pairs(cambox) do + print(k,":",v) +end +floor:setcpos({0,5,0}) + +print("floor is:") +local floor_m = getmetatable(floor); +for k,v in pairs(floor_m["__index"]) do + print(k,":",v) +end +--print("gui is:") +--for k,v in pairs(gui) do + --print(k,":",v) +--end +--local checkbox = gui.newcheckbox({0,0},{100,100},0,"test"); +--floor_light:getpos() +--GAME.tick = function() + --print("In game tick") + --cam:setpos(cambox:getpos()) +--end +GAME.onKeyDown = function(key,down,ctrl,shft) + if(down and key == 65) then -- a + print("Setting box's position") + cambox:setcpos({0,5,0}) + print("After setpos was called") + end + print("Got key input:",key,down,ctrl,shft) +end |
