摘要
本设计使用JAVA语言,在Android平台下,利用双缓冲、多线程、坐标碰撞检测、蓝牙网络编程等技术,实现了俄罗斯方块游戏的基本功能;优化了触屏偏差、蓝牙同步消息传输、大位图内存溢出等问题;详细说明了俄罗斯方块软件中关于方块数据结构的设置、方块和障碍物的绘制、下落方块的双缓冲实现、检查模块的设计以及摆放消行和分数统计设计,进而缓解了当前单机游戏缺乏的问题.
This paper uses JAVA language on Android platform. The basic functions of Tetris have been implemented with such techniques as double-buffering, multithreading, collision detection, Bluetooth network programming, and etc. Such issues as touch deviation, Bluetooth synchronous messaging and large bitmap memory overflowing are solved. This paper details the data structure configuration, rendering of blocks and obstacles, double-buffering implementation of falling blocks, design of checking module, placement and elimination of rows and score statistics, to add to the current console games.
出处
《洛阳师范学院学报》
2016年第2期54-58,63,共6页
Journal of Luoyang Normal University