Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Super Mario in C

This project implements a simplified version of Super Mario written entirely in C, without any third-party rendering engines.

โš™๏ธ Prerequisites

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 TC folder.

๐Ÿš€ Compilation & Execution

Follow these steps to compile and run the game within DOSBox:

  1. Install DOSBox on your system.

  2. Mount the project directory: Open DOSBox and mount the root folder of this project as your C: drive. Replace /path/to/project with your actual file path:

    mount C: /path/to/project
    
  3. Navigate to the project folder: Switch to the C: drive and enter the GDC directory:

    C:
    cd C:/GDC
    
  4. Compile the code: Run the included batch file to compile the project:

    compile.bat
    
  5. Launch the game:

    GDC.EXE
    

๐ŸŽฎ Emulation Adjustments

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.

๐Ÿ‘ฅ Developers

  • Yan Chen
  • Liang Guo
  • Bilin Dai

About

Super Mario in C

Resources

Stars

8 stars

Watchers

6 watching

Forks

Releases

Packages

Contributors

Languages