第四讲
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

第四讲

on

  • 1,357 views

 

Statistics

Views

Total Views
1,357
Views on SlideShare
1,354
Embed Views
3

Actions

Likes
2
Downloads
20
Comments
0

1 Embed 3

http://www.slideshare.net 3

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

第四讲 Presentation 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