java俄罗斯方块颜色源码-Tetris:面向对象高级编程大作业-俄罗斯方块(使用JavaFx完成)

上传者: 38704870 | 上传时间: 2021-06-28 15:26:56 | 文件大小: 5.9MB | 文件类型: ZIP
java俄罗斯方块颜色源码 深圳大学考试答题纸 学 号 2017152044 姓名 舒钦瑜 专业年级 2017级计算机科学与技术 题目: 基于JavaFX的俄罗斯方块的实现 目标:完成一个JAVA Application应用开发:俄罗斯方块 要求:实现以下功能 设计一个简化版的俄罗斯方块游戏。游戏窗口大小是20×10的方形棋盘格阵列,游戏中出现的方块共有7种,每种方块的旋转中心由黑点标出。 具体实现内容和步骤包括: 1. 方块/棋盘格和方块向下移动 创建窗口,然后绘制网格线来完成棋盘格。随机选择方块并赋上颜色,从窗口最上方中间开始往下自动移动,每次移动一个格子。初始的方块类型和方向也必须随机选择,另外可以通过键盘控制方块向下移动的速度,在方块移动到窗口底部的时候,新的方块出现并重复上述移动过程。 2. 方块叠加 不断下落的方块需要能够相互叠加在一起,即不同的方块之间不能相互碰撞和叠加。另外,所有方块移动不能超出窗口的边界。 3. 键盘控制方块的移动 通过方向键(上/下/左/右)来控制方块的移动。按“上”键使方块以旋转中心顺(逆)时针旋转,每次旋转90°,按“左”和“右”键分别将方块向左

文件下载

资源详情

[{"title":"( 58 个子文件 5.9MB ) java俄罗斯方块颜色源码-Tetris:面向对象高级编程大作业-俄罗斯方块(使用JavaFx完成)","children":[{"title":"Tetris-master","children":[{"title":".gitignore <span style='color:#111;'> 29B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"view","children":[{"title":"chrome.png <span style='color:#111;'> 16.73KB </span>","children":null,"spread":false},{"title":"Tetris.fxml <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"view","children":[{"title":"Main.java <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"Controller","children":[{"title":"Controller.java <span style='color:#111;'> 16.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"Model","children":[{"title":"TetrisMoveType.java <span style='color:#111;'> 448B </span>","children":null,"spread":false},{"title":"TetrisDataModel.java <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"TetrisType.java <span style='color:#111;'> 4.97KB </span>","children":null,"spread":false},{"title":"ConstantValues.java <span style='color:#111;'> 505B </span>","children":null,"spread":false},{"title":"TetrisTypes.java <span style='color:#111;'> 787B </span>","children":null,"spread":false},{"title":"TetrisColorType.java <span style='color:#111;'> 400B </span>","children":null,"spread":false},{"title":"ChangedColorType.java <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"Vec2.java <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 790B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 32.61KB </span>","children":null,"spread":false},{"title":"target","children":[{"title":"classes","children":[{"title":"view","children":[{"title":"new-win-logo.png <span style='color:#111;'> 22.26KB </span>","children":null,"spread":false},{"title":"chrome.png <span style='color:#111;'> 16.73KB </span>","children":null,"spread":false},{"title":"Tetris.fxml <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"lol.png <span style='color:#111;'> 72.35KB </span>","children":null,"spread":false},{"title":"Main.class <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false}],"spread":true},{"title":"META-INF","children":[{"title":"Tetris.kotlin_module <span style='color:#111;'> 16B </span>","children":null,"spread":false}],"spread":true},{"title":"Model","children":[{"title":"TetrisType.class <span style='color:#111;'> 3.40KB </span>","children":null,"spread":false},{"title":"Vec2.class <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"ConstantValues.class <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"ChangedColorType.class <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"TetrisColorType.class <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"TetrisMoveType.class <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"TetrisTypes.class <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"TetrisDataModel.class <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Tetris.iml <span style='color:#111;'> 829B </span>","children":null,"spread":false},{"title":".idea","children":[{"title":".gitignore <span style='color:#111;'> 176B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 590B </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 159B </span>","children":null,"spread":false},{"title":"gradle.xml <span style='color:#111;'> 139B </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"uiDesigner.xml <span style='color:#111;'> 8.59KB </span>","children":null,"spread":false},{"title":"artifacts","children":[{"title":"JavaFXApp.xml <span style='color:#111;'> 473B </span>","children":null,"spread":false}],"spread":false},{"title":"compiler.xml <span style='color:#111;'> 943B </span>","children":null,"spread":false},{"title":"description.html <span style='color:#111;'> 188B </span>","children":null,"spread":false},{"title":"jarRepositories.xml <span style='color:#111;'> 845B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 252B </span>","children":null,"spread":false}],"spread":false},{"title":"lib","children":[{"title":"spring-test-5.2.3.RELEASE.jar <span style='color:#111;'> 663.31KB </span>","children":null,"spread":false},{"title":"spring-tx-5.2.3.RELEASE.jar <span style='color:#111;'> 306.95KB </span>","children":null,"spread":false},{"title":"spring-oxm-5.2.3.RELEASE.jar <span style='color:#111;'> 62.47KB </span>","children":null,"spread":false},{"title":"spring-context-support-5.2.3.RELEASE.jar <span style='color:#111;'> 177.86KB </span>","children":null,"spread":false},{"title":"aopalliance-1.0.jar <span style='color:#111;'> 4.36KB </span>","children":null,"spread":false},{"title":"spring-aspects-5.2.3.RELEASE.jar <span style='color:#111;'> 46.16KB </span>","children":null,"spread":false},{"title":"commons-logging-1.2.jar <span style='color:#111;'> 60.38KB </span>","children":null,"spread":false},{"title":"spring-core-5.2.3.RELEASE.jar <span style='color:#111;'> 1.37MB </span>","children":null,"spread":false},{"title":"spring-beans-5.2.3.RELEASE.jar <span style='color:#111;'> 668.66KB </span>","children":null,"spread":false},{"title":"spring-messaging-5.2.3.RELEASE.jar <span style='color:#111;'> 529.81KB </span>","children":null,"spread":false},{"title":"spring-aop-5.2.3.RELEASE.jar <span style='color:#111;'> 363.98KB </span>","children":null,"spread":false},{"title":"spring-orm-5.2.3.RELEASE.jar <span style='color:#111;'> 196.17KB </span>","children":null,"spread":false},{"title":"spring-context-5.2.3.RELEASE.jar <span style='color:#111;'> 1.16MB </span>","children":null,"spread":false},{"title":"spring-jdbc-5.2.3.RELEASE.jar <span style='color:#111;'> 397.16KB </span>","children":null,"spread":false},{"title":"spring-jms-5.2.3.RELEASE.jar <span style='color:#111;'> 255.69KB </span>","children":null,"spread":false},{"title":"spring-instrument-5.2.3.RELEASE.jar <span style='color:#111;'> 7.19KB </span>","children":null,"spread":false},{"title":"spring-expression-5.2.3.RELEASE.jar <span style='color:#111;'> 275.40KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明