Inspiration
My inspiration for Digital Detox is what I've seen in many teenagers today, which is addiction to their phones. I've seen people have 7, 8, or even higher amounts of screen time every day, which can't be healthy for any person. I've also seen that in today's world many people still don't understand the effects that the emission of greenhouse gases and global warming is doing to our world. I frequently see people littering and using an excessive amount of plastic bags. These things made me realize that the world needs a way to find new information about climate change and understand how much they are using their phones, which is exactly what Digital Detox is for.
What it does
Digital Detox is an app that makes staying away from your phone and learning about sustainable products easy and fun. The main function of the app is to create a timer where the user stays away from their phone. The longer they stay away from their phone, the more money they get. As soon as they break their Detox, they lose money. This creates an incentive for people to commit to their Detox and stay offline. With the money, people can buy sustainable development items, like solar panels and wind turbines. With these, they get more money the next time they detox and they save more air from polluting. The whole game aspect for the user to save as much air as possible, which is done by buying sustainable items from doing a Digital Detox.
How we built it
I built Digital Detox using Swift, which is an intuitive and visual programming language. I used Swift Storyboard to setup the UI Elements using margins and padding. I used an object called UserDefaults to store user values like money and items owned. UserDefaults works similar to cookies where it is a key-value pair. To create the timer, I used the Timer() object provided by Swift. The rest of the programming was done using basic math and programming.
Challenges we ran into
One challenge I ran into was how to store all of the info about the many sustainable items. At the end, I created a huge 2D list filled with info about every item and this made all of my code more organized and simple to create.
Accomplishments that we're proud of
An accomplishment I am proud of is making a game that attracts users while still providing them uselessness and productivity in the way where they learn about the environment and preventing screen usage.
What we learned
With Digital Detox, I learned more about the environment than I could ever imagine including things like Biomass, which literally takes trash and makes it into energy! Like this, I learned a thousand other things about the environment and the future of energy that I was very happy to know.
What's next for Digital Detox
Digital Detox is still in its beta and I will for sure add many more items and include information pertaining to the items and how they work in the real world (ex. Solar Roofs). I am really interested in creating more items because I will get to learn more about the environment as well as explain to users about the environment.
Log in or sign up for Devpost to join the conversation.