[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Can the pygame infrastructure be used for non-graphical text-mode games?
- To: <pygame-users@xxxxxxxx>
- Subject: [pygame] Can the pygame infrastructure be used for non-graphical text-mode games?
- From: <pjfarley3@xxxxxxxxxxxxx>
- Date: Wed, 17 Jun 2020 20:40:15 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 17 Jun 2020 20:40:20 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=earthlink.net; s=dk12062016; t=1592440817; bh=9YHzU/iN+mooso4pdUXuyD+8/6dYzlFMH9/v 6wxUTtY=; h=Received:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index: Content-Language:X-ELNK-Trace:X-Originating-IP; b=hFGDb3ByWjv5J2lZ D89TfUfUxsxKI3HOynlVo8Aufb8BgA7MY5BatZGVLmrBkh9SPjwgY059HKZD5tYPCOj IOIokAXilW0+w2uXGnW53SBFH32QnahojoDZ+COalHf/K30pmS96yn9KNFijAE/0awx xZR/SjNBFBuHbZWqJk/+QqlJ8xSDqUeNI+7OEXPHiorTnLtyitjVxbaMpo+hT2t3gmp L9vUl7JqH3hr09Z7tAVygRYT93VsPqgbt9sjjaUWTLmhYG+vtphqN2NCR8QXqYmvWkA 8OacDgJs+dwRW8jyKxGEEShSiZ5KuaQqVoyzCgTK5Vk8p2WHvewlHjgArA==
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk12062016; d=earthlink.net; b=D+Va2r/WfhTe/KD8AuItK5rdVxVDPa7dyldhkflRpW95/m15mzKMRCtZpkM37hAcsf5EI37Hp5BcP1qeDa3bqI75/aTD6AWTiaBAtWZxv7mmV9/mcQtr+rCo0aA6diu+zhGhsZJUq0T3WiJUhBQyxarYz+VUuI9+oAEGzpgs77dbR2jO3Zs10R3Yyv50cUFDtwBqd6nX2LE4a0Vhz23d/QXd8/HjB9aunkDeolueuMbLBJwGDXOSlJ9LtRAhZQN3S76oizmRBeCo0Y8IEbxf8oi6l5aW1b+QbxGwHRMK1tVADuAJ++zx6MRKXsXeMO0bueth84iHlOhJ3i+06lbVmw==; h=Received:From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language:X-ELNK-Trace:X-Originating-IP;
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- Thread-index: AdZFCCa0Pjaah7i4R5ikC+S95yHCKw==
A lot of the old "adventure" games and similar game efforts from the very
early days of computing were strictly text-mode games with no graphics used
(or needed) at all.
The old code base for such games wasn't always very well organized or
designed, they just (mostly) worked. I had a thought that updating such a
game's design and structure with more modern design principles and
supporting architecture would be an interesting exercise.
Is it possible to use the pygame infrastructure to implement text-mode-only
games? Without having to pick window sizes and resolutions and set fonts
and font sizes, etc., etc., on a graphical surface?
IOW, can the pygame keyboard input and screen output processes be replaced
with simple python raw_input() and print() calls?
Or am I just looking at the wrong library to use for such games?
TIA for your advice and opinion.
Peter
--