[Unity] Meditation app

Table of Contents

  1. Introduction
  2. Project Structure
  3. Scripts
  4. Credit

1. Introduction

As I was browsing through guided meditation apps, I didn't find one that would be as interactive as I hoped. Until, I played a famous game called Celeste. At one point of the game, a character tries to calm down the Player by breathing in and out on cue:

This is a personal project to create a guided meditation application using the Unity engine. Most of the visuals were created from UI elements:

The application can be used only via mouse clicks or touch controls. Which makes it perfect for PC, Mobile and Web.

2. Project Structure

Simple project structure for a simple application.

Assets
    Audio
          sfx
    Prefabs
          Managers
          UI
    Resources // Mainly for IAP
    Scenes
    Script
          Game
          Managers
          UI
          Utils
    Sprites

3. Scripts

Game folder

Let's start with the Game folder. This contains scripts related to gameplay (behaviour):

  • Feather movement
  • Guiding box movement
  • Particle movement in the background
  • Meditation breathing configs

Managers folder

The managers folder is for controllers. It contains backend code for dictating how the game will communicate with every other aspect of the application.

UI folder

Mainly code for UI related components. Generally contains Helper scripts that facilitates controlling UI elements.

Utils folder

This will contain helper scripts ranging from enums, to generic design patterns. Basically to facilitate coding.

4. Credit

Application was created by me, Shifat Khan.

Assets used:

  • UI icons are from Google fonts with Open Source license.
  • Feather drawn on Aesprite by me.