Search:

Type: Posts; User: sufthingol

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,363

    There's no way on earth I'm doing 20 * 80 of char...

    There's no way on earth I'm doing 20 * 80 of char file[11]; no ........ing way. Reason is that the array exists for the potential to add a filename...there may be only one tile on the board which...
  2. Replies
    5
    Views
    2,363

    dynamic char array

    char file[11];

    That uses 24 bytes. I am not happy about that when I will be having it in a struct array 20 * 80.

    How do I create a dynamic array that starts of at a minimal size, and then...
  3. Replies
    19
    Views
    2,935

    Eventually in my roguelike game I plan to have...

    Eventually in my roguelike game I plan to have have the game system update the underground board at the same time as the above ground board, so that monsters can come out of a passage from the...
  4. Replies
    19
    Views
    2,935

    bitfield memory question

    struct x_mttype { struct {
    unsigned int type : 5;
    unsigned int locale : 1;
    ...
  5. Replies
    10
    Views
    1,073

    Look, I don't think you can access a variable in...

    Look, I don't think you can access a variable in main from a function called in main; you're gonna have to explain that to me, it's just not makin' any sense.
  6. Replies
    10
    Views
    1,073

    Explain how passing works, if thou dost please.

    Explain how passing works, if thou dost please.
  7. Replies
    10
    Views
    1,073

    You can't really do that in roguelikes. Would not...

    You can't really do that in roguelikes. Would not I have to send a pointer to the object, to the function, though?
  8. Replies
    10
    Views
    1,073

    i still get errors when i add the brackets

    i still get errors when i add the brackets
  9. Replies
    10
    Views
    1,073

    struct access error

    #include <curses.h>

    int s_palettep;
    int s_usflag;
    int s_cposr;
    int s_cposc;

    struct x_mttype { struct { unsigned int type : 5;
    unsigned int obs ...
  10. Replies
    5
    Views
    1,011

    create a continuous loop that does the stuff you...

    create a continuous loop that does the stuff you want and then reads the keypress. there's a function in curses that reads the key without pausing, i believe.
  11. Thread: bit field

    by sufthingol
    Replies
    6
    Views
    2,220

    struct test { unsigned int type : 6; }; ...

    struct test
    {
    unsigned int type : 6;
    };

    how much memory will that use?
  12. Thread: bit field

    by sufthingol
    Replies
    6
    Views
    2,220

    bit field

    struct x_mttype { struct { unsigned int type : 6;
    unsigned int locale : 1;
    unsigned int obs : 1;
    ...
  13. Replies
    0
    Views
    1,926

    Curses-- colour pairs

    #include <curses.h>

    int main(int argc, char *argv[])
    {
    initscr();
    start_color();
    init_pair(1, COLOR_RED, COLOR_BLACK);

    addch(65 | COLOR_PAIR(1));
  14. Replies
    5
    Views
    2,616

    Windows ME -- bloodshed Dev c++

    Windows ME -- bloodshed Dev c++
  15. Replies
    5
    Views
    2,616

    Arrow key reading

    How may I get my program to recognise the arrow keys? I can get ESC key recognised with 27, but there is no ascii number for the arrow keys as I am aware. But there's surely another way to do it.
  16. Replies
    1
    Views
    888

    inputing keys

    #include <curses.h>

    int main(int argc, char *argv[])
    {
    initscr();
    raw();

    int a = getch();

    printf(%d, a);
  17. Thread: linked list

    by sufthingol
    Replies
    1
    Views
    828

    linked list

    can I access a particular element of a list directly, or must I go through the whole list first?
  18. Thread: ANSI output

    by sufthingol
    Replies
    24
    Views
    2,387

    I have found out how to do it. int a = 0; ...

    I have found out how to do it.


    int a = 0;
    do
    {
    addch(a | A_ALTCHARSET);refresh();
    ++a;
    }
    while (a < 256);getch();
  19. Thread: ANSI output

    by sufthingol
    Replies
    24
    Views
    2,387

    Apparently there is a video mode that let's you...

    Apparently there is a video mode that let's you display those glyphs directly. A programmer known as Tim Sweeny did it in his dos program ZZT. I wish I knew how he did it. He was using Pascal btw.
  20. Thread: ANSI output

    by sufthingol
    Replies
    24
    Views
    2,387

    Pianorain: no need to apologise.

    Pianorain: no need to apologise.
  21. Thread: ANSI output

    by sufthingol
    Replies
    24
    Views
    2,387

    Ok...I am using DevvC++ bloodshed and pdcurses...

    Ok...I am using DevvC++ bloodshed and pdcurses from http://gnuwin32.sourceforge.net/packages/pdcurses.htm
  22. Thread: ANSI output

    by sufthingol
    Replies
    24
    Views
    2,387

    1. I am using Win32, not linux, so please if...

    1. I am using Win32, not linux, so please if anyone knows about windows, help me

    2. I very much *do* want to print the characters that I *know* are able to be printed. May I have some help with...
  23. Thread: ANSI output

    by sufthingol
    Replies
    24
    Views
    2,387

    437 codepage ...

    437 codepage

    http://en.wikipedia.org/wiki/Codepage_437

    stop holding back info
  24. Thread: ANSI output

    by sufthingol
    Replies
    24
    Views
    2,387

    Excuse me? How dare you call me arrogant? I...

    Excuse me? How dare you call me arrogant?

    I disagree. I think that with a CERTAIN method (that I don't know) ALL of the chars are printable. I've seen them all printed in the ZZT dos program. In...
  25. Thread: ANSI output

    by sufthingol
    Replies
    24
    Views
    2,387

    Yes they are *blinks* Try ZZT for instance; an...

    Yes they are *blinks*

    Try ZZT for instance; an oop based programming gcs

    So, anone else (not using linux, who knows about the ansi system)?
Results 1 to 25 of 26
Page 1 of 2 1 2