Try not to Lose

Try Not to Lose is all about gaining score by surviving longer in the game. While you can’t add more players, you can still challenge your friends by taking turns and trying to beat each other’s high scores. The longer you survive, the higher your score.

Created In: 2022
Collaboration: Solo
Game Engine: Unity- C# – Compute Shader

One of the biggest challenges in Try Not to Lose was implementing communication between the CPU and GPU. The game logic checks if the cube moves out of bounds and communicates this data to a compute shader, which dynamically adjusts the green boundary area, making it smaller as the game progresses. This integration added a visual and functional element, increasing the tension and challenge of surviving longer.

Pure CSS3 Tabs
  • Circle Color

  • ShaderManagement

To add excitement and encourage competition, I implemented a high score system to save the player’s best score, motivating them to improve with each attempt.

In the game, players must change direction to keep the character within the shrinking green area. Each mouse click on the plane or direction change makes the player move faster, further shortening the green area. The challenge lies in managing clicks wisely to survive longer and stay within the boundaries. It’s all about strategy, precision, and quick decision-making!

Pure CSS3 Tabs
  • GameManager

  • Game Controller

  • Player Movement