FAQ  •  Register  •  Login

Rendezvous (experimental levelgen map)

<<

Little_Apple

User avatar

Posts: 839

Joined: Sat Jun 11, 2011 12:31 pm

Location: Zanzibar Land

Post Wed Feb 27, 2013 2:30 pm

Rendezvous (experimental levelgen map)

Image
Level code:
  Code:
CoreGameType 8
LevelName Rendezvous
LevelDescription "(With you)"
LevelCredits Little_Apple
GridSize 255
Team Yellow 1 1 0
Team LightBlue 0.45 0.875 1
Specials
Script e
MinPlayers
MaxPlayers
PolyWall -0.141421 -1.272792 -0.848528 -0.565685 -0.424264 -0.565685 -0.070711 -0.212132
BarrierMaker 50 11.090062 1.855069 11.096992 2.267321 11.297118 2.62781 11.542064 2.76923 11.645594 3.155601 11.530056 3.497142 11.292039 3.767972 8.877226 4.415021 7.298931 4.320286 6.686556 3.966732 6.363961 3.535534 6.427735 3.000807 6.781289 2.388434 8.10077 1.517245 8.390549 1.4396
BarrierMaker 50 -2.19203 -0.353554 -2.12132 -0.707107 -0.707107 -2.12132 -0 -2.262742 0.707107 -2.12132 2.12132 -0.707107 2.19203 -0.353553
BarrierMaker 5 0.212132 3.181981 0.282843 2.969849 0.212132 2.757717 0 2.687006 -0.212132 2.757716 -0.282843 2.969849 -0.212132 3.181981 -0 3.252691 0.212132 3.181981
PolyWall -11.762988 -4.366476 -11.49216 -4.128464 -11.292038 -3.767971 -9.843149 -4.156199 -10.648708 -4.45799 -11.280029 -4.495888
BarrierMaker 50 -9.417029 -3.338631 -9.146197 -3.100618 -8.971962 -2.836722 -8.990907 -2.521063 -9.106447 -2.179522
BarrierMaker 50 9.417028 3.338633 9.146198 3.10062 8.971962 2.836722 8.990907 2.521063 9.106447 2.179522
PolyWall 9.887643 3.635102 10.040916 2.969847 9.850118 3.015533 9.758073 3.111269 9.545938 3.18198 9.192388 3.11127 9.481745 3.264989
PolyWall -8.23018 -2.000205 -8.107704 -1.929497 -7.888637 -1.884665 -7.721332 -2.033024 -7.650624 -2.155498 -7.605794 -2.374562 -7.75415 -2.541868 -7.876625 -2.612579 -8.121573 -2.754 -7.831796 -2.831647 -7.631679 -2.471158 -7.212491 -2.065839 -8.390549 -1.439599 -8.345718 -1.658664 -8.475127 -2.141629
PolyWall -8.697413 -4.31335 -8.909545 -4.384061 -9 -4.3 -8.895672 -3.959796 -8.48528 -4.101221
BarrierMaker 25 -7.807774 -4.28747 -7.949194 -4.042521 -7.994023 -3.823455 -8.012967 -3.507793 -7.987086 -3.411201
BarrierMaker 50 -0.141421 -1.272792 -0.070711 -0.353553 0.070711 0.353553 0.141421 1.272792
PolyWall -9.140621 -4.101221 -9.263099 -4.171928 -9.482165 -4.216759 -9.649467 -4.068402 -9.720179 -3.945928 -9.765007 -3.726864 -9.616647 -3.559557 -9.494174 -3.488847 -9.352859 -3.411642 -9.263099 -3.3234 -9.481747 -3.26499 -9.899495 -3.676954 -10.040914 -4.101217 -9.025084 -4.442762 -8.895672 -3.959796
BarrierMaker 50 -8.9 -1.3 -9.066693 -1.258426 -10.515581 -0.8702 -10.857124 -0.985737 -11.127954 -1.223749 -11.231483 -1.610121 -11.090059 -1.855068 -11.297117 -2.62781
BarrierMaker 50 2.19203 0.353554 2.12132 0.707107 0.707107 2.12132 0 2.262742 -0.707107 2.12132 -2.12132 0.707107 -2.19203 0.353553
BarrierMaker 50 0.494975 -0.919239 0.141421 -1.272792 -0.141421 -1.272792 -1.272792 -0.141421 -1.272792 0.141421 -0.919239 0.494975
BarrierMaker 50 0.919239 -0.494975 1.272792 -0.141421 1.272792 0.141421 0.141421 1.272792 -0.141421 1.272792 -0.494975 0.919239
BarrierMaker 50 -11.090059 -1.855068 -11.096992 -2.267321 -11.297117 -2.62781 -11.542062 -2.769231 -11.645595 -3.155602 -11.530056 -3.497142 -11.292038 -3.767971 -8.877226 -4.415021 -7.29893 -4.320286 -6.686554 -3.966732 -6.363961 -3.535534 -6.427737 -3.000806 -6.781289 -2.388434 -8.10077 -1.517245 -8.390549 -1.439599
BarrierMaker 15 0 -2.687006 -0 -2.262742
BarrierMaker 25 7.831796 2.831647 7.805912 2.735053 7.631678 2.471159 7.48332 2.303855 7.238371 2.162433
BarrierMaker 75 -0 2.828427 0 3.11127
BarrierMaker 50 9.327837 3.265488 9.651045 3.425295 9.887643 3.635102 9.899494 3.959797
BarrierMaker 50 8.9 1.3 10.515581 0.8702 10.857121 0.985739 11.127952 1.223751 11.231483 1.610121 11.090062 1.855069 11.297118 2.62781
BarrierMaker 50 -9.327837 -3.265488 -9.651045 -3.425295 -9.887643 -3.635102 -9.899494 -3.959797
PolyWall 8.343857 4.384062 8.768122 4.384062 8.895671 3.959796 8.399999 4 8.299999 4.1 8.299999 4.2 8.099999 4.2 8.099999 4.1 7.999999 4 7.949193 4.042521 7.807773 4.28747
BarrierMaker 50 9.737766 2.217417 9.711884 2.120823 9.485882 1.663744 9.066693 1.258426
BarrierMaker 75 0 -2.828427 0 -3.11127
PolyWall 0.141421 1.272792 0.848528 0.565685 0.424264 0.565685 0.070711 0.212132
PolyWall 11.762988 4.366476 11.49216 4.128464 11.292039 3.767972 9.843151 4.1562 10.648711 4.457991 11.280029 4.495888
BarrierMaker 25 7.807774 4.28747 7.949194 4.042521 7.994023 3.823455 8.012968 3.507794 7.987086 3.411201
PolyWall 8.697413 4.31335 8.877226 4.415021 9 4.3 8.895672 3.959796 8.48528 4.101221
BarrierMaker 5 -0.212132 -3.181981 -0.282843 -2.969849 -0.212132 -2.757717 0 -2.687006 0.212132 -2.757716 0.282843 -2.969849 0.212132 -3.181981 0 -3.252691 -0.212132 -3.181981
PolyWall -8.343858 -4.384062 -8.768123 -4.384062 -8.895671 -3.959796 -8.4 -4 -8.3 -4.1 -8.3 -4.2 -8.1 -4.2 -8.1 -4.1 -8 -4 -7.949194 -4.042521 -7.807774 -4.28747
BarrierMaker 50 -9.737766 -2.217416 -9.711885 -2.120823 -9.485882 -1.663744 -9.066693 -1.258426
PolyWall -9.887643 -3.635102 -10.040916 -2.969848 -9.85012 -3.015533 -9.758073 -3.11127 -9.545941 -3.181981 -9.192388 -3.11127 -9.481747 -3.26499
PolyWall -10.624187 -0.116403 -10.508647 -0.457945 -10.515581 -0.8702 -9.066693 -1.258426 -9.613434 -0.594289 -10.141222 -0.245812
PolyWall 9.140621 4.101221 9.263099 4.171928 9.482165 4.216759 9.649467 4.068402 9.720179 3.945928 9.765007 3.726864 9.616647 3.559557 9.494174 3.488847 9.352859 3.411642 9.263099 3.3234 9.481747 3.26499 9.899495 3.676954 10.040914 4.101217 9.025084 4.442762 8.895672 3.959796
BarrierMaker 50 9.843151 4.1562 10.003518 3.595593 9.970704 3.086748 9.944821 2.990156
PolyWall 10.624187 0.116405 10.508647 0.457945 10.515581 0.8702 9.066693 1.258426 9.613431 0.594291 10.141225 0.245813
BarrierMaker 25 -7.831796 -2.831647 -7.805912 -2.735053 -7.631678 -2.471159 -7.48332 -2.303855 -7.23837 -2.162433
BarrierMaker 15 0 2.687006 0 2.262742
PolyWall 8.23018 2.000206 8.107704 1.929497 7.888637 1.884666 7.721334 2.033024 7.650625 2.155499 7.605794 2.374562 7.75415 2.541868 7.876625 2.612579 8.121573 2.754 7.831796 2.831647 7.631679 2.471158 7.212492 2.06584 8.390549 1.4396 8.345718 1.658664 8.475129 2.14163
BarrierMaker 50 -9.843149 -4.156199 -10.003518 -3.595593 -9.970703 -3.086749 -9.944821 -2.990156
Zone!55 -0.565685 -0.424264 -0.777817 -0.353553 -0.848528 -0.141421 -0.777817 0.070711 -0.565685 0.141421 -0.353553 0.070711 -0.282843 -0.141421 -0.353553 -0.353553
Zone!22 -2.095894 -0.334326 -2.288165 -0.372782 -2.288165 0.372781 -2.095895 0.334325
LoadoutZone 1 7.772513 4.250495 7.440349 4.075338 7.26611 3.811441 7.007294 2.845516 7.026241 2.529858 7.226326 2.212084 6.858245 2.451229 6.522697 3.03241 6.465952 3.508202 6.752993 3.891882 7.334175 4.227428
Zone!4 -17.5 -9 -17.5 9 -15.5 9 -15.5 -9
Zone!1 -17.5 -11 -17.5 -9 18.5 -9 18.5 -11
Zone!3 -17.5 9 -17.5 11 18.5 11 18.5 9
Zone!33 2.095891 0.334326 2.288163 0.372781 2.288163 -0.372781 2.095891 -0.334325
Zone!44 0.565685 -0.141421 0.353553 -0.070711 0.282843 0.141421 0.353553 0.353553 0.565685 0.424264 0.777817 0.353553 0.848528 0.141421 0.777817 -0.070711
LoadoutZone 0 -7.772513 -4.250495 -7.440349 -4.075338 -7.26611 -3.811441 -7.007293 -2.845516 -7.02624 -2.529858 -7.226326 -2.212083 -6.858245 -2.451229 -6.522697 -3.032409 -6.465951 -3.508201 -6.752993 -3.891882 -7.334172 -4.227427
Zone!2 16.5 -9 16.5 9 18.5 9 18.5 -9
LineItem -1 2 -2.096236 -0.100536 -2.288223 -0.021205
LineItem -1 2 2.096939 0.201289 2.288926 0.121958
LineItem -1 2 2.096312 0.100256 2.288299 0.020925
LineItem -1 2 2.096009 -0.00028 2.287996 -0.07961
LineItem -1 2 2.095811 -0.099913 2.287798 -0.179243
LineItem -1 2 2.096178 -0.19788 2.288164 -0.27721
LineItem -1 2 2.096178 -0.293446 2.288165 -0.372776
LineItem -1 2 2.203573 0.355577 2.287357 0.320782
LineItem -1 2 2.09597 0.334046 2.095969 -0.334606
LineItem -1 2 2.09597 0.306628 2.287957 0.227298
LineItem -1 2 -2.096102 0.293166 -2.288089 0.372496
LineItem -1 2 -2.096863 -0.201569 -2.28885 -0.122238
LineItem -1 2 2.288241 0.3725 2.288243 -0.373057
LineItem -1 2 -2.288165 -0.37278 -2.288166 0.372777
LineItem -1 2 -2.095894 -0.306908 -2.287881 -0.227578
LineItem -1 2 -2.095894 -0.334325 -2.095893 0.334326
LineItem -1 2 -2.203497 -0.355857 -2.287281 -0.321062
LineItem -1 2 -2.096102 0.1976 -2.288088 0.27693
LineItem -1 2 -2.095735 0.099633 -2.287722 0.178963
LineItem -1 2 -2.095933 0 -2.28792 0.07933
Teleporter -0.565685 -0.141421 -9.333809 -3.818377
Teleporter 0.565685 0.141421 9.333809 3.818377
CoreItem 1 10 0.565685 0.141421
Spawn 1 7.652481 3.707915
CoreItem 0 30 -10.57428 -1.475633
Spawn 0 -7.393662 -2.74199
RepairItem 8.202438 4.101219 20
RepairItem -8.202438 -4.101219 20
CoreItem -2 30 2.262742 -0
Spawn 0 -7.65248 -3.707913
ForceFieldProjector 0 -7.982588 -3.412406 1
ForceFieldProjector -1 -0.0046 -1.370831 0
CoreItem -2 30 -2.2 0
ForceFieldProjector 0 -8.389782 -1.436737 1
Turret 0 -9.648192 -3.147897 0
CoreItem 1 30 11.040154 3.2143
Turret 1 9.639957 3.15064 0
TestItem -0 -2.969848
TestItem 0 2.969848
ForceFieldProjector 1 7.979833 3.413144 1
Turret -1 1.370831 0.013619 0
ForceFieldProjector 1 8.900146 1.300546 1
ForceFieldProjector 0 -8.901698 -1.306809 1
CoreItem 0 10 -0.565685 -0.141421
Turret -1 -1.370831 -0.013614 0
CoreItem 1 30 10.574281 1.475634
ForceFieldProjector -1 -0.0134 1.370831 0
ForceFieldProjector 1 9.740335 2.216729 0
ForceFieldProjector 0 -9.740357 -2.216722 0
Spawn 1 7.393662 2.741989
ForceFieldProjector 1 8.389341 1.435095 1
CoreItem 0 30 -11.040154 -3.2143
ForceFieldProjector -2 0.772238 0.780623 0
ForceFieldProjector -2 -0.772239 -0.780622 0
 

Levelgen code:
  Code:
object1Id = 0
object2Id = 1000
tele1Toggle = true
tele2Toggle = true

function spawnTele1(location)
    local object1 = Teleporter.new()
    object1:setGeom(point.new(-2048,-583.2), point.new(-1713,-450.8))
    levelgen:addItem(object1)
    object1Id = object1:getId()

end

function moveTeleDest1(object1, dest)
    if(tele1Toggle == true) then
        local teleporter = levelgen:findObjectById(object1Id)
        if(teleporter ~= nil) then
            teleporter:clearDests()
            teleporter:addDest(point.new(-586.5,0))
            tele1Toggle = false
        end 
    end
end


function moveTeleDest1P2(object1, dest)
    local teleporter = levelgen:findObjectById(object1Id)
        if(teleporter ~= nil) then
        teleporter:clearDests()
        teleporter:addDest(point.new(2380.1,973.7))
    end

end

function spawnTele2(location)
    local object2 = Teleporter.new()
    object2:setGeom(point.new(2048,583.2), point.new(1713,450.8))
    levelgen:addItem(object2)
    object2Id = object2:getId()

end


function moveTeleDest2(object2, dest)
    if(tele2Toggle == true) then
        local teleporter2 = levelgen:findObjectById(object2Id)
        if(teleporter2 ~= nil) then
            teleporter2:clearDests()
            teleporter2:addDest(point.new(586.5,0))
            teleToggle2 = false
        end
    end
end


function moveTeleDest2P2(object2, dest)
    local teleporter2 = levelgen:findObjectById(object2Id)
        if(teleporter2 ~= nil) then
        teleporter2:clearDests()
        teleporter2:addDest(point.new(-2380.1,-973.7))
    end
end


function spawnResource(location)
    resourceitem = Mine.new()
    resourceitem:setLoc(location)
    levelgen:addItem(resourceitem)
end


function onShipEnteredZone(ship, zone, zoneType, zoneId)
    if(zoneId == 1) then
        local zoneLoc = ship:getLoc()
        local spawnPoint1 = point.new(zoneLoc.x + 0, zoneLoc.y - 100)
        local spawnPoint2 = point.new(zoneLoc.x - 100, zoneLoc.y - 50)
        local spawnPoint3 = point.new(zoneLoc.x + 100, zoneLoc.y - 50)
        spawnResource(spawnPoint1)
        spawnResource(spawnPoint2)
        spawnResource(spawnPoint3)

    end
if(zoneId == 3) then
        local zoneLoc = ship:getLoc()
        local spawnPoint1 = point.new(zoneLoc.x + 0, zoneLoc.y + 100)
        local spawnPoint2 = point.new(zoneLoc.x + 100, zoneLoc.y + 50)
        local spawnPoint3 = point.new(zoneLoc.x - 100, zoneLoc.y + 50)
        spawnResource(spawnPoint1)
        spawnResource(spawnPoint2)
        spawnResource(spawnPoint3)

    end
if(zoneId == 2) then
        local zoneLoc = ship:getLoc()
        local spawnPoint1 = point.new(zoneLoc.x + 100, zoneLoc.y + 0)
        local spawnPoint2 = point.new(zoneLoc.x + 50, zoneLoc.y + 100)
        local spawnPoint3 = point.new(zoneLoc.x + 50, zoneLoc.y - 100)
        spawnResource(spawnPoint1)
        spawnResource(spawnPoint2)
        spawnResource(spawnPoint3)

    end
if(zoneId == 4) then
        local zoneLoc = ship:getLoc()
        local spawnPoint1 = point.new(zoneLoc.x - 100, zoneLoc.y - 0)
        local spawnPoint2 = point.new(zoneLoc.x - 50, zoneLoc.y - 100)
        local spawnPoint3 = point.new(zoneLoc.x - 50, zoneLoc.y + 100)
        spawnResource(spawnPoint1)
        spawnResource(spawnPoint2)
        spawnResource(spawnPoint3)

    end
if(zoneId == 22) then

    moveTeleDest1()
    end

if(zoneId == 33) then

    moveTeleDest2()
    end

if(zoneId == 44) then

    moveTeleDest1P2()
    end

if(zoneId == 55) then

    moveTeleDest2P2()
    end

end

function main()
    subscribe(Event.ShipEnteredZone)
    spawnTele1()
    spawnTele2()
end

special thanks to raptor, bobdaduck and kaen for tolerating my incompetence!
Hee-ho!
<<

Lamp

User avatar

Posts: 426

Joined: Fri Jan 11, 2013 3:07 pm

Post Wed Feb 27, 2013 3:05 pm

Re: Rendezvous (experimental levelgen map)

Little_Apple wrote:Image
Level code:
  Code:
CoreGameType 8
LevelName Rendezvous
LevelDescription "(With you)"
LevelCredits Little_Apple
GridSize 255
Team Yellow 1 1 0
Team LightBlue 0.45 0.875 1
Specials
Script e
MinPlayers
MaxPlayers
PolyWall -0.141421 -1.272792 -0.848528 -0.565685 -0.424264 -0.565685 -0.070711 -0.212132
BarrierMaker 50 11.090062 1.855069 11.096992 2.267321 11.297118 2.62781 11.542064 2.76923 11.645594 3.155601 11.530056 3.497142 11.292039 3.767972 8.877226 4.415021 7.298931 4.320286 6.686556 3.966732 6.363961 3.535534 6.427735 3.000807 6.781289 2.388434 8.10077 1.517245 8.390549 1.4396
BarrierMaker 50 -2.19203 -0.353554 -2.12132 -0.707107 -0.707107 -2.12132 -0 -2.262742 0.707107 -2.12132 2.12132 -0.707107 2.19203 -0.353553
BarrierMaker 5 0.212132 3.181981 0.282843 2.969849 0.212132 2.757717 0 2.687006 -0.212132 2.757716 -0.282843 2.969849 -0.212132 3.181981 -0 3.252691 0.212132 3.181981
PolyWall -11.762988 -4.366476 -11.49216 -4.128464 -11.292038 -3.767971 -9.843149 -4.156199 -10.648708 -4.45799 -11.280029 -4.495888
BarrierMaker 50 -9.417029 -3.338631 -9.146197 -3.100618 -8.971962 -2.836722 -8.990907 -2.521063 -9.106447 -2.179522
BarrierMaker 50 9.417028 3.338633 9.146198 3.10062 8.971962 2.836722 8.990907 2.521063 9.106447 2.179522
PolyWall 9.887643 3.635102 10.040916 2.969847 9.850118 3.015533 9.758073 3.111269 9.545938 3.18198 9.192388 3.11127 9.481745 3.264989
PolyWall -8.23018 -2.000205 -8.107704 -1.929497 -7.888637 -1.884665 -7.721332 -2.033024 -7.650624 -2.155498 -7.605794 -2.374562 -7.75415 -2.541868 -7.876625 -2.612579 -8.121573 -2.754 -7.831796 -2.831647 -7.631679 -2.471158 -7.212491 -2.065839 -8.390549 -1.439599 -8.345718 -1.658664 -8.475127 -2.141629
PolyWall -8.697413 -4.31335 -8.909545 -4.384061 -9 -4.3 -8.895672 -3.959796 -8.48528 -4.101221
BarrierMaker 25 -7.807774 -4.28747 -7.949194 -4.042521 -7.994023 -3.823455 -8.012967 -3.507793 -7.987086 -3.411201
BarrierMaker 50 -0.141421 -1.272792 -0.070711 -0.353553 0.070711 0.353553 0.141421 1.272792
PolyWall -9.140621 -4.101221 -9.263099 -4.171928 -9.482165 -4.216759 -9.649467 -4.068402 -9.720179 -3.945928 -9.765007 -3.726864 -9.616647 -3.559557 -9.494174 -3.488847 -9.352859 -3.411642 -9.263099 -3.3234 -9.481747 -3.26499 -9.899495 -3.676954 -10.040914 -4.101217 -9.025084 -4.442762 -8.895672 -3.959796
BarrierMaker 50 -8.9 -1.3 -9.066693 -1.258426 -10.515581 -0.8702 -10.857124 -0.985737 -11.127954 -1.223749 -11.231483 -1.610121 -11.090059 -1.855068 -11.297117 -2.62781
BarrierMaker 50 2.19203 0.353554 2.12132 0.707107 0.707107 2.12132 0 2.262742 -0.707107 2.12132 -2.12132 0.707107 -2.19203 0.353553
BarrierMaker 50 0.494975 -0.919239 0.141421 -1.272792 -0.141421 -1.272792 -1.272792 -0.141421 -1.272792 0.141421 -0.919239 0.494975
BarrierMaker 50 0.919239 -0.494975 1.272792 -0.141421 1.272792 0.141421 0.141421 1.272792 -0.141421 1.272792 -0.494975 0.919239
BarrierMaker 50 -11.090059 -1.855068 -11.096992 -2.267321 -11.297117 -2.62781 -11.542062 -2.769231 -11.645595 -3.155602 -11.530056 -3.497142 -11.292038 -3.767971 -8.877226 -4.415021 -7.29893 -4.320286 -6.686554 -3.966732 -6.363961 -3.535534 -6.427737 -3.000806 -6.781289 -2.388434 -8.10077 -1.517245 -8.390549 -1.439599
BarrierMaker 15 0 -2.687006 -0 -2.262742
BarrierMaker 25 7.831796 2.831647 7.805912 2.735053 7.631678 2.471159 7.48332 2.303855 7.238371 2.162433
BarrierMaker 75 -0 2.828427 0 3.11127
BarrierMaker 50 9.327837 3.265488 9.651045 3.425295 9.887643 3.635102 9.899494 3.959797
BarrierMaker 50 8.9 1.3 10.515581 0.8702 10.857121 0.985739 11.127952 1.223751 11.231483 1.610121 11.090062 1.855069 11.297118 2.62781
BarrierMaker 50 -9.327837 -3.265488 -9.651045 -3.425295 -9.887643 -3.635102 -9.899494 -3.959797
PolyWall 8.343857 4.384062 8.768122 4.384062 8.895671 3.959796 8.399999 4 8.299999 4.1 8.299999 4.2 8.099999 4.2 8.099999 4.1 7.999999 4 7.949193 4.042521 7.807773 4.28747
BarrierMaker 50 9.737766 2.217417 9.711884 2.120823 9.485882 1.663744 9.066693 1.258426
BarrierMaker 75 0 -2.828427 0 -3.11127
PolyWall 0.141421 1.272792 0.848528 0.565685 0.424264 0.565685 0.070711 0.212132
PolyWall 11.762988 4.366476 11.49216 4.128464 11.292039 3.767972 9.843151 4.1562 10.648711 4.457991 11.280029 4.495888
BarrierMaker 25 7.807774 4.28747 7.949194 4.042521 7.994023 3.823455 8.012968 3.507794 7.987086 3.411201
PolyWall 8.697413 4.31335 8.877226 4.415021 9 4.3 8.895672 3.959796 8.48528 4.101221
BarrierMaker 5 -0.212132 -3.181981 -0.282843 -2.969849 -0.212132 -2.757717 0 -2.687006 0.212132 -2.757716 0.282843 -2.969849 0.212132 -3.181981 0 -3.252691 -0.212132 -3.181981
PolyWall -8.343858 -4.384062 -8.768123 -4.384062 -8.895671 -3.959796 -8.4 -4 -8.3 -4.1 -8.3 -4.2 -8.1 -4.2 -8.1 -4.1 -8 -4 -7.949194 -4.042521 -7.807774 -4.28747
BarrierMaker 50 -9.737766 -2.217416 -9.711885 -2.120823 -9.485882 -1.663744 -9.066693 -1.258426
PolyWall -9.887643 -3.635102 -10.040916 -2.969848 -9.85012 -3.015533 -9.758073 -3.11127 -9.545941 -3.181981 -9.192388 -3.11127 -9.481747 -3.26499
PolyWall -10.624187 -0.116403 -10.508647 -0.457945 -10.515581 -0.8702 -9.066693 -1.258426 -9.613434 -0.594289 -10.141222 -0.245812
PolyWall 9.140621 4.101221 9.263099 4.171928 9.482165 4.216759 9.649467 4.068402 9.720179 3.945928 9.765007 3.726864 9.616647 3.559557 9.494174 3.488847 9.352859 3.411642 9.263099 3.3234 9.481747 3.26499 9.899495 3.676954 10.040914 4.101217 9.025084 4.442762 8.895672 3.959796
BarrierMaker 50 9.843151 4.1562 10.003518 3.595593 9.970704 3.086748 9.944821 2.990156
PolyWall 10.624187 0.116405 10.508647 0.457945 10.515581 0.8702 9.066693 1.258426 9.613431 0.594291 10.141225 0.245813
BarrierMaker 25 -7.831796 -2.831647 -7.805912 -2.735053 -7.631678 -2.471159 -7.48332 -2.303855 -7.23837 -2.162433
BarrierMaker 15 0 2.687006 0 2.262742
PolyWall 8.23018 2.000206 8.107704 1.929497 7.888637 1.884666 7.721334 2.033024 7.650625 2.155499 7.605794 2.374562 7.75415 2.541868 7.876625 2.612579 8.121573 2.754 7.831796 2.831647 7.631679 2.471158 7.212492 2.06584 8.390549 1.4396 8.345718 1.658664 8.475129 2.14163
BarrierMaker 50 -9.843149 -4.156199 -10.003518 -3.595593 -9.970703 -3.086749 -9.944821 -2.990156
Zone!55 -0.565685 -0.424264 -0.777817 -0.353553 -0.848528 -0.141421 -0.777817 0.070711 -0.565685 0.141421 -0.353553 0.070711 -0.282843 -0.141421 -0.353553 -0.353553
Zone!22 -2.095894 -0.334326 -2.288165 -0.372782 -2.288165 0.372781 -2.095895 0.334325
LoadoutZone 1 7.772513 4.250495 7.440349 4.075338 7.26611 3.811441 7.007294 2.845516 7.026241 2.529858 7.226326 2.212084 6.858245 2.451229 6.522697 3.03241 6.465952 3.508202 6.752993 3.891882 7.334175 4.227428
Zone!4 -17.5 -9 -17.5 9 -15.5 9 -15.5 -9
Zone!1 -17.5 -11 -17.5 -9 18.5 -9 18.5 -11
Zone!3 -17.5 9 -17.5 11 18.5 11 18.5 9
Zone!33 2.095891 0.334326 2.288163 0.372781 2.288163 -0.372781 2.095891 -0.334325
Zone!44 0.565685 -0.141421 0.353553 -0.070711 0.282843 0.141421 0.353553 0.353553 0.565685 0.424264 0.777817 0.353553 0.848528 0.141421 0.777817 -0.070711
LoadoutZone 0 -7.772513 -4.250495 -7.440349 -4.075338 -7.26611 -3.811441 -7.007293 -2.845516 -7.02624 -2.529858 -7.226326 -2.212083 -6.858245 -2.451229 -6.522697 -3.032409 -6.465951 -3.508201 -6.752993 -3.891882 -7.334172 -4.227427
Zone!2 16.5 -9 16.5 9 18.5 9 18.5 -9
LineItem -1 2 -2.096236 -0.100536 -2.288223 -0.021205
LineItem -1 2 2.096939 0.201289 2.288926 0.121958
LineItem -1 2 2.096312 0.100256 2.288299 0.020925
LineItem -1 2 2.096009 -0.00028 2.287996 -0.07961
LineItem -1 2 2.095811 -0.099913 2.287798 -0.179243
LineItem -1 2 2.096178 -0.19788 2.288164 -0.27721
LineItem -1 2 2.096178 -0.293446 2.288165 -0.372776
LineItem -1 2 2.203573 0.355577 2.287357 0.320782
LineItem -1 2 2.09597 0.334046 2.095969 -0.334606
LineItem -1 2 2.09597 0.306628 2.287957 0.227298
LineItem -1 2 -2.096102 0.293166 -2.288089 0.372496
LineItem -1 2 -2.096863 -0.201569 -2.28885 -0.122238
LineItem -1 2 2.288241 0.3725 2.288243 -0.373057
LineItem -1 2 -2.288165 -0.37278 -2.288166 0.372777
LineItem -1 2 -2.095894 -0.306908 -2.287881 -0.227578
LineItem -1 2 -2.095894 -0.334325 -2.095893 0.334326
LineItem -1 2 -2.203497 -0.355857 -2.287281 -0.321062
LineItem -1 2 -2.096102 0.1976 -2.288088 0.27693
LineItem -1 2 -2.095735 0.099633 -2.287722 0.178963
LineItem -1 2 -2.095933 0 -2.28792 0.07933
Teleporter -0.565685 -0.141421 -9.333809 -3.818377
Teleporter 0.565685 0.141421 9.333809 3.818377
CoreItem 1 10 0.565685 0.141421
Spawn 1 7.652481 3.707915
CoreItem 0 30 -10.57428 -1.475633
Spawn 0 -7.393662 -2.74199
RepairItem 8.202438 4.101219 20
RepairItem -8.202438 -4.101219 20
CoreItem -2 30 2.262742 -0
Spawn 0 -7.65248 -3.707913
ForceFieldProjector 0 -7.982588 -3.412406 1
ForceFieldProjector -1 -0.0046 -1.370831 0
CoreItem -2 30 -2.2 0
ForceFieldProjector 0 -8.389782 -1.436737 1
Turret 0 -9.648192 -3.147897 0
CoreItem 1 30 11.040154 3.2143
Turret 1 9.639957 3.15064 0
TestItem -0 -2.969848
TestItem 0 2.969848
ForceFieldProjector 1 7.979833 3.413144 1
Turret -1 1.370831 0.013619 0
ForceFieldProjector 1 8.900146 1.300546 1
ForceFieldProjector 0 -8.901698 -1.306809 1
CoreItem 0 10 -0.565685 -0.141421
Turret -1 -1.370831 -0.013614 0
CoreItem 1 30 10.574281 1.475634
ForceFieldProjector -1 -0.0134 1.370831 0
ForceFieldProjector 1 9.740335 2.216729 0
ForceFieldProjector 0 -9.740357 -2.216722 0
Spawn 1 7.393662 2.741989
ForceFieldProjector 1 8.389341 1.435095 1
CoreItem 0 30 -11.040154 -3.2143
ForceFieldProjector -2 0.772238 0.780623 0
ForceFieldProjector -2 -0.772239 -0.780622 0
 

Levelgen code:
  Code:
object1Id = 0
object2Id = 1000
tele1Toggle = true
tele2Toggle = true

function spawnTele1(location)
    local object1 = Teleporter.new()
    object1:setGeom(point.new(-2048,-583.2), point.new(-1713,-450.8))
    levelgen:addItem(object1)
    object1Id = object1:getId()

end

function moveTeleDest1(object1, dest)
    if(tele1Toggle == true) then
        local teleporter = levelgen:findObjectById(object1Id)
        if(teleporter ~= nil) then
            teleporter:clearDests()
            teleporter:addDest(point.new(-586.5,0))
            tele1Toggle = false
        end 
    end
end


function moveTeleDest1P2(object1, dest)
    local teleporter = levelgen:findObjectById(object1Id)
        if(teleporter ~= nil) then
        teleporter:clearDests()
        teleporter:addDest(point.new(2380.1,973.7))
    end

end

function spawnTele2(location)
    local object2 = Teleporter.new()
    object2:setGeom(point.new(2048,583.2), point.new(1713,450.8))
    levelgen:addItem(object2)
    object2Id = object2:getId()

end


function moveTeleDest2(object2, dest)
    if(tele2Toggle == true) then
        local teleporter2 = levelgen:findObjectById(object2Id)
        if(teleporter2 ~= nil) then
            teleporter2:clearDests()
            teleporter2:addDest(point.new(586.5,0))
            teleToggle2 = false
        end
    end
end


function moveTeleDest2P2(object2, dest)
    local teleporter2 = levelgen:findObjectById(object2Id)
        if(teleporter2 ~= nil) then
        teleporter2:clearDests()
        teleporter2:addDest(point.new(-2380.1,-973.7))
    end
end


function spawnResource(location)
    resourceitem = Mine.new()
    resourceitem:setLoc(location)
    levelgen:addItem(resourceitem)
end


function onShipEnteredZone(ship, zone, zoneType, zoneId)
    if(zoneId == 1) then
        local zoneLoc = ship:getLoc()
        local spawnPoint1 = point.new(zoneLoc.x + 0, zoneLoc.y - 100)
        local spawnPoint2 = point.new(zoneLoc.x - 100, zoneLoc.y - 50)
        local spawnPoint3 = point.new(zoneLoc.x + 100, zoneLoc.y - 50)
        spawnResource(spawnPoint1)
        spawnResource(spawnPoint2)
        spawnResource(spawnPoint3)

    end
if(zoneId == 3) then
        local zoneLoc = ship:getLoc()
        local spawnPoint1 = point.new(zoneLoc.x + 0, zoneLoc.y + 100)
        local spawnPoint2 = point.new(zoneLoc.x + 100, zoneLoc.y + 50)
        local spawnPoint3 = point.new(zoneLoc.x - 100, zoneLoc.y + 50)
        spawnResource(spawnPoint1)
        spawnResource(spawnPoint2)
        spawnResource(spawnPoint3)

    end
if(zoneId == 2) then
        local zoneLoc = ship:getLoc()
        local spawnPoint1 = point.new(zoneLoc.x + 100, zoneLoc.y + 0)
        local spawnPoint2 = point.new(zoneLoc.x + 50, zoneLoc.y + 100)
        local spawnPoint3 = point.new(zoneLoc.x + 50, zoneLoc.y - 100)
        spawnResource(spawnPoint1)
        spawnResource(spawnPoint2)
        spawnResource(spawnPoint3)

    end
if(zoneId == 4) then
        local zoneLoc = ship:getLoc()
        local spawnPoint1 = point.new(zoneLoc.x - 100, zoneLoc.y - 0)
        local spawnPoint2 = point.new(zoneLoc.x - 50, zoneLoc.y - 100)
        local spawnPoint3 = point.new(zoneLoc.x - 50, zoneLoc.y + 100)
        spawnResource(spawnPoint1)
        spawnResource(spawnPoint2)
        spawnResource(spawnPoint3)

    end
if(zoneId == 22) then

    moveTeleDest1()
    end

if(zoneId == 33) then

    moveTeleDest2()
    end

if(zoneId == 44) then

    moveTeleDest1P2()
    end

if(zoneId == 55) then

    moveTeleDest2P2()
    end

end

function main()
    subscribe(Event.ShipEnteredZone)
    spawnTele1()
    spawnTele2()
end

special thanks to raptor, bobdaduck and kaen for tolerating my incompetence!


You should either change the levelgen name from e for tell them to make the levelgen name "e". lol

yay :D
Image
<<

raptor

Posts: 1046

Joined: Mon Oct 11, 2010 9:03 pm

Post Wed Feb 27, 2013 4:02 pm

Re: Rendezvous (experimental levelgen map)

Congrats Little_Apple. You level up!
<<

Quartz

User avatar

Posts: 901

Joined: Thu Jun 17, 2010 12:14 am

Location: Texas

Post Wed Feb 27, 2013 4:23 pm

Re: Rendezvous (experimental levelgen map)

...I don't get it. What does this levelgen actually do?
Exploits of Quartz and bobdaduck - Pleiades Maps
19-year-old Quartz mad about lawn removal
raptor wrote:sometimes I think getting Quartz to use plugins is like getting my mom to use a computer
<<

Little_Apple

User avatar

Posts: 839

Joined: Sat Jun 11, 2011 12:31 pm

Location: Zanzibar Land

Post Wed Feb 27, 2013 4:31 pm

Re: Rendezvous (experimental levelgen map)

it advances the teleporter destinations and creates a barrier around the map. not the best for gameplay but it's mainly a test map.
Hee-ho!

Return to Core

Who is online

Users browsing this forum: No registered users and 1 guest