Playertest: scene/script system refactor and Wii ABI fix
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
1 parent
7c3386cf3e
commit
998601f722
104 files changed
+2855
-3923
No files matched your search
@@ -0,0 +1,30 @@
|
||||
local Cube = include('entities/cube.lua')
|
||||
|
||||
local SceneCube = {}
|
||||
SceneCube.__index = SceneCube
|
||||
|
||||
local cam
|
||||
local cube
|
||||
|
||||
function SceneCube:init()
|
||||
cam = Entity.new()
|
||||
cam:add(Entity.POSITION)
|
||||
cam.position.x = 3
|
||||
cam.position.y = 3
|
||||
cam.position.z = 3
|
||||
cam.position:lookAt(0, 0, 0)
|
||||
cam:add(Entity.CAMERA)
|
||||
|
||||
cube = Cube.new()
|
||||
end
|
||||
|
||||
function SceneCube:update()
|
||||
cube:update()
|
||||
end
|
||||
|
||||
function SceneCube:dispose()
|
||||
cam:dispose()
|
||||
cube:dispose()
|
||||
end
|
||||
|
||||
return SceneCube
|
||||
Reference in new issue
Block a user