This project implements a simplified version of Super Mario written entirely in C, without any third-party rendering engines.
To compile and run this program, you will need the following:
- DOSBox: An emulator for legacy DOS programs.
- Turbo C: This is required for compilation and is already included in the project under the
TCfolder.
Follow these steps to compile and run the game within DOSBox:
-
Install DOSBox on your system.
-
Mount the project directory: Open DOSBox and mount the root folder of this project as your
C:drive. Replace/path/to/projectwith your actual file path:mount C: /path/to/project -
Navigate to the project folder: Switch to the
C:drive and enter theGDCdirectory:C: cd C:/GDC -
Compile the code: Run the included batch file to compile the project:
compile.bat -
Launch the game:
GDC.EXE
Because this runs in a DOS emulator, you will need to adjust the performance settings for the game to run smoothly:
- Adjust CPU Cycles: Once the game is running, use Ctrl+F12 (to increase) and Ctrl+F11 (to decrease) to adjust the DOSBox CPU cycles to approximately 20,000.
- Loading Time: Please be patient! It will take about 30 seconds for the game to fully load.
- Yan Chen
- Liang Guo
- Bilin Dai