Game Design
Welcome to my first devlog of this game. This is how I was able to make this game.
Let's start from the beginning. I made a prototype with five lines of code.
score = 0
while True:
click = input("Press enter to get a point.")
print(click)
score = score + 1
This code just resets the score to zero every time the project starts, and whenever you press enter, you get a point. There were two problems with this code though. First, you can just hold the enter key and get points, and second, you don't know your score. I fixed the first bug by making the player type "1", and then press enter. I fixed the second bug by saying "You have" the number of points you have, and "points." The problem was I cannot combine a string with an integer, and when I made this, I didn't know about the str() command, so I made it say "Score:" on another line, and your score on another line. That was the basics of the game done.
Next, I added upgrades. I wanted to make the upgrades simple, so every 500 points you can get an upgrade. My first option was making the player say "Upgrade", and you lose 500 points. I made a new variable called level to keep track of how many upgrades, and every time you say "Upgrade", it will change the level by one. Instead of making the score change by one each time, I made it change by the level, and I made the level reset to 1 every time the project starts. The problem was me not knowing about the str() command, so I just made it so it changes automatically, but that means you cannot get more than 500 points. I made the decision to have you say "500" to upgrade. I also made it so that if you don't have more than or equal to 500 points, you can't upgrade. Those were the upgrades done.
Finally, I added some finishing touches. I added a feature that you can type "-1" to minus points. This is also based on your level. I also added an option that if you type a different number other than "1", "-1", or "500", it will say you don't have enough points.
Leave a comment
Log in with itch.io to leave a comment.