PacVim
PacVim
by Shark Labs

Version Latest

OS Ubuntu 18.04

DEVELOPER TOOLS

Description

PacVim is a game that will teach you how to use the vim text editor.

Software Included

Getting started after deploying PacVim

To play, ssh into your Droplet and then run:

pacvim [LEVEL_NUMBER] [MODE]

You may specify the starting level and mode (n and h for normal/hard). Default mode is hard:

pacvim 8 n

How To Play

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:

  1. You cannot move into the walls (yellow color). You must use vim motions to jump over them.

  2. If you step on a tilde character (cyan ~), you lose!You are given three lives. You gain a life each time you beat

    level 0, 3, 6, 9, etc. There are 10 levels, 0 through 9. After

    beating the 9th level, the game is reset to the 0th level, but

    the ghosts move faster.Winning conditions: Use vim commands to move the cursor

over the letters and highlight them. After all letters are

highlighted, you win and proceed to the next level.

Losing conditions: If you touch a ghost (indicated

by a red G) or a tilde character, you lose a life. If you

have less than 0 lives, you lose the entire game.

List of Implemented Commands

keywhat it does
qquit the game
hmove left
jmove down
kmove up
lmove right
wmove forward to next word beginning
Wmove forward to next WORD beginning
emove forward to next word ending
Emove forward to next WORD ending
bmove backward to next word beginning
Bmove backward to next WORD beginning
$move to the end of the line
0move to the beginning of the line
gg/1Gmove to the beginning of the first line
numberGmove to the beginning of the line given by number
Gmove to the beginning of the last line
^move to the first word at the current line
&1337 cheatz (beat current level)

API Creation

In addition to creating a Droplet from the PacVim 1-Click App via the control panel, you can also use the DigitalOcean API.

As an example, to create a 4GB PacVim Droplet in the SFO2 region, you can use the following curl command. You’ll need to either save your API access token to an environment variable or substitute it into the command below.


  curl -X POST -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer '$TOKEN'' -d \
      '{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image":"sharklabs-pacvim-18-04"}' \
      "https://api.digitalocean.com/v2/droplets"
      

Support Details

Support URL:https://github.com/jmoon018/PacVim/issues
Support Email:jgannon@do.co

More DigitalOcean Links

DigitalOcean Community

Developers supporting developers

Ask a Question

Ask anything related to system administration, programming, devops, open source, or the DigitalOcean platform.

List your 1-Click App in the DigitalOcean Marketplace

Partner with us to build traction for your open source project or software company