998601f722
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
469 B
Lua
31 lines
469 B
Lua
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
|