Changeset 4575 for data/trunk/scripts/cutscene
- Timestamp:
- Jan 28, 2007, 2:07:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/scripts/cutscene/cutscene.lua
r4574 r4575 37 37 thisscript:addObject("CameraMan", "cameraManager") 38 38 thisscript:addObject("NPC", "shutleOne") 39 thisscript:addObject("NPC", "fighterOne")40 thisscript:addObject("NPC", "fighterTwo")41 thisscript:addObject("NPC", "bomberOne")42 thisscript:addObject("NPC", "bomberTwo")43 39 thisscript:addObjectAsName("GameWorld", "Cut Scene", "gameWorld") 44 40 … … 50 46 bInit = 0 51 47 bInit2 = 0 52 fighterSpeed = 1053 bomberSpeed = 1054 55 -- Since the spaceships go along the x direction we only neet to get these once:56 fighterOneY = fighterOne:getAbsCoorY()57 fighterOneZ = fighterOne:getAbsCoorZ()58 59 fighterTwoY = fighterTwo:getAbsCoorY()60 fighterTwoZ = fighterTwo:getAbsCoorZ()61 62 bomberOneY = bomberOne:getAbsCoorY()63 bomberOneZ = bomberOne:getAbsCoorZ()64 65 bomberTwoY = bomberTwo:getAbsCoorY()66 bomberTwoZ = bomberTwo:getAbsCoorZ()67 48 68 49 … … 77 58 coorY = shutleOne:getAbsCoorY() 78 59 coorZ = shutleOne:getAbsCoorZ() 79 shutleOne:setAbsCoor(coorX-6 .5*timestep,coorY,coorZ)60 shutleOne:setAbsCoor(coorX-6*timestep,coorY,coorZ) 80 61 end 81 62 end 82 63 83 64 --} 84 85 86 -- chaseScene87 chaseScene = { }88 --{89 90 function chaseScene:tick(timestep)91 92 93 fighterOneX = fighterOne:getAbsCoorX()94 fighterTwoX = fighterTwo:getAbsCoorX()95 bomberOneX = bomberOne:getAbsCoorX()96 bomberTwoX = bomberTwo:getAbsCoorX()97 98 fighterOne:setAbsCoor(fighterOneX + fighterSpeed*timestep,fighterOneY,fighterOneZ)99 fighterTwo:setAbsCoor(fighterTwoX + fighterSpeed*timestep,fighterTwoY,fighterTwoZ)100 bomberOne:setAbsCoor(bomberOneX + bomberSpeed*timestep,bomberOneY,bomberOneZ)101 bomberTwo:setAbsCoor(bomberTwoX + bomberSpeed*timestep,bomberTwoY,bomberTwoZ)102 103 104 end105 106 --}107 108 65 109 66 … … 134 91 135 92 shutle:tick(timestep) 136 chaseScene:tick(timestep)137 93 138 94 if bInit == 0 then … … 149 105 if not cameraSwitched then 150 106 cameraManager:setCam("CameraOne") 151 --cameraManager:atachCurrCameraToWorldEntity("NPC", " fighterOne")107 --cameraManager:atachCurrCameraToWorldEntity("NPC", "bomberOne") 152 108 cameraManager:changeCurrTarget("Building", "zhara") 153 109 cameraSwitched = true
Note: See TracChangeset
for help on using the changeset viewer.