Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import appuifw,graphics,e32
- def quit():
- global play
- play=0
- appuifw.app.exit_key_handler=quit
- appuifw.app.screen='full'
- appuifw.app.body=c=appuifw.Canvas()
- layar=c.size
- im=graphics.Image.new(layar)
- t1=[50,90]
- t2=[50,100]
- t3=[50,200]
- an=[t1,t2,t3]
- s=0
- d=0
- def animasi():
- global d,s
- if d<=0:
- d=6
- s+=1
- if d>0: d-=1
- if s>len(an)-1:s=0
- im.text((an[s],an[s]),u'hore',0xff0ff,(u'',100))
- play=1
- while play:
- im.clear(0)
- animasi()
- c.blit(im)
- e32.ao_sleep(0.01)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement