Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 3.37 KB

README.md

File metadata and controls

49 lines (41 loc) · 3.37 KB

A Persuasive Game to Prevent Sedentarism

A persuasive game to prevent sedentary behaviour, built for Android using Android SDK and Unity game engine. The app gamifies your daily walking activity while also allowing users to create and compete in various challenges. The app was built as a project during the Mitacs Globalink Research Internship at Dalhousie University in Halifax, Canada.

TreeCare uses the metaphor of a flourishing tree with green leaves and fruits to represent someone who is physically active. In the context of this app, a person is physically active if he/she walks or runs daily. If a person does so regularly, he gets more leaves and fruits on the tree, while a tree with no leaf and fruit means zero activity. An empty tree is the default tree.

Screenshots

Download APK Download APK Download APK Download APK Download APK Download APK

Technologies Used

  • Unity Game Development Engine for developing the tree screen
  • Kotlin as the main programming language
  • MVVM Architecture using Android Architecture Components
  • Google Fit API for getting step count data of the user
  • LiveData, ViewModel
  • Navigation Components for easy navigation in the app
  • Glide image loading library
  • Lottie for adding animations
  • Gson for serializing and deserializing objects
  • Material Components for implementing the new material design
  • Koin for Dependency Injection
  • WorkManager for periodic background tasks
  • Coroutines in coordination with WorkManager
  • Firebase Authentication for Google Sign-In
  • Cloud Firestore as the No-SQL database
  • Firebase Cloud Functions for syncing data across users in the databse
  • Cron Job for triggering cloud functions at a fixed time
  • Firebase Cloud Messaging for push notifications

Game Modes

To make the game engaging and fun, three modes are provided:

1. Starter mode

2. Challenger Mode

3. Tournament Mode

PS: The Tournament Mode is still under development. In the current version, the game only has starter mode and challenger mode.