Guide to make your own game engines or games for DOS using C/C++, Lua, Allegro, etc.
If you want to see a quick example you can go to release v0.1.0 and run the game engine
https://github.com/blushingchutney/DIY-DOS-Game/releases/tag/v0.1.0
Once build-djgpp is downloaded, place the binaries in your user's documents folder, djgpp has a setenv, have it run every time you open a shell.
Example in linux:
source $HOME/Documents/djgpp/setenv
And now you should have all the binaries with the prefix i586-pc-msdosdjgpp- in your path, for example: i586-pc-msdosdjgpp-gcc
I recommend you place the binaries as CWSDPMI on the Y mount drive
Configure your dosbox.conf like this
[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
KEYB LA
MOUNT Y ~/Documents/dosbox/y
SET PATH=%PATH%;Y:\CSDPMI7B\BIN\
CWSDPMI.EXE
Put all the lua522b.zip files in $HOME/Documents/dosbox/y/lua522b/
Put all the files from 20190618_DJGPP_dir_allegro423installed.zip in $HOME/Documents/dosbox/y/
By the way, you need to use some command to name the uppercase files to lowercase files of include and lib
Linux example:
#!/bin/bash
tree -fi --noreport | while read path; do
new_path=$(echo "$path" | tr '[:upper:]' '[:lower:]')
if [[ "$path" != "$new_path" ]]; then
mv "$path" "$new_path"
fi
done
Just run "make all run"