[Code] Ren'py Text Adventure

Post demo and beta versions of your game here for testing.
Post Reply
Message
Author
User avatar
DaBackpack
Newbie
Posts: 8
Joined: Tue Mar 29, 2016 10:25 pm
Tumblr: dabackpack
Github: dabackpack
Skype: dabackpack
Contact:

[Code] Ren'py Text Adventure

#1 Post by DaBackpack » Thu Sep 22, 2016 10:00 pm

EDIT 10/28/2017: If you want to try the game, you will need to add this font to the "game" directory: http://ufonts.com/download/terminal/90245.html .

Hi all,

I am making a text-adventure game in Ren'py (you know, like ZORK) and wanted to share my code with everyone. I have thus open-sourced my Ren'py Text Adventure "engine" (if you can call it that) to help people that might one day want to do the same thing. I personally like this instead of using an actual text adventure engine because it still gives you Ren'py functionality and lets you mix in visual/sound elements fairly easily. The process for allowing the input -> output cycle is nontrivial so I see benefit to sharing this with everyone.

(I'm actually rather new to Ren'py so I can't guarantee I took the 'best path' to accomplish the goal, but it works and there's room for flexibility depending on your specific needs)

https://github.com/DaBackpack/Ren-py-Text-Adventure

My purpose for this is twofold:
1) To release the code I used for this task to the public, and
2) Demo an actual game I am making with this code.

I hope somebody out there is able to benefit from this :D
Or, at least, enjoy the demo!

(I hope this is in the right section! My game is a demo)

Image

Image

Image
Last edited by DaBackpack on Sat Oct 28, 2017 10:07 pm, edited 2 times in total.

User avatar
Karl_C
Regular
Posts: 189
Joined: Sun Mar 31, 2013 6:18 am
Contact:

Re: [Code] Ren'py Text Adventure

#2 Post by Karl_C » Sat Oct 08, 2016 4:07 pm

Very interesting. Tanks for sharing the (very well documented) code.
DaBackpack wrote:I personally like this instead of using an actual text adventure engine because it still gives you Ren'py functionality and lets you mix in visual/sound elements fairly easily.
I guess with your engine it should be possible to code something like Code 7 with Ren'py?

User avatar
Imperf3kt
Eileen-Class Veteran
Posts: 1951
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: [Code] Ren'py Text Adventure

#3 Post by Imperf3kt » Thu Jan 12, 2017 3:18 am

This is a nice demo. I can see this being expanded upon to make some interesting text-adventure games.

for anyone wondering, just installing this font should be all you need to get it to work:
http://ufonts.com/download/terminal/90245.html
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

User avatar
DaBackpack
Newbie
Posts: 8
Joined: Tue Mar 29, 2016 10:25 pm
Tumblr: dabackpack
Github: dabackpack
Skype: dabackpack
Contact:

Re: [Code] Ren'py Text Adventure

#4 Post by DaBackpack » Sat Oct 28, 2017 10:03 pm

Karl_C wrote:
Sat Oct 08, 2016 4:07 pm
Very interesting. Tanks for sharing the (very well documented) code.
DaBackpack wrote:I personally like this instead of using an actual text adventure engine because it still gives you Ren'py functionality and lets you mix in visual/sound elements fairly easily.
I guess with your engine it should be possible to code something like Code 7 with Ren'py?
Sorry for late response. Yep! I believe Code 7 is written in Unity, and I can make some guesses as to how they did it. It looks cool! Unity has a somewhat steep learning curve compared to Ren'py, so I hope someday somebody finds use in this project.
Imperf3kt wrote:
Thu Jan 12, 2017 3:18 am
This is a nice demo. I can see this being expanded upon to make some interesting text-adventure games.

for anyone wondering, just installing this font should be all you need to get it to work:
http://ufonts.com/download/terminal/90245.html
Thanks! And thank you for posting the link. I didn't include those source files in the repository for licensing reasons. I'll update the OP with this info to make it easier.

One of these days I'll continue this project and try to make the text engine layer easier to understand for developers. Stay tuned!

User avatar
Imperf3kt
Eileen-Class Veteran
Posts: 1951
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: [Code] Ren'py Text Adventure

#5 Post by Imperf3kt » Sun Oct 29, 2017 8:55 am

Might want to test this in thelatest stable ren'py - you can't use it anymore (at least I can't) because commands require two or more words (look at door, etc) but as soon as you press space, renpy inputs the command and the game tells me to specify what to "look" at or such.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Post Reply

Who is online

Users browsing this forum: No registered users