This document provides an overview of the Shadow Donkey Kong game and instructions on how to log Git commit history using a Bash script.
Shadow Donkey Kong is a classic platformer where players control Mario to navigate obstacles, climb ladders, jump on platforms, and defeat Donkey Kong using a hammer. The game features:
- Platform mechanics: Mario can walk, jump, and land on platforms.
- Ladder climbing: Mario can climb up and down ladders.
- Hammers: Mario can pick up a hammer to defeat Donkey Kong.
- Time-based challenge: The level must be completed within a time limit.
- Start the game: Run the game and begin on the home screen.
- Move Mario: Use the arrow keys to move left, right, and jump.
- Climb ladders: Approach a ladder and press the UP or DOWN key.
- Use a hammer: Pick up a hammer to defeat Donkey Kong.
- Win the level: Reach Donkey Kong while holding a hammer before time runs out.
This section explains how students can automatically generate a Git commit log and save it in a file named after their student number.
- Git must be installed on your system.
- You must be inside a Git repository (a project that has been initialized with Git).
- This works on Linux, macOS, and Windows (WSL).
- Open a Terminal: Navigate to the directory:
cd /path/to/your/git/repo
- Grant Execution Permission:
chmod +x generate_git_log.sh
- Run the Script:
./generate_git_log.sh
- Enter Your Student Number: You will be prompted to enter it.
- View the Generated Log File: A file
STUDENT_NUMBER.txt
will be created in the same directory.
- Enable WSL (If Not Installed):
wsl --install
- Open WSL and Navigate to the Repository:
cd /mnt/c/path/to/your/git/repo
- Follow the Linux/macOS Steps Above.
a1b2c3d - John Doe, 3 days ago : Initial commit
d4e5f6g - Alice Smith, 1 hour ago : Fixed a bug
If you see this error:
❌ Error: This is not a Git repository. Please navigate to your Git project directory.
Make sure you are inside a Git-tracked project:
git status
If Git is not initialized, run:
git init
If you get a permission error, use:
chmod +x generate_git_log.sh
./generate_git_log.sh