【源码】MATLAB版本的RoteAugen/flappybird游戏

在这里插入图片描述
Flappybird for MATLAB

Author: Mingjing Zhang

Flappy bird在下架之前是应用程序商店中最受欢迎的游戏之一,不需要进一步介绍。

As one of the most popular games on app stores before being taken down, Flappy Bird does not need any further introduction.

现在,这款基于MATLAB版本的游戏又回来了。

Now, it has come back alive, on MATLAB.

本代码是为了复制原始游戏的用户体验,所有物理维度都是相同的。

This implementation is intentionally made to replicate the user experience of the original game, with all physical dimensions of objects being identical.

重力和“跳跃脉冲”也经过了仔细的调整,以便尽可能地与原版本匹配。

The gravity and ‘jumping pulse’ are also carefully adjusted so that they match the original as closely as possible.

为了获得最佳的图像性能,建议使用MATLAB R2014a。

扫描二维码关注公众号,回复: 4894678 查看本文章

MATLAB R2014a is recommended for this game to achieve the best graphical performance

使用方法:直接执行flappybird.m文件,或者以MATLAB app的形式安装"Flappy Bird.mlappinstal"。

Simply execute flappybird.m. Alternatively, you can install “Flappy Bird.mlappinstal” as a MATLAB app.

游戏控制方法:

空格键:跳跃

回车键:开始游戏

向上的方向键:重新开始游戏

ESC:退出游戏

Control:

Spacebar/Return/Uparrow/W/ -> Jump/Start game/Restart game;

ESC -> Quit Game.

该游戏应用程序有几个技术突破,是作者在游戏中第一次使用。

This game app features a few technique breakthroughs that I utilize in a game for the first time.

例如,飞鸟精灵被表示为一个SURFACE对象,而不是IMAGE对象,因此它可以很容易地以任何角度旋转。

For instance, the bird sprite is represented as a SURFACE object, as opposed to an IMAGE object, so that it can easily rotate at any angle.

源码下载地址:

http://page5.dfpan.com/fs/4l4c3j0242219239160/

更多精彩文章请关注微信号:在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42825609/article/details/86160886