a Roguelike in Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mdonle@gmail.com

    a Roguelike in Python

    Seeing the 7DRL start up recently, i wanted to see what one was made
    of. Python is the language i'm most familiar with so i searched for
    some code to look at, but i couldn't find any. Can anyone direct me to
    the right place?

    I did some searching on what it would take to write a roguelike in
    python and it looked like the curses module would work perfectly, but
    it looks to me like it doesn't work in windows? I tried to import it
    and it says 'No Module named _curses'

    Sorry if all this sounds a bit noobish, it's only cause i am.
  • Gustavo DiPietro

    #2
    Re: a Roguelike in Python

    Mdonle@gmail.co m ha scritto:
    Seeing the 7DRL start up recently, i wanted to see what one was made
    of. Python is the language i'm most familiar with so i searched for
    some code to look at, but i couldn't find any. Can anyone direct me to
    the right place?
    >
    I did some searching on what it would take to write a roguelike in
    python and it looked like the curses module would work perfectly, but
    it looks to me like it doesn't work in windows? I tried to import it
    and it says 'No Module named _curses'
    >
    Sorry if all this sounds a bit noobish, it's only cause i am.
    i made some pythonesque RL experiments myself. what you have
    preinstalled is a wrapper for the actual library (that you need to
    download saperately here http://adamv.com/dev/python/curses/ ).
    iirc, just unzip & paste in your python/curses directory under Lib

    Comment

    • Carl Banks

      #3
      Re: a Roguelike in Python

      On Mar 12, 9:25 am, Mdo...@gmail.co m wrote:
      Seeing the 7DRL start up recently, i wanted to see what one was made
      of. Python is the language i'm most familiar with so i searched for
      some code to look at, but i couldn't find any. Can anyone direct me to
      the right place?
      >
      I did some searching on what it would take to write a roguelike in
      python and it looked like the curses module would work perfectly, but
      it looks to me like it doesn't work in windows? I tried to import it
      and it says 'No Module named _curses'
      >
      Sorry if all this sounds a bit noobish, it's only cause i am.
      Correct, curses is not provided on the Windows platform. I recall
      that there were some third party attempts to implement curses
      functionality on Windows; try Googling for it.

      Even though it's typically used for graphical games, PyGame would be a
      good way to make a cross-platform "text-mode" game. It should be
      pretty straightforward to simulate a text mode terminal using a grid
      of sprites. (There might even be some third-party text terminals out
      there.)


      Carl Banks

      Comment

      • andrei.avk@gmail.com

        #4
        Re: a Roguelike in Python

        On Mar 12, 8:25 am, Mdo...@gmail.co m wrote:
        Seeing the 7DRL start up recently, i wanted to see what one was made
        of. Python is the language i'm most familiar with so i searched for
        some code to look at, but i couldn't find any. Can anyone direct me to
        the right place?
        >
        I did some searching on what it would take to write a roguelike in
        python and it looked like the curses module would work perfectly, but
        it looks to me like it doesn't work in windows? I tried to import it
        and it says 'No Module named _curses'
        >
        Sorry if all this sounds a bit noobish, it's only cause i am.
        I made a very small basic roguelike, except that in it you control
        the monsters instead of the hero. It uses curses so no worky in
        windows.
        Here:



        I later modified this game to control the hero and sometimes to ask
        you multiple-choice questions from biology and other fields of
        knowledge,
        and based on your right/wrong answer it either makes a Hit for your HP
        or gives you a small reward. If there's interest i can post that
        updated
        game too. Both are kind of buggy though.. -ak

        Comment

        Working...