您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 基于Python的Pygame框架研究
齐齐哈尔大学毕业设计(论文)齐齐哈尔大学毕业设计(论文)题目基于Python的Pygame框架研究学院计算机与控制工程学院专业班级计本111学生姓名王攀拓指导教师赵鑫成绩2015年06月19日齐齐哈尔大学毕业设计(论文)I摘要该论文论述了Python语言中Pygame库的框架结构和一些常用的该库的API,使用Pygame库进行2D游戏开发时需要注意的事项,以及进行2D游戏开发的常用技巧,站在开发者的角度,理论系统的讲解了Pygame游戏开发中的使开发技巧。本论文旨在帮助入门级Pygame游戏开发者能够快速的适应和熟悉该框架的开发规范,能够迅速的使用Pygame框架进行相应的游戏开发。这个Pygame框架是一个对所有程序员开放的Python库。Pygame作为Python语言的扩展,它的所有书写规范都完全按照Python的语法规则来进行设计和开发。而作为一个开放的语言库,意味着开发者能够更多的看到底层代码的运行原理,甚至修改底层代码从而对开发者自身的程序进行优化,当然着所有都得建立在开发者熟悉Python语言的基础上。本论文站在理论的高度对Python下的Pygame框架进行了全面详细的介绍和说明,还有更进一步游戏开放方面的技术指导,作为Python入门级的介绍,本论文足以满足Pygame初学者的学习需求。关键字:Pygame;框架;游戏开发;源代码开放齐齐哈尔大学毕业设计(论文)IIAbstractThispaperdiscussestheframeworkPygamePythonlanguagelibraryandthelibrarysomecommonAPI,mattersneedattentionwhenusingPygamelibrary2Dgamedevelopment,aswellascommon2Dgamedevelopmentskills,developer'sperspectiveisstanded,systemtheorytoexplainthePygamegamedevelopmentmakedevelopmentskills.Thispaperaimstohelpentry-levelPygamegamedeveloperstoquicklyadaptandbecomefamiliarwithdevelopmentspecificationsoftheframeworkcanquicklyusePygamegamedevelopmentframeworkaccordingly.TheframeworkisrunningunderthePythonlanguageanopenedsourceruntime.PygamePythonasanextensionlanguage,it'sallwrittenspecificationsarefullyinaccordancewiththerulesofgrammarPythontocarryoutdesignanddevelopment.Thelibraryasanopenedlanguage,meaningthatdeveloperscanseemoreoftheoperatingprincipleunderlyingcode,orevenmodifytheunderlyingcodesodevelopersoptimizetheirprograms,ofcourse,withallthefamiliardeveloperhadtobuildinlanguagePythonbasis.Inthispaper,attheheightofthetheoreticalframeworkforPythonPygameunderacomprehensivedetailedintroductionanddescriptionofthegameaswellasafurtheropeningupoftechnicalguidance,asPythonentry-levelintroduction,thispaperissufficienttomeetthelearningneedsofbeginnersPygame.Keywords:Pygame;Frame;GameDevelopment;Opensource齐齐哈尔大学毕业设计(论文)目录摘要...........................................................................................................................................IAbstract.....................................................................................................................................II第1章绪论..............................................................................................................................11.1课题研发的目的与意义........................................................................................11.2可行性分析............................................................................................................21.3国内外研究现状....................................................................................................3第2章Pygame基础................................................................................................................42.1Pygame来自Python....................................................................................................42.2Pygame环境的要求....................................................................................................52.3Python语法简介..........................................................................................................52.4Pycharm简介...............................................................................................................62.6Pygame环境搭建........................................................................................................6第3章Pygame模块................................................................................................................93.1Pygame文件结构........................................................................................................93.2事件...........................................................................................................................103.2.1事件机制........................................................................................................103.2.2事件处理函数................................................................................................103.2.3鼠标事件处理................................................................................................113.2.4键盘事件处理................................................................................................123.2.5事件过滤........................................................................................................123.3图像...........................................................................................................................123.3.1色彩像素........................................................................................................123.3.2图片处理........................................................................................................133.3.3动画处理........................................................................................................133.4声音...........................................................................................................................143.5动作...........................................................................................................................163.5.1精灵.................................
本文标题:基于Python的Pygame框架研究
链接地址:https://www.777doc.com/doc-4546260 .html