command
module
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: Oct 17, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
PacVim in Go
PacVim is a game that teaches you vim commands.
You must move pacman (the green cursor) to highlight each word on the gameboard while avoiding the ghosts (in red).
安装
go get github.com/A11Might/PacVim
go get github.com/A11Might/PacVim@v0.0.4
使用
键入 pacvim
来开始游戏
游玩方法
The objective of PacVim is very similar to PacMan.
You must run over all the characters on the screen while avoiding the ghosts (red G
).
PacVim has two special obstacles:
-
You cannot move into the walls (yellow color). You must use vim motions to jump over them.
-
If you step on a tilde character (cyan ~
), you lose!
List of Implemented Commands
key |
what it does |
h |
move left |
j |
move down |
k |
move up |
l |
move right |
w |
move forward to next word beginning |
e |
move forward to next word ending |
b |
move backward to next word beginning |
$ |
move to the end of the line |
0 |
move to the beginning of the line |
gg |
move to the beginning of the first line |
G |
move to the beginning of the last line |
开发日志
-
20211015 地图上的玩家(P)可以动啦
-
20211016
- 地图上的幽灵(G)可以动啦
- 新增 h,j,k,l,w,e,b,$,0,gg,G,注意 0,$ 可以穿墙
- 走过所有字符可以赢得游戏啦
-
20211017
- 重构部分代码,看起来更面向对象
- 今天一个人吃海底捞,难过:(
碎碎恋
参考项目 PacVim,还没抄完,开发中...
发现代码有明显逻辑bug
,但它就是能正常运行,我:)
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
pkg
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.