Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
回复
 
主题工具 显示模式
旧 2007-04-13, 23:09   #1
labfans
论坛管理员
 
labfans 的头像
 
注册日期: 2007-04-03
帖子: 784
声望力: 5
labfans 的声望功能已被禁用
默认 【资料】贪食蛇 Snake (the classic Nokia game)

Matlab编的游戏:
Snake (the classic Nokia game)
Author: Per-Anders Ekstr枚m
Summary: Graphical User Interface for playing "Nokia Classic Game" Snake.
MATLAB Release: R2006a
Description: The Game:
Make the snake grow longer by directing it to the food.
Extra bonus points are given from hearts, eat them as fast as possible as amount of bonus points decreases with time.
Higher level gives more points for the food but will also make it tougher to steer a long snake as speed increaces.
Five different mazes as well as play w/o maze are possible.

Game Controls:
Steer snake using arrow keys. Pause game with 'p' or space.

Example:
snake % Start Main Snake Interface

贪食蛇经典Nokia游戏)
摘要:"诺基亚经典游戏"贪食蛇的图形用户接口。
描述:控制蛇的方向,吃到食物后蛇会变长。吃到星会给额外的奖励分,尽快的吃掉星,因为奖励分数会随着时间的推移而减少。

级别越高迟到食物获得的分数越高但是蛇的速度也会增加。

控制:用方向键控制,空格键或'p'键暂停。

程序如下,大家试试
上传的附件
文件类型: rar snake.rar (4.6 KB, 120 次查看)
labfans 当前离线   回复时引用此帖
旧 2007-05-05, 21:54   #2
lcc_102485
初级会员
 
注册日期: 2007-05-05
帖子: 1
声望力: 0
lcc_102485 正向着好的方向发展
默认

顶,的确是一个好东东,以后多传...
lcc_102485 当前离线   回复时引用此帖
旧 2007-06-13, 16:58   #3
jay007
初级会员
 
注册日期: 2007-06-13
帖子: 2
声望力: 0
jay007 正向着好的方向发展
默认

呵呵,利害。挺有意思
jay007 当前离线   回复时引用此帖
回复


发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码



所有时间均为北京时间。现在的时间是 06:11


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.