QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2322|回复: 15

用汇编写了个Linux terminal下的俄罗斯方块

[复制链接]
发表于 2005-3-22 09:18:54 | 显示全部楼层 |阅读模式
又加了3点功能:
_1_ 检查自定义键是否有冲突,有冲突的话,会提醒
_2_ 以前当设置好自己的按键后,如果restart game,又会回到default状态,
      现在会保留自定义的按键
_3_ 加了个切换加速的功能,编译的是每消除30行,速度加倍,如果觉得快的
      话,可以在自己适合的速度,按TAB键切换停止加速

大家玩玩看~~~

这是新的下载地址,可执行文件,(chmod u+x后), 在terminal下运行:
http://www.oucsoft.com/sunhp/wukong_tetris_1.2

这个是慢的(每消20行加速 )
http://www.oucsoft.com/sunhp/wukong_tetris_1.2_slow

这是旧的下载地址:
http://www.oucsoft.com/sunhp/wukong_tetris
旧的抓图:
http://www.oucsoft.com/board/UploadFile/2005-3/2005321102034209.jpg
http://www.oucsoft.com/board/UploadFile/2005-3/200532110204361.jpg
发表于 2005-3-22 09:33:24 | 显示全部楼层
looks good!
but how do I use the file? Do I need to install?
also, mind sharing the source code? Because I want to learn a bit of assembly language.
回复

使用道具 举报

 楼主| 发表于 2005-3-22 10:29:35 | 显示全部楼层
simply download and run it under Linux terminal
no need to install, it's an executable

have fun
回复

使用道具 举报

发表于 2005-3-22 11:15:30 | 显示全部楼层
the speed is too fast
哈哈,英文。。
回复

使用道具 举报

 楼主| 发表于 2005-3-22 11:27:00 | 显示全部楼层
我编译设置的是每消除30行,速度加倍,快吗,多少合适?呵呵~~~
可以编译为不加速的,不过我想大家还是想玩加速的
回复

使用道具 举报

发表于 2005-3-22 14:36:53 | 显示全部楼层
传说中的大牛啊
拜一个!
回复

使用道具 举报

发表于 2005-3-22 22:37:01 | 显示全部楼层
汇编?
太强了啊楼主
回复

使用道具 举报

发表于 2005-3-23 00:05:16 | 显示全部楼层
哈哈,汇编……
source?
回复

使用道具 举报

发表于 2005-3-23 11:19:46 | 显示全部楼层
直接 把自己的大脑当作编译器使用

牛 。。。。牛。。。。。     
回复

使用道具 举报

发表于 2005-3-23 20:42:08 | 显示全部楼层
SOURCE.....
回复

使用道具 举报

发表于 2005-3-24 13:47:28 | 显示全部楼层
佩服
回复

使用道具 举报

发表于 2005-4-3 00:28:11 | 显示全部楼层
太TMD快了
键盘完全跟不上

另外希望看到source
回复

使用道具 举报

 楼主| 发表于 2005-4-3 00:38:45 | 显示全部楼层
难道下面这个慢的还快?在我机器上狠慢丫
http://www.oucsoft.com/sunhp/wukong_tetris_1.2_slow
回复

使用道具 举报

发表于 2005-4-8 17:18:46 | 显示全部楼层
[quote:530df39ab7="wk1989"]looks good!
but how do I use the file? Do I need to install?
also, mind sharing the source code? Because I want to learn a bit of assembly language.[/quote]

there is no source for assembler.

Machine code is the binary data executed by the CPU.
Assembler is the human-readable representation of the instructions, eg:
  MOV R14,R12

This is directly interchangable with the machine code, so for any given combination of instruction and parameters, there is a binary pattern which is understood by the CPU.

This is also reversible, so if there is a binary pattern which is a valid instruciton, it can be turned back into assembler. It is a 1:1 relationship. Assembler is human-readable machine code.

If you want to read the assembly instructions for this game, you will need software to do it. The source and the executable are the same thing here.
回复

使用道具 举报

 楼主| 发表于 2005-4-8 21:40:43 | 显示全部楼层
...coz of the expansion of macros (I made a heavy use of macros for the sake of both readability
of the source code and simplicity of programming),as well as the implementation of some
extra functions like self-key-setting and so on.

I wrote this program in a very extensible way; the user interface (like the positions and colors) can be changed
by just modifying the corresponding constants --- this, more or less, makes the program a little bit bigger.
Actually, a considerable portion of the code is contributed to the interface-programming.

Yes, this game can be implemented in just several decades of k-bytes as u said above if I only want to program
the fundamental of tetris.

Also this game was programmed with no use of any library functions, so...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 08:34 , Processed in 0.043191 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表