Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-04-2006, 04:30 AM   #1
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
Writing my own RPG in Python

I've undertaken the task of writing my own text based RPG with python. Just a random idea I had. It's mainly just a personal project for the fun of it. It's going to be largely text based for now and I'll add a gui later on. For right now the only gui it will have is conversation dialogues, menus and shop windows. Anyway, I can't find it in my book but is there a way to insert pre-existing images into a graphical window? Well that's kind of dum I know there is a way but can somebody tell me how to go about it? It'd be kind of neat if I could like draw an image of a shopkeeper and insert it in the graphical window next to or behind the text. Or an image of the person you are presently speaking to next to the dialogue of what they're saying.

Screenie of a test run of what I managed to get done just last night
Old 05-05-2006, 02:14 PM   #2
Mega Man X
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
This is not a direct answer to your question, more like a hint: I don't know if you know this already, but there's an extension to python called pygame. It wraps the SDL libraries and it was made exactly for that: Game programming. I think this tool would make your life much, much easier. If you later need to add a background music or something to your game, pygame will handle all this. Take a look:

Drawing an image with pygame is really simple as well ^_^. To enter fullscreen mode (which you may want to use on your game) is also piece of cake


Last edited by Mega Man X; 05-05-2006 at 06:50 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
The creation of the best RPG kornerr General 89 08-05-2010 11:56 AM
Problem writing an extension for python! tuxfood Programming 0 01-09-2006 06:06 AM
Rpg slayt12 Linux - Games 3 12-01-2005 01:11 PM
the RPG language nadroj Programming 5 07-09-2005 01:16 AM
RPG Toolkit dtheorem Linux - Software 0 10-27-2003 12:31 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration