A remake of Warcraft: Orcs & Humans written in C.
This is a remake of the Warcraft: Orcs & Humans game created and published by Blizzard Entertainment in 1994. It pretends to be a complete implementation of the game using only the assets (*.WAR files) from the original game.
War1 is not an official Blizzard Entertainment product. It intent to be an enhancement of the original product with modern RTS features. You will need a copy of the original Warcraft: Orcs & Humans MS-DOS (or shareware) version be able to play War1. You can get it here Warcraft: Orcs and Humans. Warcraft and all graphics you see in the game are a registered trademark of Blizzard Entertainment.
Current features (this list is not complete):
- Path finding and collisions detection
- Unit movement with animations
- Unit training
- Building construction
- Resources gathering by peasants and peons
- Features specification for maps (this is specify if the player can train, build or research certain units, buildings or spells)
- Win/lose condition checking
- Fog of war
- Basic behavior for enemies (it will attack your units if you get near enough, it will chase your units)
- Spells
- Typing commands for cheats and other stuff that could be activated by it in the engine
Still to develop (this list is not complete):
- AI (I'm planning to do a basic one first and build from that more complex ones)
- Cinematics (I've the code for reading FLIC files just need to integrate it into the engine)
- Save/Load
You can check videos of gameplay and features as they are built here.
- Clone the repository
git clone https://github.com/acoto87/war1 - Get the
DATA.WARfile and place it in theassetsfolder. - Bootstrap the
nobbuild entry point with your C compiler of choice:
gcc -std=c99 -Wall -Wextra -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L -o nob nob.cclang -std=c99 -Wall -Wextra -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L -o nob nob.ccl /nologo /std:c11 /W4 /D_CRT_SECURE_NO_WARNINGS /Fenob.exe nob.c- Build the project with
nob:
./nob build --cc gcc --target linux64
./nob build --cc clang --target linux64nob.exe build --cc gcc --target win32
nob.exe build --cc gcc --target win64MSVC currently supports compile validation with --check:
nob.exe build --cc msvc --target win64 --check./nob build --cc gcc --target arm32The legacy build-gcc-*.sh and build-gcc-*.bat scripts are still available, but nob.c is now the main build entry point.
Since I'm not able to distribute the DATA.WAR file, which contains the original assets, there is a little process to get the game working properly (this applies if you don't own a copy of the game that you can purchase here Warcraft: Orcs and Humans).
If you own an original copy of the game, or just bought the game on GOG, find the file DATA.WAR and just copy and paste it into the War 1 folder, and execute war1.exe.
Or just start the game and there is an option within the game to download the file.
If you don't own the original game and want to try it with the demo version, just download the demo version of DATA.WAR. Or just start the game and there is an option within the game to download the file.
If you want to check were that file comes from, it's from here: https://archive.org/details/WarcraftOrcsHumansDemo. If you click SEE ALL in the DOWNLOADS section you will see a WCRFT.ZIP (View Contents) entry, just click on View Contents and there is a line with the DATA.WAR file of the demo version.
- SDL3: A cross-platform development library designed to provide low-level access to audio, keyboard, mouse, joystick, and graphics hardware.
- TinySoundFont SoundFont2 synthesizer.
- shl: Single header libraries with commonly used data structures.
- stb Single-file public domain libraries for C/C++
Here is my TODO list.
- War1gus: War1gus is a re-implementation of "Warcraft: Orcs & Humans" that allows you to play Warcraft with the Stratagus engine.
- OpenWar: OpenWar is an alternative Warcraft: Orcs & Humans game engine.
- Warcraft Remake: Warcraft Remake is a remake of the classic Blizzard game.
- WinWar: WinWar is a multiplatform (Windows, WindowsStore, OSX, Linux, iOS) port of the original DOS WarCraft: Orcs & Humans PC Game.
| Gifs | Images |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |





