Skip to main content

A Complete Overhaul of My Text-Based CYOA Game in Python!

 

Everything changed.

Introduction

Hello there, coders! Today, I'm going to be sharing my experiences with planning and coding a text-based CYOA game in Python!
The Overhaul

I overhauled everything. Why?

Well, it all started when I felt some doubt about my game.

I felt like everything was going alright, when I took a closer look, and saw that there was no CYOA elements in it whatsoever! 

The problem with it, was the fact that you chose 4 items in the beginning, and the story unfolds right in front of your eyes.

There was only one single choice in the entire game.

This was why I started version 2, where the player wouldn't choose any items in the beginning and make the choices inside of the haunted mansion.

When I got into writing the story, I just kept overcomplicating it with souls, and arrogant mansion owners, that I just decided to scrap it completely.

There was also a version 3 but I completely forgot about it.

I think I scrapped it since there were just too many choices to code.

After all of this, I discovered a few things that needed to happen for me and probably the player to feel satisfied.

1. It needs to be a small game, but not too small
2. There must be choices in the game.
3. Lore is too complicated for a first game.

The final version (hopefully), was version 4. This one, was my saving grace!
Version 4

Version 4 included a few things.

I'll run through the basic story first. 

The story was that you were an 11 year old trying to explore a mansion together with your big strong friend. You explore 3 settings and you reach a small final boss fight, (it's just a choice, and the boss name is Handrick Wilmar) for you to reach an ending!

The story so far is very boring, since you just choose slightly random things, but the conversations with your friend Garfield changes with the endings the player's heading for, so there's a bit of story telling!

The Code

I actually managed to optimize the 'inputting the name and confirming the name' code which I was really proud of!

I also got started on the story, but honestly, the game just feels like print statements and if statements.

That's the first game you make for ya!

Python code for asking the user for a name and confirming it.
Python code for welcoming the player and basic story.
Final code in Python.

That's the basic code for inputting the name, confirming the name, and the introduction to the story!


That's the beginning for the first story!

Conclusion

Today, I talked about my experience with creating multiple scripts and stories for a CYOA game in Python! I think things are going to go well from now on! (I hope)

and with that,
signing off,
stewie











Comments

  1. il granito Patagonia, grazie alla sua resistenza ad usura ed urti รจ usato principalmente in ambienti interni.

    ReplyDelete

Post a Comment

Popular posts from this blog

What are Strings? A Beginner's Guide Into Programming Strings in Python

  What is the meaning of a string in coding? Introduction Hello there, coders! This was definitely one of the weirdest concepts I had to understand when I was learning to code.  It is so simple, but I spent an entire evening understand strings! It was ver y embarrassing , but at least I know now!  To hopefully regain my pride, I'm going to explain what strings are in programming as a beginner. What even are strings? Strings are data that you can print out. It's basically text. You might be confused if 9 is a string or an integer (number), but you can just change it! You can type in your code editor to turn a certain variable or a number into a string, in our case 9, by using the str() function. You can put anything in there and it will turn into something you can print out! You can't perform math on the string '9' though. My Experience Aside from the usual data types, I was a bit stumped when I reached the string functions. There were just so many string functions, ...

One Third Finished in my Text-Based CYOA Python Game!

  I am so shameful. Introduction Hello there, coders! First of all, I'd like to say sorry for my delay. I've been figuring out the google search console thing, and all my time's been taken because of that. Anyway, today, I'll share you all my experience making a CYOA game in Python.  In short, lots of conditionals, AI, and bugs. Ignorance I started working on it, and I felt amazing.  Sure, there were a few bugs, but nothing too frustrating to get rid of. I finished coding the entire first 'Lobby Part' in just a day! Then, my laziness started to pop up again. This was really starting to be a problem.  Couple that together with the fact that I was just starting to figure out Google Search Console, was time-consuming. This was when things started to go downhill. Debugging I came back to this, TWO WEEKS LATER!!! That's really concerning. Anyway, I got back to work on playtesting, and started noticing huge problems. Firstly, I was limiting the player's choice...