Inspiration
The inspiration behind creating this environmental and educational game came from witnessing the negative impacts of pollution on the environment. This experience motivated me to raise awareness and make a positive change through an engaging platform. Combining my passion for game development and environmental advocacy, I decided to create a game that would entertain players while educating them about the harmful effects of pollution. By immersing players in various locations and allowing them to make impactful choices, the game aims to encourage reflection and inspire real-life actions. The goal is to provide an enjoyable and educational experience that promotes environmental consciousness and empowers players to contribute to the preservation of our planet.
What it does
The game is designed to be a recreational and educational tool that combines entertainment with environmental advocacy, one can reflect on their environmental behaviour and learn more about the effects of different types of pollution.
Target Audience
The game's narrative and gameplay mechanics are designed to appeal to a broad age range, from teenagers to adults as environmental awareness and action are relevant to people of all ages. It aims to provide players with a captivating and educational experience, promoting environmental consciousness and inspiring positive action. By combining engaging gameplay, a compelling storyline, and immersive visuals, the game offers a unique and impactful journey that encourages players to reflect on the state of the environment and their role in preserving it all while learning more about the harmful effects of pollution and how you can help stop it
How it Works
It starts with a welcoming message and an introduction to the game's objective, followed by a menu of different locations the player can visit. The narrative sets the stage for an environmental-themed adventure, capturing the player's attention from the start, while the delayed output enhances the narrative experience. After selecting a location, the player receives a description and an interactive narrative, where their choices impact the game's outcomes. The code ensures that the player's input is valid and handles errors gracefully. As the player progresses, the code updates the pollution level and provides feedback. Once all locations have been visited, the game concludes with a summary of the player's actions and the final pollution level.
How I built it
I incorporated Variables to store and manipulate data throughout the game. They were used to track of the players score or the pollution level. Conditionals were also used such as if-else and switch statements, are employed to make decisions based on certain conditions. For instance, a conditional statement can determine whether a player's choice leads to a positive or negative outcome, affecting the narrative direction. Loops, such as for and while loops, were used to create game loops that continuously update the game state, handle user input, and display relevant information. Functions in the game code provide modular and reusable blocks of code that perform specific tasks. Arrays are used to store collections of related data in the game code which can be seen in the such as in the introduction and where you choose your locations form. Structures, also known as classes or objects, are employed to represent complex entities in the game code. Location structure allows for a modular and flexible approach in defining and managing different locations in a game, associating each location with its unique name and a function to execute when visited. Recursion is used in the game code to create repetitive tasks that call themselves. For instance, a recursive function can be used to explore different narrative paths or simulate complex interactions. Commands in the standard library were also used to include input/output operations.
Challenges we ran into
Game design complexity
Designing an engaging and educational game can be a challenging task. Balancing the gameplay mechanics, narrative, and educational content while ensuring the game remains enjoyable and informative can require careful planning and iteration.
Creating the Pollution Level
Developing a system to represent pollution levels in the game was a significant challenge. Initially the pollution levels wouldn't show, or they wouldn't be adding or subtracting correctly so it took a bit of fine tuning to fix that.
ASCII Art
Incorporating ASCII art into the game was both a creative and technical challenge. Finding visually appealing and detailed artwork using only text characters required a lot of time. It also took time and creative thinking to effectively represent the game's environment, characters, and objects using ASCII art.
Implementing Music
Integrating music into the game was another challenge I faced. Finding suitable music that aligned with the game's theme and engaged players proved to be a meticulous process. Additionally, implementing the music system in my repl proved to be difficult as it is something I have never done before.
What's next for Pollution Adventure
Adding SFML graphics and audio to further enhance the user experience By integrating SFML graphics and audio, Pollution Adventure can be elevated from a purely informational and educational game to an interactive and visually appealing experience. The enhanced user experience will not only make the game more enjoyable but also reinforce the educational message about the importance of combating pollution and preserving the environment.
Built With
- c++
- replit
Log in or sign up for Devpost to join the conversation.