DanH
DanH

Reputation: 5818

So I would like to start making my own terminal based game, is this feasible?

Some basic requirements and desires:

Am I proposing something impossible? Is Python up to the task? Will I have trouble with Windows terminal?

I'm not necessarily hellbent on using Python, however I've been learning it for other purposes, so I'd like to "keep it in the family" if at all possible.

Thanks for any insight.

Upvotes: 1

Views: 6771

Answers (3)

Peter Brittain
Peter Brittain

Reputation: 13619

While not a complete solution, I think asciimatics gives you most of the building blocks you need.

  • It is a cross-platform terminal library, proven to work on Windows, OSX and Linux.
  • It is designed to run full screen, handling terminal resizing.
  • It is written in Python.
  • It can be installed simply using pip.

You can get a flavour of the possible visual effects from the gallery, but you might want to download the samples and try the sample called interactive.py to see how the Sprites work with keyboard input.

You'd still have to look elsewhere for the sound and networking. I would hope some of the existing game libraries could help you there.

Oh, and full disclosure here: I wrote the asciimatics package.

Upvotes: 5

x10
x10

Reputation: 3834

In this day and age, it would actually be easier to create a pygame tile-based game and set all its tiles to ASCII symbols, than it would be to create a real in-terminal game.

I advise you to do just that.

Upvotes: 1

Has QUIT--Anony-Mousse
Has QUIT--Anony-Mousse

Reputation: 77474

Getting terminal size in a cross-platform and reliable way is far from trivial (see termcap, curses and such).

Upvotes: 0

Related Questions