python小游戏
一些小游戏
马踏飞燕&lin_li
博客地址以迁移:https://linli1724647576.github.io/
展开
-
Orbiting Spaceship
Orbiting Spaceship import sys,random,math,pygame from pygame.locals import * #Point class class Point(object): def __init__(self,x,y): self._x=x self._y=y #X property de...原创 2020-01-12 19:44:59 · 420 阅读 · 0 评论 -
Analog clock
Analog clock import sys,random,math,pygame from pygame.locals import * from datetime import datetime,date,time def print_text(font,x,y,text,color=(255,255,255)): imgText=font.render(text,True,col...原创 2020-01-12 19:40:51 · 340 阅读 · 0 评论 -
Bomb Catcher Game
#Bomb Catcher Game import sys,random,time,pygame from pygame.locals import * def print_text(font,x,y,text,color=(255,255,255)): imgText=font.render(text,True,color) screen.blit(imgText,(x,y))...原创 2020-01-12 19:36:33 · 440 阅读 · 0 评论 -
打字游戏
打字游戏 import sys,random,time,pygame from pygame.locals import * def print_text(font,x,y,text,color=(255,255,255)): imgText=font.render(text,True,color) screen.blit(imgText,(x,y)) #main progra...原创 2020-01-12 19:38:54 · 265 阅读 · 0 评论