Simple clone for Fallout 3/NV terminal hacking in curses

Josh Bicking 609ca82502 properly ignore binaries пре 8 година
.gitignore 609ca82502 properly ignore binaries пре 8 година
FalloutTerminal.cfg 152ef5622d added key configuration пре 8 година
LICENSE.md dd5fa2b5a0 changed *.md permissions for consistency пре 8 година
Makefile 3b89068109 built windows binary with -static. added flag to Makefile пре 8 година
README.md dd5fa2b5a0 changed *.md permissions for consistency пре 8 година
defaultWords.txt 9923aaf90e added clean for windows. explained defaultWords.txt пре 8 година
getdelim.c fe9216e10c added getline source for Windows build. Updated license accordingly. пре 8 година
getdelim.h fe9216e10c added getline source for Windows build. Updated license accordingly. пре 8 година
getline.c fe9216e10c added getline source for Windows build. Updated license accordingly. пре 8 година
getline.h fe9216e10c added getline source for Windows build. Updated license accordingly. пре 8 година
intro.c 69f1c5a290 cleaned up comments. fixed an allocation bug in setWordArr пре 8 година
intro.h 1e079977b6 move everything to the top for easier access пре 8 година
main.c 84aefcaf6f implemented the file reading in other files пре 8 година
pass.c c4e6deecdf fixed only one word printing, fixed word highlight issue пре 8 година
pass.h 1e079977b6 move everything to the top for easier access пре 8 година
print.c 69f1c5a290 cleaned up comments. fixed an allocation bug in setWordArr пре 8 година
print.h 69f1c5a290 cleaned up comments. fixed an allocation bug in setWordArr пре 8 година
wordParse.c 152ef5622d added key configuration пре 8 година
wordParse.h 152ef5622d added key configuration пре 8 година

README.md

fallout-terminal-clone

What is fallout-terminal-clone?

fallout-terminal-clone is a recreation of the "terminal hacking" system
in Fallout 3 and Fallout: New Vegas developed with curses. It runs directly
in your terminal or command prompt. I made this as a fun and interesting
way to explore C.

Instructions

Use the arrow keys (by default) to move, and ENTER to choose your selected letter. Ctrl-C to quit.

Building

WINDOWS

    Requirements:
    MinGW installed with the following packages:
        - mingw32-gcc
        - mingw32-pdcurses (dev and dll)

    Once the above dependencies are satisfied, simply open
    a command prompt in the source directory and run:
        make

    If you get an error about gcc not being found, you most
    likely didn't add MinGW tools to your path. Either do
    that, or change the line:
CC = gcc
    to read:
CC = C:\MinGW\bin\gcc
    (assuming you installed MinGW in that location)

LINUX

    Requirements:
        - gcc
        - ncurses

    Once the above dependencies are satisfied, simply open
    a terminal in the source directory and run:
        make

OSX

    Requirements:
        Xcode Tools (just run xcode-select --install)

    Once this is finished, simply open
    a terminal in the source directory and run:
        make

TODO list:

Decent looking screen centering
Add a typing animation for the guesses
Possible mouse support?

Bugs:

Fallout 3 and New Vegas don't seem to play well with the launching.

The OSX binary may segfault with error 11. This hasn't happened with the
couple macs I've tested it on, but my friend's mac does it constantly. It
may have something to do with having development xcode tools installed.

Thanks to:

/u/aftli_work for suggesting macros before I knew what they were

I do not own the idea for this game, nor do I claim any ownership of any game of the Fallout series. Those copyrights are the property of Bethesda Softworks.