Skip to content

Small command-line game of not touching the walls

License

Notifications You must be signed in to change notification settings

harrinp/WalledIn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Walled In

Retro command line game of not touching the walls. Great for wasting time at work! Appearance is fully customizable through command line arguments, see below.

Show-off video

Install

    git clone https://github.com/harrinp/WalledIn.git
    cd WalledIn
    make install

Default install location is usr/local/bin

Reinstall

make clean
make install

Change Default Configuration

Open Config.h in your editor of choice and change any of the defaults, there are directions inside. Then install/reinstall. You must reinstall to apply changes in the Config file, recloning the project will overwrite your Config.h.

Walled In may switch to a dynamic config file in the future, but at the moment there aren't really enough defaults that need to be set for me to justify making one. I tend to err on the side of putting less files on a users computer.

Directions

Launch by typing walledin

Control with WASD

You get more points the further up you are on screen

Try not to hit the walls

Details

Fully implemented in c

Colors differ depending on your terminal and preferences

Command Line Arguments

 -h            --> help
 -cw arg1 arg2 --> Set color of walls (Foreground) (Background)
 -cp arg1 arg2 --> Set color of player (Foreground) (Background)
                -> Available color arguments: RED, BLACK, WHITE, GREEN, MAGENTA, CYAN, BLUE, NOCOLOR
 -ncp          --> Shortcut to not color player
 -ncw          --> Shortcut to not color wall
 --nocolor     --> Don't color anything (terminal defaults used)
 -nc           --> Shortcut to not color anything

 -p arg1       --> Change the character that the player is displayed as. Limit 1 character
 -w arg1       --> Change the character that the inside of the walls are displayed as. Default is . Limit 1 character
 -t arg1       --> Change the number of tunnels that will exist at any time. Limit 100

 --nocollision --> Turn off collision mechanics, game runs until you quit
 -ncol         --> Shortcut to no collision

Example Configurations

Args : walledin Picture 1

Args : walledin -cpn -cw WHITE PINK -w + -p I -t 3 Picture 2

For extra challenge you can not color the background and use no character in the walls. Args : walledin -cp BLUE NOCOLOR -cw CYAN NOCOLOR Picture 3