python编写,主要用到的python库有pygame库、tkinter库、pymsql库。压缩包已包含所有资源。实现功能:游戏用户登陆、注册,游戏数据保存,碰撞爆炸特效,飞机飞行特效,子弹追踪效果等。为之前上传的飞机大战的延申。同时运行游戏需要安装MySQL。
2019-12-21 21:43:40 6.02MB python pygame pymysq
1
基于pygame和tkinter 本地音乐播放器软件
2019-12-21 21:40:13 180KB Python开发-多媒体处理
1
自己用pygame写的贪吃蛇,还有很大的修改空间,现在贪吃蛇的移动速度是一定的
2019-12-21 21:32:21 5KB pygame 贪吃蛇
1
利用pygame写的猴子接水果,可用于新手练手pygame里面的碰撞检测等知识。
2019-12-21 21:28:38 10.71MB pygame库
1
pygame简单实现的一个中国象棋代码
2019-12-21 21:28:07 24KB python pygame 象棋
1
这个是支持python3.7的64位的pygame包最新版本。有需要的可以下载
2019-12-21 21:20:43 4.17MB pygame cp37 64位
1
用python+pygame实现的飞机大战的源码,包含资源,可直接运行。通过鼠标控制。 while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() exit() # 绘画背景 screen.blit(background,(0, 0)) # 检测游戏状态 if not gameover: # 定位鼠标的x, y坐标 x, y = pygame.mouse.get_pos() # 发射子弹 interval_b -= 1 if interval_b < 0: bullets[index_b].restart() interval_b = 100 index_b = (index_b + 1) % count_b for b in bullets: if b.active: # 检查子弹命中情况 for e in enemies: # 击中敌机,分数加100 if checkHit(e, b): score += 100 b.move() screen.blit(b.image, (b.x, b.y)) # 绘画机群 for e in enemies: e.move() screen.blit(e.image, (e.x, e.y)) if checkCrash(e, plane): gameover = True e.move() screen.blit(e.image, (e.x, e.y)) plane.move() screen.blit(plane.image, (plane.x, plane.y)) # 屏幕左上角显示分数 text = font.render("Score: %d" % score, 1, (0, 0, 0)) screen.blit(text, (0, 0)) else: text = font.render("Score: %d" % score, 1, (0, 0, 0)) screen.blit(text, (190, 400)) # 游戏结束后,检测鼠标抬起就“重置游戏” if gameover and event.type == pygame.MOUSEBUTTONUP: plane.restart() for e in enemies: e.restart() for b in bullets: b.active = False score = 0 gameover = False pygame.display.update()
2019-12-21 21:09:15 4.08MB python
1
Python:pygame飞机大战源码和素材
2019-12-21 21:07:12 1.66MB python
1
适配python3.7win764位pygame适配python3.7win764位pygame
2019-12-21 21:06:07 4.07MB python3.7 py pygame1.9.3 pygame
1
含有pygame-1.9.3-cp35-cp35m-win_amd64.whl、pygame-1.9.3-cp34-cp34m-win_amd64.whl、pygame-1.9.3-cp27-cp27m-win_amd64.whl、pygame-1.9.3-cp36-cp36m-win_amd64.whl这几个可在win64位下使用的pygame
2019-12-21 21:03:20 15.18MB pygame win64
1