- 1、本文档共3页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
俄罗斯方块游戏中关键算法的分析与实现 analysis and realization of algorithm for tetris game
电脑编程技巧与维护
杨桦。周春容
1130)
(四川交通职业技术学院计算机系,成都61
摘要:俄罗斯方块是一款经典的益智游戏,其算法实现可通过枚举算法、旋转坐标算法、数组方式去实现,重点
对该游戏中的随机形状出现、不同形状的数据结构、多线程处理等关键算法进行分析与实现,以Java语言为例,验
证了算法的可行性。
关键词:数组;随机值;算法;线程;基块
andRealizationof forTetrisGame
Analysis Algorithm
YANG
Hua,ZHOU
Chun-rong
ofSichuanVocationalandTechnicalof 611130,China)
(ComputerDepartment CofiegeCommunication,Chengdu
Abstract:Tetrisisaclassic coordinates of
puzzlegame,achievedbyenumeratingalgorithms,rotatingalgorithm,anarray
to articlefocusedonthe ofrandom indata
waysimplement,this game,differentshapes shapesappear structures,muhi-
other for and an tOvalidatethe of in
threading,and feasibility
keyalgorithmsanalysisimplementation,asexample algorithms
Java
language.
block
Keywords:array;randomvalue;algorithm;thread;basic
1引言 ■ ■
俄罗斯方块是一款经典的益智游戏.从手持式游戏机开 ■■■■ ■■一■ ■■■ ■■■■ ●一■I
始,发展为现在的基于PC机和基于手机的游戏,可以用Ja. 一■■,
va、C++、C#、J2ME等编程语言实现,在俄罗斯方块游戏的 酬■,.翻 ■
实现中,需要解决小方块(也称小基块)绘制、图形随机出 弧瞻睚“畦一睢n雕1髓,.秘一附■一■ 一 ■■一■ 一一● ■■■■ 一■一■
啥畦。啊叫k
现、不同形状图形的存储数据结构、多线程控制等方面的关 肌聃叫。哪一一n. ■,。
键技术,以下重点关注这些关键技术的算法分析与实现。
2游戏中所涉及到的数据结构
2.1游戏区域 ■■一■■■纛纛
游戏区域为屏幕的一部分,可通过面
您可能关注的文档
- 多声传感器异步融合算法 the asynchronous fusion algorithm for acoustic sensors.pdf
- 多声源环境下的鲁棒说话人识别 robust speaker recognition in multi-source environment.pdf
- 多摄像机图像间的稳定切换控制 stable switch control for multiple cameras robot system.pdf
- 多色ssor-pcg的mpi+openmp混合编程实现 hybrid programming implementation of mpi+openmp on multicolor ssor-pcg.pdf
- 多时滞不确定系统的模糊保性能h∞控制 fuzzy guaranteed-cost h∞ control of uncertain systems with multiple time-delays.pdf
- 多生理参数管制负荷模型下的扇区bsp划分 sectorization with bsp method under multiple physiological parameters control-load model.pdf
- 多时相遥感影像变化检测系统设计与实现 design and realization of multitemporal remote sensing image change detection system.pdf
- 多时滞离散系统鲁棒稳定性优化模型 optimal models for robust stabilization of multiple state delays systems.pdf
- 多绳摩擦提升机钢丝绳张力检测方法研究 study on tension detection method of multi-rope friction hoist steel wire rope.pdf
- 多时滞线性连续系统的最优h∞容错控制 the optimal h∞ fault-tolerant control of linear continuous systems with multi-time-delay in the state.pdf
- 锇聚合物修饰的低浓度葡萄糖传感器制备与响应特性研究 fabrication and analytical characterization of osmium redox polymer based biosensor to low concentration glucose.pdf
- 厄尔尼诺现象和拉尼娜现象的成因分析和它们对气候变化的影响 analysis on the cause of el nino and la nino phenomenon and their influence on climate change.pdf
- 恶意代码的函数调用图相似性分析 similarity analysis of malware's function-call graphs.pdf
- 恶意网页从原理到防御 principle and defense for malicious web pages.pdf
- 恶意软件动态分析云平台 malware dynamic analysis cloud.pdf
- 恶意模型下隐私保护点积的研究 research on privacy preserving inner product for malicious model.pdf
- 恶意软件鉴别技术及其应用 malware identification technique and its applications.pdf
- 恶意软件检测中解决样本不平衡问题的策略 malware detection in the strategy to solve the problem of unbalanced samples.pdf
- 恶意后门代码审计分析技术 malicious backdoor code audit analysis.pdf
- 儿童交互式智能讲故事系统 interactive and intelligent storytelling system for children.pdf
文档评论(0)