Your SlideShare is downloading. ×
第四讲
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

第四讲

886

Published on

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
886
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
20
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. qingfeng@me.com 2009 9 19
  • 2. Game 2009 9 19
  • 3. 2009 9 19
  • 4. http://www.pygame.org/ 2009 9 19
  • 5. Game Show! 2009 9 19
  • 6. ” ” 2009 9 19
  • 7. Java = 2009 9 19
  • 8. 2009 9 19
  • 9. Python 2009 9 19
  • 10. class Hero(object): pass 2009 9 19
  • 11. hero = Hero() hero.hp = 300 hero.mp = 50 2009 9 19
  • 12. class Hero(object): def __init__(self): self.hp = 200 hero = Hero() print hero.hp 2009 9 19
  • 13. class Hero(object): def move(self,x,y): print x,y return x,y 2009 9 19
  • 14. Python 2009 9 19
  • 15. str 2009 9 19
  • 16. str(10) 2009 9 19
  • 17. str(hero) 2009 9 19
  • 18. class Hero(object): def __str__(self): return “Hi, i am a hero” hero = Hero() print str(hero) 2009 9 19
  • 19. 2009 9 19
  • 20. 2009 9 19
  • 21. 2009 9 19
  • 22. 2009 9 19
  • 23. Diablo 2009 9 19
  • 24. 2009 9 19
  • 25. Pygame 2009 9 19
  • 26. http://code.google.com/p/herostory/ 2009 9 19

×