Prototype_7.mp4
This prototype is part of the Junior Programmer Pathway from Unity Learn. Its purpose is to teach the fundamentals of gameplay mechanics through scripting in C#. Unlike earlier prototypes, this project starts with a fully functional game. The focus is on enhancing the game by implementing features such as saving the best score and displaying a leaderboard.
It's a Break the Wall game and we must code score feature as:
- Player name (saving data between scenes)
- Create a new Start Menu scene for the game with a text entry field prompting the user to enter their name, and a Start button.
- When the user clicks the Start button, the Main game scene will be loaded and their name will be displayed next to the score.
- High score (saving data between sessions):
- As the user plays, the current high score will be displayed on the screen alongside the player name who created the score.
- If the high score is beaten, the new score and player name will be displayed instead.
- The highest score will be saved between sessions, so that if the player closes and reopens the application, the high score and player name will be retained.
Key | Action |
---|---|
A or ← |
Move to the left |
D or → |
Move to the right |
ESCAPE |
Return to menu |
- Unity – Version 6000.0.47f1
- C# – Used for gameplay scripting
During development, I explored alternative methods for data persistence and discovered how to use JSON serialization to store player data instead of relying solely on PlayerPrefs.
You can download pre-built releases for your supported operating system from the GitHub Releases page. Available builds include:
- macOS
- Windows
- Linux
To run the program, simply double-click the executable file for your operating system.
Unzip and open the .app file.
Unzip and double-click the .exe file.
chmod +x Prototype_7_Linux.x86_64
./Prototype_7_Linux.x86_64
Play on browser
This project is based on the Unity Junior Programmer Pathway by Unity Learn. Many thanks to the instructors for their excellent step-by-step video tutorials and guidance.
To report issues, please create an issue here: issue tracker.
If you'd like to contribute, please follow the steps outlined in CONTRIBUTING.md.
This project is licensed under the MIT License.