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:
Executable
+20
@@ -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"
|
||||
Reference in New Issue
Block a user