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

The Beginning

  Coding was always something I was interested in. Introduction I used to be super interested in coding as a kid, because who wouldn't want to make games, create web pages? I obviously signed up for coding tuition when I was around 10, and just could not keep up at all. The teacher was fine, but I guess I just got bored trying to understand and remember the "functions". Recently, I decided to change this, by trying to learn coding again. I still have some basic knowledge for coding, for example loops, conditionals, data types, but other than that, I just forgot everything. After this, I found this incredible website called freecodecamp.org . If you're learning to code, which I think you are doing since you're reading this, you'll probably find this website to be incredibly useful. Other than that, I realized that, "I could probably help some future coding beginners if they saw a blog from a person learning to code." and I set up this blog. I really h...

My First Prototype for my Text-Based CYOA Game in Python!

  I finished it! Introduction Hello there, coders!  I'm so happy to tell you guys, that I have finished the first prototype for my first game! It took around 5 weeks to finish my game, which could've been much lower only if I had been less lazy. By the way, my school has started again, so new posts might be slower, but I will continue uploading! Bug fixing I finished making the endings quite swiftly. It was just if statements. It wasn't really that hard. The hard part came, when I realized that my old enemy, being-able-to-choose-one-choice-again-and-again came back, and I had to get back to work. I tried fixing it manually, but then I decided to kill two birds with one stone, and made a function to optimize my code! This made me go down yet another rabbit hole. Functions If you can recall, functions are basically code that executes multiple lines of code.  There are also many functions built into Python itself. Functions, to me right now, are a bit tricky, as we can put v...