LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-04-2006, 03:30 AM   #1
dudeman41465
Member
 
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, 01:14 PM   #2
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
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:

www.pygame.org

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

Regards!

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


Reply


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 10:56 AM
Problem writing an extension for python! tuxfood Programming 0 01-09-2006 05:06 AM
Rpg slayt12 Linux - Games 3 12-01-2005 12:11 PM
the RPG language nadroj Programming 5 07-09-2005 12:16 AM
RPG Toolkit dtheorem Linux - Software 0 10-26-2003 11:31 PM


All times are GMT -5. The time now is 03:54 AM.

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