Find the answer to your Linux question:
Results 1 to 9 of 9
What I want to do is create a game like an old DOS game, but on the debian linux console. I don't know much about linux yet, but I know ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    11

    Programming a game for console


    What I want to do is create a game like an old DOS game, but on the debian linux console. I don't know much about linux yet, but I know C. What would be the best library for doing something like this?

  2. #2
    Linux Newbie
    Join Date
    Mar 2010
    Posts
    152
    Depends on what you really want. If you want a pure console game, the ncurses library is probably what you should go for - there are plenty of tutorials on the web.

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    11
    What about for games like Doom and Castle wolfenstein?

  4. #4
    Linux Newbie
    Join Date
    Mar 2010
    Posts
    152
    SDL provides a fairly complete and cross-platform library for doing general game "stuff" - you can even check out prboom, a complete Doom clone written using it.

  5. #5
    Just Joined!
    Join Date
    Jan 2008
    Posts
    11
    Oh I didn't realize that you could use SDL on the console, thanks.

  6. #6
    Linux Newbie
    Join Date
    Mar 2010
    Posts
    152
    Quote Originally Posted by thatotherguy667 View Post
    Oh I didn't realize that you could use SDL on the console, thanks.
    Erm... what do you mean by "console"? You can't use SDL to display graphics on a terminal emulator, if that's what you mean - but you couldn't display Doom, either...

  7. #7
    Just Joined!
    Join Date
    Jan 2008
    Posts
    11
    I mean like if I press ctrl-alt-F1, that kind of terminal I guess.... Sorry I'm bad at explaining this stuff

  8. #8
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    you couldn't run doom or wolfenstein on those, as they require graphics framebuffer

    if you are running console only, you will need to use something like ncurses as previously suggested

  9. #9
    Just Joined!
    Join Date
    Jan 2010
    Posts
    12
    ncurses will be a great help to you for a game like space invaders

Posting Permissions

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