Skip to content

Commit

Permalink
feat: 优化记分方法
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 移除了计时器,更改了游戏的记分方法,现在记分更准确了
  • Loading branch information
kingyuluk committed Jul 14, 2020
1 parent 9429be6 commit 33ad51a
Show file tree
Hide file tree
Showing 21 changed files with 1,241 additions and 1,308 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.


### [1.2.2](https://github.com/kingyuluk/FlappyBird/compare/v1.2.1...v1.2.2) (2020-07-12)


### ⚠ BREAKING CHANGES

* 移除了计时器,更改了游戏的记分方法,现在记分更准确了

### Features

* 优化记分方法 ([9aa9275](https://github.com/kingyuluk/FlappyBird/commit/9aa927537dc9180942c4a982ea46edd840d7c769))

### [1.2.1](https://github.com/kingyuluk/FlappyBird/compare/v1.2.0...v1.2.1) (2020-07-12)


Expand Down
Binary file added FlappyBird.jar
Binary file not shown.
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,26 @@ Flappy Bird for desktop platforms.

## Overview

本项目为Flappy bird的桌面平台版,具备原版的所有功能,且相较于原版优化了游戏难度并加入移动型水管,让游戏更具可玩性。
### 游戏玩法
游戏只需空格键即可操作,每局游戏随机刷新所有元素,小鸟受到重力作用会不断下坠,敲击空格键小鸟就会振翅向上飞,游戏过程中需要玩家控制小鸟不断飞行,并注意躲避随机生成的水管,每飞过一对水管就会得分,飞行过程中如果撞到水管或掉落在地则游戏结束。
本项目为Flappy bird的桌面平台版,具备原版的所有功能,且相较于原版优化了游戏难度并加入移动型水管,增加可玩性。

## How to play
直接运行FlappyBird.jar即可开始游戏。

游戏使用空格键操作。

每局游戏随机刷新所有元素,小鸟受到重力作用会不断下坠,敲击空格键使小鸟振翅向上飞,游戏过程中需要玩家控制小鸟不断飞行,并注意躲避随机生成的水管,每飞过一对水管就会得分,飞行过程中如果撞到水管或掉落在地则游戏结束。


## 游戏界面

### 游戏启动
![image](https://github.com/kingyuluk/flappy-bird/blob/master/examples/start.png)
![image](https://github.com/kingyuluk/FlappyBird/blob/master/resources/readme_img/start.png)

### 运行示例
![image](https://github.com/kingyuluk/flappy-bird/blob/master/examples/play.gif)
![image](https://github.com/kingyuluk/FlappyBird/blob/master/resources/readme_img/play.gif)

### 游戏结束
![image](https://github.com/kingyuluk/flappy-bird/blob/master/examples/over.png)
![image](https://github.com/kingyuluk/FlappyBird/blob/master/resources/readme_img/over.png)


## Package Contents
Expand All @@ -34,6 +39,9 @@ Flappy Bird for desktop platforms.

## Change Log

v1.2.2 - July 12, 2020
* 移除了计时器,优化了游戏的记分方式,现在记分更准确了

v1.2.1 - July 12, 2020
* 使用AudioClip类的方法播放连续的短音频可能会导致线程冲突使游戏卡顿

Expand All @@ -55,4 +63,8 @@ v1.0.0 - July 10, 2020
* sun包在不同操作系统和不同版本的JDK中可能发生变化,因此无法确保工作在所有JAVA平台上

## Contact
* email: <[email protected]>
* email: <[email protected]>

## License

* 图片与音效资源皆来源于网络,仅供学习交流
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit 33ad51a

Please sign in to comment.