MCPcopy Create free account
hub / github.com/ActiveState/code / argoste

Function argoste

recipes/Python/580671_chroma/recipe-580671.py:292–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

290
291
292def argoste() :
293 global Ya, Xa, AnimA
294 NomFichier = 'ARGOSTE'
295
296 if Decors[(Ya)//64][(Xa)//64] in ('a',' ','P') :
297 Xa = Xa + randint(-100,100)
298 Ya = Ya + randint(-100,100)
299
300 if IndexError :
301 Xa = randint(64,1216)
302 Ya = randint(64,768)
303
304 if Decors[(Ya)//64][(Xa)//64] in ('1','2','3','4','5','6','7','8','9','d','f','g','h') :
305 Xa = randint(64,1216)
306 Ya = randint(64,768)
307
308 AnimA = 1 - AnimA
309 boite.itemconfigure(largoste, image=eval(NomFichier+str(AnimA)))
310 boite.coords(largoste, Xa, Ya)
311 fenetre.after(2000,argoste)
312
313
314# PNJs de la dernière salle (16)

Callers 1

recipe-580671.pyFile · 0.85

Calls 2

strFunction · 0.85
afterMethod · 0.45

Tested by

no test coverage detected