Skip to content

Commit

Permalink
Version 0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
orkhasnat authored and orkhasnat committed Aug 6, 2021
1 parent 219abdd commit dbb2f18
Show file tree
Hide file tree
Showing 54 changed files with 22 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions data
38 changes: 21 additions & 17 deletions make.ps1
Original file line number Diff line number Diff line change
@@ -1,47 +1,51 @@
## MakeFile alternative

function compilation{
echo "........compiling..........."
echo "........compilling.........."
g++ -c .\src\*.cpp -I.\include
echo "..........moving............"
#Move-Item -Path *.o -Destination .\obj -force
echo ".........linking............"
g++ -o Play .\*.o -L.\lib -lsfml-graphics -lsfml-audio -lsfml-window -lsfml-system
#g++ -o RapidRoll .\obj\*.o main.o -L.\lib -lsfml-graphics -lsfml-audio -lsfml-window -lsfml-system
g++ -o RapidRoll .\*.o -L.\lib -lsfml-graphics -lsfml-audio -lsfml-window -lsfml-system
mv .\RapidRoll.exe .\bin -force
echo "...........done............."
}

function cleaning{
echo "........cleaning............"
echo "........cleaning.........."
#rm .\obj\*.o
rm .\*.o
echo "...........done............."
}

function Helpmenu{
echo "Write -c for compilation"
echo "clean for deleting the .o files, -cl for .o and .exe file"
echo "Write -c for compilation, clean for deleting the .o files and cleanall for .o and .exe file"
echo "And -e to execute the game"
echo "Or you can pass -a/all for all three (compile,clean,execute)"
echo "Or you can pass -a/all to all three (compile,clean,execute)"
}

function RunAgain{
$param2= Read-Host "Enter the command: "
$param2= Read-Host "Enter the command,sire!!"
switch ($param2){
"-h" {Helpmenu; Break}
"help" {Helpmenu; Break}
"compile" {compilation}
"-c" {compilation}
"clean" {cleaning}
"-cl" {cleaning ;rm Play.exe; Break}
"execute" {./Play.exe; Break}
"-e" {./Play.exe; Break}
"cleanall" {cleaning ;rm .\bin\RapidRoll.exe; Break}
"execute" {.\bin\RapidRoll.exe; Break}
"-e" {.\bin\RapidRoll.exe; Break}
"all" {
compilation;
cleaning;
./Play.exe;
.\bin\RapidRoll.exe;
Break
}
"-a" {
compilation;
cleaning;
./Play.exe;
.\bin\RapidRoll.exe;
Break
}
}
Expand All @@ -56,19 +60,19 @@ switch ($params){
"compile" {compilation}
"-c" {compilation}
"clean" {cleaning}
"-cl" {cleaning ;rm Play.exe; Break}
"execute" {./Play.exe; Break}
"-e" {./Play.exe; Break}
"cleanall" {cleaning ;rm .\bin\RapidRoll.exe; Break}
"execute" {.\bin\RapidRoll.exe; Break}
"-e" {.\bin\RapidRoll.exe; Break}
"all" {
compilation;
cleaning;
./Play.exe;
.\bin\RapidRoll.exe;
Break
}
"-a" {
compilation;
cleaning;
./Play.exe;
.\bin\RapidRoll.exe;
Break
}
}

0 comments on commit dbb2f18

Please sign in to comment.