Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 28, 2013, 4:58:58 PM (11 years ago)
Author:
zifloria
Message:

shooting and steering basics

Location:
code/branches/invaders/data/levels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/invaders/data/levels/Invaders.oxw

    r9709 r9724  
    3131    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
    3232    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=InvaderShip pawndesign=spaceshipinvader />
     33    <MovableEntity
     34      position = "-200,0,0"
     35      velocity = "975.7, 0, 0"
     36    >
     37      <events>
     38        <activity>
     39          <EventListener event="start" />
     40        </activity>
     41      </events>
     42      <attached>
     43
     44        <Model mass="1000" mesh="ast1.mesh" />
     45      </attached>
     46      <camerapositions>
     47        <CameraPosition position="0,300,-100" direction="0, -1, 0" drag=false mouselook=true />
     48      </camerapositions>
     49    </MovableEntity>
     50
     51    <DistanceTrigger name="start" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=0 />
     52
    3353
    3454    <InvaderCenterPoint name=invadercenter />
     55   
     56    <?lua
     57      for i = 1, 250, 1
     58      do
     59      j = math.random()
     60    ?>
     61
     62    <MovableEntity
     63      position = "<?lua print(math.random()* 15000 - 1000) ?>,-1000,<?lua print(math.random() * 12000 - 4000) ?>"
     64      collisionType = dynamic
     65      linearDamping = 0.8
     66      angularDamping = 0
     67      scale = "<?lua print(j * 150)?>"
     68      collisiondamage = 1
     69      enablecollisiondamage = true
     70    >
     71      <attached>
     72        <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
     73      </attached>
     74      <collisionShapes>
     75        <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
     76      </collisionShapes>
     77    </MovableEntity>
     78
     79    <?lua
     80      end
     81    ?>
    3582   
    3683  </Scene>
  • code/branches/invaders/data/levels/templates/spaceshipInvader.oxt

    r9709 r9724  
    6868      <CameraPosition position="0,20, 90" drag=true mouselook=true />
    6969      <CameraPosition position="0,30,120" drag=true mouselook=true /> -->
    70       <CameraPosition position="0,300,-100" direction="0, -1, 0" drag=true mouselook=true />
     70      <CameraPosition position="0,300,-100" direction="0, -1, 0" drag=false mouselook=true />
    7171    </camerapositions>
    7272  </InvaderShip>
Note: See TracChangeset for help on using the changeset viewer.