First week of programming: Making a text adventure game
|
The programming course has begun. Since I already know most things taught in class, I decide to brush up on the subject in my own way. This is my text adventure game. It doesn’t have a name and is still a work in progress, but it works! The main features I use in the game is switch statements, which looks at where the player wants to go and sends him/her on their way to that part. The second feature I use is the if statements, which triggers at certain choices if the player has visited other locations. It’s a simple game with simple code. It’s not the most optimized and there are a lot of manual edge cases. But that’s where the next part comes in. I’ll keep this going throughout the weeks, adding new things every week. See you next week! |