三叶虫的进化(2048)小游戏的开发与设计摘要 三叶虫的进化(2048)小游戏是一款几乎人尽皆知的数字益智类单人小游戏。最早于2014 年 3 月 20 日发行首先在 GitHub 上发布,原作者是 Gabriele Cirulli,后被各个平台运用。缓解生活压力、调节情绪是这款小游戏的初衷。我们采用 Java 语言和 eclipse 软件来重新开发了一款界面清晰且具有四个关卡的 2048 游戏,对游戏的界面、地图、关卡、音效、控制、积分等进行了设计。在设计中,我们借助了 JFrame 类构建我们的游戏窗体,调用关卡对象的 initView()方法来进行界面的搭建,创建一个 JLabel 对象来显示文本或者图像,使用 KeyEvent 类来表示组件中发生的键击事件,比如 KeyAdapter 对象实现 KeyListener 接口,将空白方块放入 List 集合,不为空的集合,则使用 random 类来创建对象。以此实现了一个更简洁易操控的 2048 小游戏。关键词 三叶虫的进化(2048)小游戏 益智 简洁The development and design of the trilobite evolution (2048) mini-gameAbstract Trilobite evolution (2048) mini-game is an almost well-known digital puzzle class single small game. First posted on Github on March 20,2014, by Gabriele Cirulli, then used by various platforms. Alleviate the pressure of life, adjust the mood is the original intention of this small game. We use the Java language and eclipse software to re-develop a clear interface and has four levels of the game 2048, the game interface, map, levels, sound, control, integration and so on. In our design, we use the JFRAME class to build our game form, call the initView() method of the level object to build the interface, and create a JLabel object to display text or images, keyevent classes are used to represent the keystroke events that occur in the component, such as the KeyAdapter object implementing the KeyListener interface, placing blank squares into the List collection, or using the random class to create objects if the collection is not empty. With ...