Skip to content

Commit

Permalink
Simply improvement to how skyboxes tiles in the microbe stage
Browse files Browse the repository at this point in the history
  • Loading branch information
jjonj committed Jul 18, 2014
1 parent caf4ee4 commit fd8ab94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/microbe_stage/camera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ class 'MicrobeCameraSystem' (System)

function MicrobeCameraSystem:__init()
System.__init(self)
-- The offset from player microbe to camera
self.camera = nil
self.cameraScenenode = nil
end

function MicrobeCameraSystem:activate()
local camera = Entity(CAMERA_NAME)
self.camera = camera:getComponent(OgreCameraComponent.TYPE_ID)
-- The offset from player microbe to camera
self.camera.properties.offset = Vector3(0, 0, 30)
self.camera.properties:touch()
self.cameraScenenode = camera:getComponent(OgreSceneNodeComponent.TYPE_ID)
Expand Down
1 change: 1 addition & 0 deletions scripts/microbe_stage/setup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local function setupBackground()
local skyplane = SkyPlaneComponent()
skyplane.properties.plane.normal = Vector3(0, 0, 2000)
skyplane.properties.materialName = "background/blue_01"
skyplane.properties.tiling = 7
skyplane.properties:touch()

entity:addComponent(skyplane)
Expand Down

0 comments on commit fd8ab94

Please sign in to comment.