Ejemplo n.º 1
0
#!/usr/bin/env python

import level as l

segments = []
sprites = []
name = "test"

segments += l.add_straight(50, 0)
segments += l.add_hill(25, 25, 25, 20, 0)
segments += l.add_straight(25, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 0, l.last_y(segments))
segments += l.add_corner(80, 45, 40, 8)
segments += l.add_corner(70, 45, 100, -8)

for n in range(100):
    if (n % 3 == 0):
        sprites.append([len(segments), -1.1, "column"])
        sprites.append([len(segments), 1.4, "column"])

    segments.append([0, 0, 0])

segments += l.add_hill(25, 25, 25, 25, 0)
segments += l.add_straight(5, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 5, l.last_y(segments))
segments += l.add_straight(5, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 20, l.last_y(segments))
segments += l.add_straight(5, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 0, l.last_y(segments))
segments += l.add_straight(5, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 25, l.last_y(segments))
#!/usr/bin/env python

import level as l

segments = []
sprites = []
name = "melbourne"

segments += l.add_straight(100, 0)
segments += l.add_corner(30, 85, 40, 5, 0, 20)
segments += l.add_straight(100, l.last_y(segments))
segments += l.add_corner(30, 45, 40, 4, l.last_y(segments))
segments += l.add_corner(30, 45, 40, -6, l.last_y(segments))
segments += l.add_corner(30, 45, 40, 6, l.last_y(segments))
segments += l.add_corner(30, 45, 40, -4, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 0, l.last_y(segments))
segments += l.add_straight(150, 0)
segments += l.add_corner(30, 85, 20, 5, 0, 20)
segments += l.add_corner(20, 85, 40, 5, l.last_y(segments), 0)
segments += l.add_corner(80, 45, 40, 6, l.last_y(segments))
segments += l.add_corner(70, 45, 100, -6, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 25, l.last_y(segments))
segments += l.add_straight(20, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 0, l.last_y(segments))
segments += l.add_corner(140, 220, 140, 5, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 15, l.last_y(segments))
segments += l.add_straight(5, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 5, l.last_y(segments))
segments += l.add_straight(5, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 20, l.last_y(segments))
segments += l.add_straight(5, l.last_y(segments))
Ejemplo n.º 3
0
#!/usr/bin/env python

import level as l

segments = []
sprites  = []
name     = "test"

segments += l.add_straight(50, 0)
segments += l.add_hill(25, 25, 25, 20, 0)
segments += l.add_straight(25, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 0, l.last_y(segments))
segments += l.add_corner(80, 45, 40, 8)
segments += l.add_corner(70, 45, 100, -8)

for n in range(100):
    if (n % 3 == 0):
        sprites.append([len(segments), -1.1, "column"])
        sprites.append([len(segments), 1.4, "column"])

    segments.append([0, 0, 0])

segments += l.add_hill(25, 25, 25, 25, 0)
segments += l.add_straight(5, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 5, l.last_y(segments))
segments += l.add_straight(5, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 20, l.last_y(segments))
segments += l.add_straight(5, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 0, l.last_y(segments))
segments += l.add_straight(5, l.last_y(segments))
segments += l.add_hill(25, 25, 25, 25, l.last_y(segments))
#!/usr/bin/env python

import level as l

segments = []
sprites = []
name = "goldcoast"

segments += l.add_straight(100, 0)
segments += l.add_hill(50, 50, 50, 40, l.last_y(segments))
segments += l.add_straight(500, l.last_y(segments))
segments += l.add_hill(30, 30, 30, 20, l.last_y(segments))
segments += l.add_straight(200, l.last_y(segments))
segments += l.add_corner(30, 45, 40, 6, l.last_y(segments))  #1155
segments += l.add_straight(90, l.last_y(segments))
segments += l.add_hill(30, 30, 30, 0, l.last_y(segments))  #1335
segments += l.add_straight(150, l.last_y(segments))  # 1485
print "Segments: %d" % len(segments)
segments += l.add_corner(30, 45, 40, 6, l.last_y(segments))
segments += l.add_straight(200, l.last_y(segments))
segments += l.add_hill(80, 80, 80, 40, l.last_y(segments))
segments += l.add_hill(20, 20, 20, 35, l.last_y(segments))
segments += l.add_straight(50, l.last_y(segments))
segments += l.add_hill(20, 20, 20, 20, l.last_y(segments))
print "Segments: %d" % len(segments)
segments += l.add_corner(30, 45, 40, -6, l.last_y(segments))
segments += l.add_corner(30, 45, 40, 4, l.last_y(segments))
segments += l.add_straight(50, l.last_y(segments))
segments += l.add_hill(20, 20, 20, 40, l.last_y(segments))
segments += l.add_straight(50, l.last_y(segments))
segments += l.add_corner(25, 45, 25, 5, l.last_y(segments), 30)
#!/usr/bin/env python

import level as l

segments = []
sprites  = []
name     = "goldcoast"

segments += l.add_straight(100, 0)
segments += l.add_hill(50, 50, 50, 40, l.last_y(segments))
segments += l.add_straight(500, l.last_y(segments))
segments += l.add_hill(30, 30, 30, 20, l.last_y(segments))
segments += l.add_straight(200, l.last_y(segments))
segments += l.add_corner(30, 45, 40, 6, l.last_y(segments)) #1155
segments += l.add_straight(90, l.last_y(segments))
segments += l.add_hill(30, 30, 30, 0, l.last_y(segments)) #1335
segments += l.add_straight(150, l.last_y(segments)) # 1485
print "Segments: %d" % len(segments)
segments += l.add_corner(30, 45, 40, 6, l.last_y(segments))
segments += l.add_straight(200, l.last_y(segments))
segments += l.add_hill(80, 80, 80, 40, l.last_y(segments))
segments += l.add_hill(20, 20, 20, 35, l.last_y(segments))
segments += l.add_straight(50, l.last_y(segments))
segments += l.add_hill(20, 20, 20, 20, l.last_y(segments))
print "Segments: %d" % len(segments)
segments += l.add_corner(30, 45, 40, -6, l.last_y(segments))
segments += l.add_corner(30, 45, 40, 4, l.last_y(segments))
segments += l.add_straight(50, l.last_y(segments))
segments += l.add_hill(20, 20, 20, 40, l.last_y(segments))
segments += l.add_straight(50, l.last_y(segments))
segments += l.add_corner(25, 45, 25, 5, l.last_y(segments), 30)