自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 424 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 596

原创 一个简单的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 530

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除