- 博客(3)
- 收藏
- 关注
原创 Keyboard Demo
一个简单的键盘录入示例,基于《Python游戏编程入门》,书中代码有逻辑错误,已给于改动。import sys, random, time, pygamefrom pygame.locals import *def print_text(font, x, y, text, color=(255,255,255)): imgText = font.render(text, True, c
2017-05-09 16:53:37 478 1
原创 Bomb Catcher
根据Python 游戏编程入门写下的简单小游戏,书上的代码有些许错误,在这里也作出勘误。import sys, random, time, pygamefrom pygame.locals import *def print_text(font, x, y, text, color=(255,255,255)): imgText = font.render(text, True
2017-05-06 21:11:48 628
原创 一个简单的Trivia Game
根据《Python游戏编程入门》编写,稍加更改完成挑战import sys, pygamefrom pygame.locals import *class Trivia(object): def __init__(self, filename): self.data = [] self.current = 0 self.total = 0 self.correct =
2017-05-05 16:23:48 552
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人