Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10833


Ignore:
Timestamp:
Nov 23, 2015, 1:15:36 PM (9 years ago)
Author:
luhug
Message:

minor changes to luaTest.oxw

File:
1 edited

Legend:

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

    r10811 r10833  
    2626    for currentX = 1, x, 1 do
    2727      for currentY = 1, y, 1 do
    28         houseNr = math.floor(math.random()*4 + 1)
     28        houseNr = math.floor(math.random()*4)
    2929        orientation = math.floor(math.random()*4)
    30         if houseNr == 1 then
    31           houseString = "PrimeTower"
    32           houseHeight = 0
    33         elseif houseNr == 2 then
    34           houseString = "Glasstower1"
    35           houseHeight = 0
    36         elseif houseNr == 3 then
    37           houseString = "ETH"
    38           houseHeight = 0
    39         elseif houseNr == 4 then
    40           houseString = "Hausc1"
    41           houseHeight = 0
    42         elseif houseNr == 5 then
    43           houseString = "haus5"
    44           houseHeight = 0
    45         elseif houseNr == 6 then
    46           houseString = "haus1"
    47           houseHeight = 0
    48         end
     30        houses = {"PrimeTower","Glasstower1","ETH","Hausc1","haus5","haus1"}
     31              houseString = houses[houseNr]
    4932       
    5033        returnString = returnString .. "<StaticEntity position=\"" .. (currentX - (cellSize/2)) .. "," .. (currentX - (cellSize/2)) .. "," .. (houseHeight/2) .. "\" direction=\"0,0,1\" pitch=\"0\" roll=\"0\" yaw=\"" .. (orientation*90) .. "\"> <attached> <Model position=\"0,0,0\" mesh=\"" .. houseString .. ".mesh\" scale3D=\"100\"/></attached></StaticEntity>\n\n"
Note: See TracChangeset for help on using the changeset viewer.