Add in sig build script and fix integer rounding for green slime and future enemies that have a non-integer scale

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
2023-06-12 19:07:06 +00:00
co-authored by AMay
parent 15c246689f
commit 21760fbbbc
23 changed files with 7153 additions and 7 deletions
+20
View File
@@ -0,0 +1,20 @@
#Creates a release build that focuses on high runtime performance. Use "full" argument to completely rebuild PGE.
#C++
printf "Running program...\n\n\n"
output=$(dpkg -l | grep libx11-dev)
if [[ -z $output ]]
then
sudo apt install libx11-dev libpulse-dev mesa-common-dev libpng-dev libstdc++-12-dev
fi
if [ "$1" == "full" ]; then
rm "pixelGameEngine.o"
fi
if [ ! -f "pixelGameEngine.o" ]
then
printf "Pixel Game Engine compile object missing. Compiling for the first time..."
g++ -c pixelGameEngine.cpp
fi
if g++ $(find . -type f -name "*.cpp" -not -path "./test/*" -not -name "pixelGameEngine.cpp") pixelGameEngine.o ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then
./${PROJECT_NAME} "$@"
fi
printf "\n\n"