You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Windows ASCII console racing game written in C with 5-lane endless survival gameplay, fuel management, pit stops, 3 difficulty speeds, and local file-based accounts and score tracking.
Screenshots
Gameplay
Game Over
Game Menu
Difficulty Selection
Features
Feature
Details
5-Lane ASCII Track
Dodge red obstacles (XXX) in real time with colorized Windows console graphics and sound effects.
Fuel & Pickups
Fuel starts at 100 and drains over time and on lane changes. Grab green +++ pickups (+4 fuel) and cyan +++ pickups (+1 pit stop).
Pit Stops
Start with 3 pit stops; pause anytime (ESC) and pick Pit Stop from the menu to refuel to 100 and reset speed.
3 Difficulty Modes
Easy, Medium, and Insane starting speeds, with automatic speed ramp-up every 30 frames.
Accounts & Stats
Local Sign Up / Log In (accounts.txt), live View Stats, Top 3 High Scores, and per-user Game History (games_log.txt).
Controls
Key
Action
a or ← (Left Arrow)
Move car one lane left
d or → (Right Arrow)
Move car one lane right
ESC
Pause race / return to Game Menu (for Pit Stop, Stats, High Scores)
Note:a and d are lowercase-only — keep Caps Lock off, or use the Arrow keys.
Difficulty Levels
Difficulty
Starting Frame Delay
Behavior
1. Easy
80 ms
Slowest start; speeds up by 1 ms every 30 frames (min 1 ms).
2. Medium
40 ms
Faster starting pace; speeds up over time.
3. Insane
1 ms
Maximum speed from frame one.
Build and Run (Windows)
This project uses Windows console APIs (<conio.h>, <windows.h>) and a C99 variable-length array, so compile it with MinGW / GCC:
git clone https://github.com/exe-ddraig/F1-RACE.git
cd F1-RACE
gcc Code.c -o F1-RACE.exe
F1-RACE.exe
First run: Choose 1. Sign Up before using 2. Log In so accounts.txt is created.
Project Files
File
Purpose
Code.c
Complete C source code for menus, auth, rendering, gameplay loop, and file logging
F1-RACE.pdf
Project documentation / report
.gitignore
Ignores generated runtime data (accounts.txt, games_log.txt) and compiled binaries
Generated Runtime Files (Ignored by Git)
accounts.txt — stores local accounts as username,password
games_log.txt — stores completed run scores as username,score
Known Limitations
Windows only: Relies on <conio.h>, <windows.h>, system("cls"), and strupr().
GCC / MinGW required: Uses a C99 VLA (obs_r[obs]), so MSVC will not compile it without changing that array to a fixed constant.
Plain-text credentials: Passwords in accounts.txt are stored in plain text (built as a first-semester C learning project — do not reuse real passwords).
Login edge cases: Choosing Log In before any account exists exits because accounts.txt has not been created yet, and exhausting login attempts redirects to Sign Up instead of returning to the login menu.
About
Windows ASCII console racing game in C with pit stops, fuel management, 3 difficulties, and file-based score tracking.