DEV Community

Cover image for Balance of Light — A Time-Based Survival Game for the June Game Jam
Shirshak Nandy
Shirshak Nandy

Posted on

Balance of Light — A Time-Based Survival Game for the June Game Jam

June Solstice Game Jam Submission

[This is a submission for the June Solstice Game Jam

## What I Built
I built a browser-based game called Solstice: Balance of Light, inspired by the theme of the June Solstice — the balance between light and darkness, and the natural cycles of time and transition.

The game is a simple survival experience where:

Light energy continuously decreases over time 🌑
The player must collect light to stay alive 🌞
The environment simulates a day and night cycle 🌗
The objective is to maintain balance between light and darkness ⚖️

The idea is to represent the solstice as a moment of equilibrium — where opposing forces must be balanced to survive.

[🎮 Video Demo

[🔗 Live Game:
https://github.com/nandyshirshak-cloud/solstice-game
📂 Source Code:
__
https://github.com/nandyshirshak-cloud/solstice-game/tree/main

💻 Code

The full source code is available here:
👉 https://github.com/nandyshirshak-cloud/solstice-game
The project uses:
HTML for structure
CSS for UI styling
JavaScript for game mechanics and logic
No external frameworks were used — the game is built entirely using vanilla web technologies.

⚙️ How I Built It

I built the game in a simple iterative process:
Created a basic UI with a light energy system
Implemented a game loop using JavaScript (setInterval) to simulate time
Added a light decay mechanic to create pressure and urgency
Introduced a day/night cycle system to reflect the solstice theme
Added win/lose conditions based on maintaining balance
The focus was on building a minimal but meaningful gameplay loop rather than complex graphics or systems.

✨ Final Note
This project represents my interpretation of the solstice as a moment of balance and transition.
Through simple mechanics, I tried to express how opposing forces — light and darkness — interact over time, creating tension, urgency, and equilibrium.](url)

Top comments (0)