/usr/share/games/kiki-the-nano-bot/py/levels/entropy.py is in kiki-the-nano-bot-data 1.0.2+dfsg1-6.
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 | # level design by Michael Abel
# .................................................................................................................
def func_entropy():
s=world.getSize()
d=2
for (i,j,l) in [ (m,n,o) for m in range(s.x) for n in range(s.y) for o in range(s.z)]:
if (-1)**(i+j+l) ==1 and not ( d<=i<=s.x-d-1 and d<=j<=s.y-d-1 and d<=l<=s.z-d-1 ):
world.addObjectAtPos (KikiStone(KColor(0,0.8,0.2,0.8) , True) , KikiPos (i,j,l))
level_dict["entropy"] = {
"scheme": "green_scheme",
"size": (9,9,9),
"intro": "entropy",
"help": (
"$scale(1.5)mission:\nget to the exit!\n\n" + \
"use the stones to reach it",
),
"player": { "coordinates": (4,3,4),
"nostatus": 0,
},
"exits": [
{
"name": "exit",
"active": 1,
"position": (0,0,0),
},
],
"create": func_entropy,
}
# .................................................................................................................
|