The OnlyForward project is a puzzle game developed in C++ with OpenGL, where the player controls a snake that must navigate a maze to achieve the highest possible score. The goal of the game is to reach the end of the level without getting stuck, earning points by completing levels quickly and collecting bonus items.
The mazes are complex structures that challenge players' logic and strategy. The game OnlyForward introduces a unique mechanic where the player cannot move back onto a tile they have already stepped on, unless they reset the level.
- Programming Language: C++ (Compiler: MSVC)
- Graphics Library: OpenGL
- IDE: Visual Studio Community 2022
- Source Control: Git
The following packages are required to run the game:
All game files must be present in the same folder as the executable for proper functionality.
- W, A, S, D – Move in the desired direction
- R – Reset level (will give a score penalty)
Caution
The player cannot move back onto the path already traveled (this path is marked in light green, different from the other colors)
- CTRL+R – Generate a new level
- The generated level must be manually checked to ensure it is completable
- V – Save level
- The file 'level.out' contains the tile IDs of the level
- To add a custom level, the contents of 'level.out' must be copied into the Levels folder and saved as X.leveldata, where X is the number of the next level.
Note
The finish tile (ID: 1) should be included and reachable in the leveldata file to be able to complete the level.