Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2015, 5:04:44 PM (9 years ago)
Author:
luhug
Message:

Put together the elements of our project in a new Level, planetLevelHS15.oxw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/planetLevelHS15/data/levels/luaTest.oxw

    r10905 r10951  
    2323<?lua
    2424function randomHouses(x,y,cellSize)
    25     returnString = "<SpawnPoint team=0 position=\"" .. x*cellSize/2 .. "," .. y*cellSize/2 .. ",500\" lookat=\"0,0,0\" spawnclass=SpaceShip pawndesign=spaceshipescort direction=\"0,1,0\" />"
     25    returnString = ""
    2626    for currentX = 1, x, 1 do
    2727      for currentY = 1, y, 1 do
     
    5656
    5757
    58     <?lua print(randomHouses(5,5,600)) ?>
     58  <?lua print(randomHouses(5,5,600)) ?>
    5959  <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=0 friction=0.01 yaw=90 roll=90 >
    6060    <attached>
     
    6363        <Light type="point" position="0,0,0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
    6464    </attached>
    65 </StaticEntity>  </Scene>
     65</StaticEntity>
     66</Scene>
    6667</Level>
    6768
Note: See TracChangeset for help on using the changeset viewer.