Skip to content

Harmony Blocks is a project aimed at helping people relax and focus through simple, engaging gameplay. It was inspired by psychological research on how games can positively impact mental well-being, and it's designed for anyone seeking a moment of calm.

Notifications You must be signed in to change notification settings

C-Jeril/harmonyblocks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Harmony Blocks

tg12: Harmony Blocks is a personal project that aims to help people relax and focus through simple, fun games. It is inspired by psychological research on how games can have a positive impact on mental health, and it is designed for anyone looking for a moment of calm.

Alex: Based on the needs of the project, I adapted the code from python to nextjs14, and then combined our considerations of positive psychology and game design to add some experience and functions. Welcome to download and experience it.

How to Run

  1. Clone the repository:

    git clone https://github.com/tg12/harmonyblocks.git
  2. Navigate into the directory:

    cd harmony-blocks
  3. Install the required dependencies: Make sure you have pygame installed. If not, install it with:

    pip install pygame
  4. Run the game:

    python harmony_blocks.py

What is Harmony Blocks?

Harmony Blocks is a simple game where players align falling shapes with outlines at the bottom of the screen. The game is designed to promote focus and relaxation by gradually increasing the challenge, without overwhelming the player.

Key Features:

  • Relaxing visuals, with soft colors and a gradient background.
  • Positive feedback in the form of encouraging messages.
  • Adaptive difficulty, making it engaging but never stressful.

Why Was This Created?

As a personal project, Harmony Blocks was inspired by research into the therapeutic effects of simple, engaging games. I wanted to explore how games could help reduce stress and anxiety while providing a sense of focus.

Who Is It For?

  • Anyone needing a mental break: The game is designed to help players take a moment to relax and reset, especially if they are dealing with stress or want to focus.
  • Individuals seeking calming experiences: With its soft color palette and non-punitive feedback, it's perfect for those looking for an easy, calming activity.
  • People interested in the psychological effects of games: Harmony Blocks is grounded in research on how certain types of tasks can help calm the mind and reduce intrusive thoughts.

Psychology Behind the Game

1. Visuospatial Cognitive Engagement

The game requires players to align falling shapes with outlines, which engages the visuospatial processing part of the brain. Research has shown that tasks requiring spatial awareness can help distract from negative thoughts and reduce mental fatigue.

Reference: Holmes et al. (2009), "Can playing the computer game 'Tetris' reduce the build-up of flashbacks for trauma?" Link

2. Flow State and Focus

Harmony Blocks aims to help players achieve a "flow state"—a mental state where one is fully immersed in the task at hand. Games like this, with simple goals and adaptive difficulty, are particularly good at inducing flow, which in turn helps improve focus and reduces stress.

Reference: Csikszentmihalyi (1990), "Flow: The psychology of optimal experience." Link

3. Color Psychology

The use of soothing colors like blues and greens has been shown to evoke feelings of calmness. Harmony Blocks uses these colors in its design to help create a serene atmosphere and promote relaxation.

Reference: Wexner (1954), "The degree to which colors (hues) are associated with mood-tones." Link

4. Positive Reinforcement

Instead of punishing mistakes, the game provides positive feedback and encouragement for aligning shapes correctly. This positive reinforcement helps maintain a relaxed mental state and encourages continued play without anxiety.

Reference: Skinner (1953), "Science and Human Behavior."


Future Development

This is an evolving personal project, and I’m experimenting with ways to further incorporate psychological principles into the design.


Feel free to clone the repo, play the game, and modify it if you like. I’d love to hear your thoughts and suggestions!


License

This project is licensed under the MIT License.


Acknowledgments

  • Research and Psychology: Special thanks to the academic work that informed the psychological foundations of this project.

About

Harmony Blocks is a project aimed at helping people relax and focus through simple, engaging gameplay. It was inspired by psychological research on how games can positively impact mental well-being, and it's designed for anyone seeking a moment of calm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.0%
  • JavaScript 1.0%