-
Notifications
You must be signed in to change notification settings - Fork 382
3. Building
clang++ `sdl2-config --cflags` -O2 -ozelda3 *.c snes/*.c `sdl2-config --libs`
or
make -j$(nproc) # run on all core
make clean all # clear gen+obj and rebuild
CC=clang make # specify compiler
** macOS users if you want to create an app to laucnh the game instead of running through the terminal click here
MSYS2
type: make
Visual Studio
Open the zelda3.sln file
Verify that you changed debug to release like in the picture below. Then in the Solution Explorer Window right click on zelda3 and click build.
If you do not see the Solution Explorer Window then click View at the top and enable it

you should now have a new folder called bin. Then inside the x64-Release folder you will find the .exe
TCC
create a folder called third party
Unzip TCC for win64 into third_party/tcc
it will download as tcc_20221020.zip rename it to just tcc
Unzip SDL2 into third_party/SDL2-2.24.0
Start run_with_tcc.bat. It will perform some basic error checks and then start the game.
You can move the zelda3 folder wherever you wish now.
to update to the latest commit launch git bash:
cd into the zelda3 folder and type git pull.
must rebuild after update