win32飞机大战素材及源码
2019-12-21 21:17:19 3.47MB 飞机大战
1
这是用JavaScript写的飞机大战,一个比较简单的,图片资源都在压缩包里,注释也写了,大伙应该能看懂
2019-12-21 21:14:27 1.81MB 飞机大战
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
这是大二上学期C++的工程实践项目,真正的面向对象编程,完全原创; 文件包括:VS完整项目文件(打开sln直接运行)+源代码文件+三次实验报告(开中终); 基于easyx图形库(对于没学过OpenGL的人来说easyx算是图形编程首选),图形库的配置很简单,参看http://www.easyx.cn/; 附上我做这个东西时写的博客一篇,对理解整个项目应该会有很大的帮助,诸君下载之前务必先到博客探探水再决定是否下载,毕竟5个C币可是要写很久博客才能赚到的; http://blog.csdn.net/slwbcsdn/article/details/53671731
2019-12-21 21:08:18 17.4MB C++
1
Python:pygame飞机大战源码和素材
2019-12-21 21:07:12 1.66MB python
1
更多游戏见博客http://blog.csdn.net/simon_world
2019-12-21 21:05:53 3.43MB java游戏 飞机大战
1
Cocos2d-x3.0项目创建和VS2012编译 场景跳转和主菜单实现 游戏场景背景滚动 飞机动画和触摸控制 子弹发射 敌机实现 碰撞检测和加分 爆炸效果 粒子特效和音乐播放 判定死亡 移植到Android平台
2019-12-21 21:02:44 2.28MB Cocos2d-x3.1 飞机大战 源代码
1
javase阶段性的小项目,飞机大战中所有使用到的图片还有包括ps的部分图片
2019-12-21 20:56:47 133KB picture
1
Python代码写的飞机大战,里面包括音效,图片,字体资源!!!!!!
2019-12-21 20:56:39 1.69MB Python
1
飞机大战代码源码,可以作为产考,也可以当做模板。做游戏实用。
2019-12-21 20:56:21 183KB 飞机大战
1