Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Develop a roguelike from scratch

  1. #11
    Join Date
    Mar 2008
    Posts
    109

    Default

    Quote Originally Posted by mike3 View Post
    Does this mean that I should use C++ instead of C for programming a Rogue-like game? Because I've got some code for one I was trying to make and it's all in C. And can one use OpenGL even without "graphical" tiles (but just "ASCII"-like characters)? And do those rendering tricks require additional programming? If so, where could I find out more about doing them?

    Also, how and where could I find out more about how to use this "event based architecture", esp. in the context of a Rogue-like game?
    Any answer? *bump*

  2. #12
    Join Date
    Aug 2008
    Posts
    8

    Default

    For OpenGL and text output look here

    http://nehe.gamedev.net/data/lessons....asp?lesson=13

  3. #13
    Join Date
    Mar 2008
    Posts
    109

    Default

    Quote Originally Posted by Sentinel View Post
    For OpenGL and text output look here

    http://nehe.gamedev.net/data/lessons....asp?lesson=13
    What about the backbuffered drawing/"shifting" display?

    And as I mentioned, should I wholly toss out that code that I had because it's not C++?

    Also, what about something on how to make this "event-driven" architecture, in the context of a Rogue-like game?

  4. #14
    Join Date
    Aug 2008
    Posts
    8

    Default

    Look, if you want to use something like OpenGL for rendering characters then prepare for :
    * rewriting your game from scratch because of this windows event driven architecture thing
    * problems with detecting the right key from keyboard buffer
    * problems with drawing font texture on some older gfx cards
    * problems with portability to other systems like linux, mac etc (if you wanted to do so)

    You can choose the path of insanity, or use one of the solutions like :
    * TINYCURSES : http://code.google.com/p/tinycurses/
    * LIBTCOD library : http://doryen.eptalys.net/libtcod/
    * SDL : http://www.libsdl.org/

    But if i were you, then i would choose simple PDCurses or something like that.
    (PDCurses is in windows only a wrapper to some windows console functions).

    PS : I use C and something borrowed from C++. Programming in CodeLite IDE.

  5. #15
    Join Date
    Mar 2008
    Posts
    109

    Default

    Quote Originally Posted by Sentinel View Post
    Look, if you want to use something like OpenGL for rendering characters then prepare for :
    * rewriting your game from scratch because of this windows event driven architecture thing
    * problems with detecting the right key from keyboard buffer
    * problems with drawing font texture on some older gfx cards
    * problems with portability to other systems like linux, mac etc (if you wanted to do so)

    You can choose the path of insanity, or use one of the solutions like :
    * TINYCURSES : http://code.google.com/p/tinycurses/
    * LIBTCOD library : http://doryen.eptalys.net/libtcod/
    * SDL : http://www.libsdl.org/

    But if i were you, then i would choose simple PDCurses or something like that.
    (PDCurses is in windows only a wrapper to some windows console functions).

    PS : I use C and something borrowed from C++. Programming in CodeLite IDE.
    I suppose. However "Ter13" seemed to suggest OpenGL had some advantage.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •