mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-24 18:02:22 -05:00
Fix script
This commit is contained in:
parent
88fd2cdc96
commit
f210113f4f
@ -19,6 +19,7 @@ elementTypes = [
|
||||
"TELEPORT",
|
||||
"TERMINAL",
|
||||
"COLUMN",
|
||||
"RUIN",
|
||||
"CARD0",
|
||||
"CARD1",
|
||||
"CARD2",
|
||||
@ -102,7 +103,7 @@ for y in range(64):
|
||||
n = getPixel(70 + x,5 + y)
|
||||
|
||||
if n < 64:
|
||||
levelMap[x][y] = (n,False)
|
||||
levelMap[63 - x][y] = (n,False)
|
||||
else:
|
||||
# tile with special property, create a define for it
|
||||
|
||||
@ -120,7 +121,7 @@ for y in range(64):
|
||||
defNum = len(defines)
|
||||
defines.append((tile,prop))
|
||||
|
||||
levelMap[x][y] = (defNum,True)
|
||||
levelMap[63 - x][y] = (defNum,True)
|
||||
|
||||
# load elements
|
||||
|
||||
@ -131,12 +132,12 @@ for y in range(64):
|
||||
n = getPixel(x + 70, y + 70)
|
||||
|
||||
if n < len(elementTypes):
|
||||
elements.append((n,x,y))
|
||||
elements.append((n,63 - x,y))
|
||||
elif n >= 240:
|
||||
if playerFound:
|
||||
raise(Exception("Multiple player starting positions specified."))
|
||||
|
||||
playerStart = [x,y,(n - 240) * 16]
|
||||
playerStart = [63 - x,y,(n - 240) * 16]
|
||||
playerFound = True
|
||||
|
||||
if not playerFound:
|
||||
@ -153,7 +154,7 @@ for i in range(128 - len(elements)):
|
||||
x = 41
|
||||
y = 114
|
||||
|
||||
for i in range(6):
|
||||
for i in range(7):
|
||||
textures.append(getPixel(x,y))
|
||||
x += 4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user