Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4904 for data/trunk/scripts


Ignore:
Timestamp:
Jun 19, 2007, 9:59:00 PM (17 years ago)
Author:
snellen
Message:

added some enemies in vs-level

Location:
data/trunk/scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/scripts/moonstation/intro.lua

    r4901 r4904  
    77thisscript:registerClass("Explosion")
    88explosion = Explosion()
     9explosion:setExplosionSound("sounds/explosions/explosion_6_BIG.wav")
    910
    1011-- Initialisation
     
    115116        explosion:explode(boomSize,boomSize,boomSize)
    116117        boomSize = boomSize + 10
    117         if boomSize == 650 then
     118        if boomSize > 650 then
     119                --explosion:playSound()
    118120                return true
    119121        end
  • data/trunk/scripts/spacestation/spaceship_tower.lua

    r4765 r4904  
    2020triggerTwo:setRadius(70)
    2121--triggerTwo:setDebugDraw(true)
     22
     23triggerAc = ActionTrigger()
     24triggerAc:setScript("spaceship_tower.lua")
     25triggerAc:setFunction("action")
     26triggerAc:setTarget("Player")
     27triggerAc:setAbsCoor(506.862518, 35, -162.215515)
     28triggerAc:setRadius(20)
     29triggerAc:setDebugDraw(true)
     30
    2231
    2332-- Get objects from orxonox
     
    214223end
    215224
     225function action(timestep)
     226 print("Action trigger triggered ! \n")
     227 return false
     228end
    216229
    217230-- THE tick function
  • data/trunk/scripts/vertical_scroller/vs1.lua

    r4903 r4904  
    2929--initialisation
    3030explosion = Explosion()
     31explosion:setExplosionSound("sounds/explosions/explosion_6_BIG.wav")
    3132cameraManager:changeTarget("cameraOne","SpaceShip", "Player")
    3233
     
    4647        explosion:explode(boomSize,boomSize,boomSize)
    4748        boomSize = boomSize + 4
    48         if boomSize > 150 then
     49        if boomSize > 75 then
    4950                  triggerEndLevel:start()
    5051                  cameraManager:toggleFade()
     52                  gameWorld:showText("We have been hit...")
     53                  gameWorld:showText("Initialising emergency sequence!")
    5154                return true
    5255        end
Note: See TracChangeset for help on using the changeset viewer.