From fd8ab943dd4ced59a8e7d1e4a7b725468b7c2557 Mon Sep 17 00:00:00 2001 From: Jacob Jensen Date: Fri, 18 Jul 2014 19:31:57 +0200 Subject: [PATCH] Simply improvement to how skyboxes tiles in the microbe stage --- scripts/microbe_stage/camera.lua | 2 +- scripts/microbe_stage/setup.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/microbe_stage/camera.lua b/scripts/microbe_stage/camera.lua index 6a9e253968..a322ef2483 100644 --- a/scripts/microbe_stage/camera.lua +++ b/scripts/microbe_stage/camera.lua @@ -3,7 +3,6 @@ class 'MicrobeCameraSystem' (System) function MicrobeCameraSystem:__init() System.__init(self) - -- The offset from player microbe to camera self.camera = nil self.cameraScenenode = nil end @@ -11,6 +10,7 @@ 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) diff --git a/scripts/microbe_stage/setup.lua b/scripts/microbe_stage/setup.lua index 9e9bfb2f8e..e22d7a3e8b 100644 --- a/scripts/microbe_stage/setup.lua +++ b/scripts/microbe_stage/setup.lua @@ -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)