pygame
Ibelievesunshine
毕业于浙江师范大学数计学院,是一名图像处理工程师
展开
-
pygame使用之第一个简单的动画效果实现
import pygame,sysfrom pygame.locals import *pygame.init()FPS = 30 #frames per second settingfpsClock = pygame.time.Clock()#set up the windowDISPLAYSURF = pygame.display.set_mode((400,300),0,32)...原创 2018-10-12 22:27:43 · 2736 阅读 · 0 评论 -
python中利用pygame模块输出文字
import pygame,sysfrom pygame.locals import *pygame.init() #初始化pygame模块DISPLAYSURF = pygame.display.set_mode((400,300)) #长400,宽300pygame.display.set_caption('Hello World!')BLACK = (0,0,0)GREEN =...原创 2018-10-13 19:31:06 · 8219 阅读 · 2 评论 -
python利用pygame框架实现类似推箱子游戏 Star Pusher
本代码来源于 《Python和Pygame游戏开发指南》中的 Star Pusher 游戏# Star Pusher (a Sokoban clone)# By Al Sweigart [email protected]# http://inventwithpython.com/pygame# Released under a "Simplified BSD" licens...原创 2018-10-30 18:53:47 · 3955 阅读 · 6 评论 -
python利用pygame框架实现类似大鱼吃小鱼游戏 (松鼠吃松鼠) code from making games with python and pygame
本源码来自于 《Python和Pygame游戏开发指南》# Squirrel Eat Squirrel (a 2D Katamari Damacy clone)# By Al Sweigart [email protected]# http://inventwithpython.com/pygame# Released under a "Simplified BSD" li...原创 2018-10-30 19:16:09 · 2281 阅读 · 0 评论