qingfeng@me.com




2009   9   19
Game



2009   9   19
2009   9   19
http://www.pygame.org/




2009   9   19
Game Show!



2009   9   19
” ”



2009   9   19
Java   =



2009   9   19
2009   9   19
Python



2009   9   19
class Hero(object):
                       pass




2009   9   19
hero = Hero()
                hero.hp = 300
                hero.mp = 50




2009   9   19
class Hero(object):
                   def __init__(self):
                      self.hp = 200

                    hero =...
class Hero(object):
                   def move(self,x,y):
                      print x,y
                      return x,...
Python



2009   9   19
str



2009   9   19
str(10)



2009   9   19
str(hero)



2009   9   19
class Hero(object):
                   def __str__(self):
                      return “Hi, i am a hero”
                h...
2009   9   19
2009   9   19
2009   9   19
2009   9   19
Diablo



2009   9   19
2009   9   19
Pygame



2009   9   19
http://code.google.com/p/herostory/




2009   9   19
Upcoming SlideShare
Loading in...5
×

第四讲

923

Published on

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

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

No notes for slide

第四讲

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

    Clipping is a handy way to collect important slides you want to go back to later.

×