Skip to main content

Posts

Showing posts from June, 2024

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 var