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.
-
Clone the repository:
git clone https://github.com/tg12/harmonyblocks.git
-
Navigate into the directory:
cd harmony-blocks
-
Install the required dependencies: Make sure you have
pygame
installed. If not, install it with:pip install pygame
-
Run the game:
python harmony_blocks.py
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.
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.
- 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.
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
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
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
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."
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!
This project is licensed under the MIT License.
- Research and Psychology: Special thanks to the academic work that informed the psychological foundations of this project.