Subscribe via RSS Become a friend on Facebook Follow me on Twitter

Cymons Games

TAWS6

January 1st, 2010

TAWS version 6 is a towlr game, meaning a game that is likely to frustrate you before you find its solution, if you ever do. As a towlr game anything more given by way of instruction would be a disservice to the game. Pay close attention to how the game reacts to what you type, but if the game’s subtleties prove too much, you can always leverage your advantage.

By the power of source code!

TAWS 6 is written by Entar.

3 Responses to “TAWS6”

  1. Ratfink

    This uses a Windows-specific library for it’s graphics rendering. However, I found a Linux port of it and almost have it able to compile properly. But when I run it, no text is drawn to the screen unless I hit ^C, and of course that forces the game to quit and the text STILL isn’t shown properly. This is quite disappointing, as I’m really enjoying playing other towlr games. I also notice that it uses gets(), which AFAIK should not be used as it is highly insecure.


  2. gindrinker

    I modified it for osX, using ncurses, but didn’t really spend any time doing it so it could be better. These steps would work for linux or BSD…

    Heres’ what I did:

    1. remove conio, replace with ncurses.
    2. remove the kbhit portions and replace with getch() calls.
    Basically, all you’re doing here is waiting for a key, so I just used a simple ‘wait for a key’ routine (:
    3. Replaced gets with a secure one, which I just googled for and pasted it in.

    Then it compiled, and I’m off solving it.

    seriously posting my version of the source isn’t going to help much – I just did the things above. Oh, and used g++ and linked with ncurses, like:

    g++ -o tawsv6 -lncurses tawsv6.cpp

    at first I was just using gcc and it was giving me errors. I probably should not have had a glass of gin before doing this (:

    Oh what the heck here’s a diff. Don’t complain about the code being lame I already said I didn’t spend much time on it and googled the replacement gets code (:
    ===cut here===
    4c4,5
    < #include

    > //#include
    > #include
    110a112,127
    > char *sgets(char *line, size_t size)
    > {
    > size_t i;
    > for ( i = 0; i {
    > int ch = fgetc(stdin);
    > if ( ch == ‘\n’ || ch == EOF )
    > {
    > break;
    > }
    > line[i] = ch;
    > }
    > line[i] = ”;
    > return line;
    > }
    >
    127,131c144,145
    < while (1)
    < {
    < if (_kbhit())
    < {
    while (1) {
    > getch();
    134d147
    < }
    140c153
    sgets(input,sizeof input);
    154c167
    if (getch())

    ===


  3. Joe

    I don’t think PDCurses was necessary, and I think you’re ending up with something between normal C and PDCurses. But good job getting it to work. One day I’ll have to look at making some changes myself.


Leave a Reply

Cymons Games. All programs provided without guarantee or warranty. Maintained by Joseph Larson.
If you have any questions or notice something is wrong please contact me. Powered by WordPress.