/usr/share/games/kiki-the-nano-bot/py/levels/edge.py is in kiki-the-nano-bot-data 1.0.2+dfsg1-6build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | # level design by Michael Abel
# ........................................................................................
def func_edge():
s=world.getSize()
for (i,j,l) in [ (m,n,o) for m in range(3) for n in range(3) for o in range(3)]:
if (i==2 or j==2 or l==2) and i>=1 and j>=1 and l >=1 :
c= 0.6 - (0.3)*(-1)**(i+j+l)
d= 0.6 + (0.3)*(-1)**(i+j+l)
world.addObjectAtPos (KikiStone(KColor(c ,0, d, 0.8) , False), KikiPos (i,j,l))
world.addObjectAtPos (KikiStone(KColor(c ,0, d, 0.8) , False), KikiPos(s.x-i-1,s.y-j-1,s.z-l-1))
world.addObjectAtPos (KikiStone(KColor(c ,0, d, 0.8) , False), KikiPos (s.x-i-1,j,l))
world.addObjectAtPos (KikiStone(KColor(c ,0, d, 0.8) , False), KikiPos (i,s.y-j-1,s.z-l-1))
level_dict["edge"] = {
"scheme": "candy_scheme",
"size": (7,7,7),
"intro": "edge",
"help": (
"$scale(1.5)mission:\nget to the exit!",
),
"player": { "coordinates": (3,0,0),
"nostatus": 0,
"orientation" : rot0
},
"exits": [
{
"name": "exit",
"active": 1,
"position": (0,0,0),
},
],
"create": func_edge,
}
# .................................................................................................................
|