From dbb2f18e6741e704ad139a648710d5b4a1cc8730 Mon Sep 17 00:00:00 2001 From: orkhasnat Date: Fri, 6 Aug 2021 17:58:32 +0600 Subject: [PATCH] Version 0.21 --- {data => bin/data}/audio/burst.ogg | Bin {data => bin/data}/audio/intro.ogg | Bin {data => bin/data}/audio/menu.ogg | Bin {data => bin/data}/audio/playing.ogg | Bin .../data}/font/ArchitectsDaughter-Regular.ttf | Bin {data => bin/data}/font/arial.ttf | Bin {data => bin/data}/img/Platform.jpg | Bin {data => bin/data}/img/RR.png | Bin {data => bin/data}/img/Spikes.png | Bin {data => bin/data}/img/Spikes_Flip.png | Bin {data => bin/data}/img/bg/0.jpg | Bin {data => bin/data}/img/bg/1.jpg | Bin {data => bin/data}/img/bg/2.jpg | Bin {data => bin/data}/img/bg/3.jpg | Bin {data => bin/data}/img/bg/4.jpg | Bin {data => bin/data}/img/bg/5.jpg | Bin {data => bin/data}/img/bg/6.jpg | Bin {data => bin/data}/img/bg/7.jpg | Bin {data => bin/data}/img/bg/photothumb.db | Bin {data => bin/data}/img/intro/0.jpg | Bin {data => bin/data}/img/intro/1.jpg | Bin {data => bin/data}/img/intro/10.jpg | Bin {data => bin/data}/img/intro/11.jpg | Bin {data => bin/data}/img/intro/12.jpg | Bin {data => bin/data}/img/intro/13.jpg | Bin {data => bin/data}/img/intro/14.jpg | Bin {data => bin/data}/img/intro/15.jpg | Bin {data => bin/data}/img/intro/16.jpg | Bin {data => bin/data}/img/intro/17.jpg | Bin {data => bin/data}/img/intro/2.jpg | Bin {data => bin/data}/img/intro/3.jpg | Bin {data => bin/data}/img/intro/4.jpg | Bin {data => bin/data}/img/intro/5.jpg | Bin {data => bin/data}/img/intro/6.jpg | Bin {data => bin/data}/img/intro/7.jpg | Bin {data => bin/data}/img/intro/8.jpg | Bin {data => bin/data}/img/intro/9.jpg | Bin {data => bin/data}/img/intro/foxie.png | Bin {data => bin/data}/img/intro/oldfox.png | Bin {data => bin/data}/img/intro/photothumb.db | Bin libatomic-1.dll => bin/libatomic-1.dll | Bin libgcc_s_dw2-1.dll => bin/libgcc_s_dw2-1.dll | Bin libgomp-1.dll => bin/libgomp-1.dll | Bin libquadmath-0.dll => bin/libquadmath-0.dll | Bin libssp-0.dll => bin/libssp-0.dll | Bin libstdc++-6.dll => bin/libstdc++-6.dll | Bin .../libwinpthread-1.dll | Bin openal32.dll => bin/openal32.dll | Bin sfml-audio-2.dll => bin/sfml-audio-2.dll | Bin .../sfml-graphics-2.dll | Bin sfml-system-2.dll => bin/sfml-system-2.dll | Bin sfml-window-2.dll => bin/sfml-window-2.dll | Bin data | 1 + make.ps1 | 38 ++++++++++-------- 54 files changed, 22 insertions(+), 17 deletions(-) rename {data => bin/data}/audio/burst.ogg (100%) rename {data => bin/data}/audio/intro.ogg (100%) rename {data => bin/data}/audio/menu.ogg (100%) rename {data => bin/data}/audio/playing.ogg (100%) rename {data => bin/data}/font/ArchitectsDaughter-Regular.ttf (100%) rename {data => bin/data}/font/arial.ttf (100%) rename {data => bin/data}/img/Platform.jpg (100%) rename {data => bin/data}/img/RR.png (100%) rename {data => bin/data}/img/Spikes.png (100%) rename {data => bin/data}/img/Spikes_Flip.png (100%) rename {data => bin/data}/img/bg/0.jpg (100%) rename {data => bin/data}/img/bg/1.jpg (100%) rename {data => bin/data}/img/bg/2.jpg (100%) rename {data => bin/data}/img/bg/3.jpg (100%) rename {data => bin/data}/img/bg/4.jpg (100%) rename {data => bin/data}/img/bg/5.jpg (100%) rename {data => bin/data}/img/bg/6.jpg (100%) rename {data => bin/data}/img/bg/7.jpg (100%) rename {data => bin/data}/img/bg/photothumb.db (100%) rename {data => bin/data}/img/intro/0.jpg (100%) rename {data => bin/data}/img/intro/1.jpg (100%) rename {data => bin/data}/img/intro/10.jpg (100%) rename {data => bin/data}/img/intro/11.jpg (100%) rename {data => bin/data}/img/intro/12.jpg (100%) rename {data => bin/data}/img/intro/13.jpg (100%) rename {data => bin/data}/img/intro/14.jpg (100%) rename {data => bin/data}/img/intro/15.jpg (100%) rename {data => bin/data}/img/intro/16.jpg (100%) rename {data => bin/data}/img/intro/17.jpg (100%) rename {data => bin/data}/img/intro/2.jpg (100%) rename {data => bin/data}/img/intro/3.jpg (100%) rename {data => bin/data}/img/intro/4.jpg (100%) rename {data => bin/data}/img/intro/5.jpg (100%) rename {data => bin/data}/img/intro/6.jpg (100%) rename {data => bin/data}/img/intro/7.jpg (100%) rename {data => bin/data}/img/intro/8.jpg (100%) rename {data => bin/data}/img/intro/9.jpg (100%) rename {data => bin/data}/img/intro/foxie.png (100%) rename {data => bin/data}/img/intro/oldfox.png (100%) rename {data => bin/data}/img/intro/photothumb.db (100%) rename libatomic-1.dll => bin/libatomic-1.dll (100%) rename libgcc_s_dw2-1.dll => bin/libgcc_s_dw2-1.dll (100%) rename libgomp-1.dll => bin/libgomp-1.dll (100%) rename libquadmath-0.dll => bin/libquadmath-0.dll (100%) rename libssp-0.dll => bin/libssp-0.dll (100%) rename libstdc++-6.dll => bin/libstdc++-6.dll (100%) rename libwinpthread-1.dll => bin/libwinpthread-1.dll (100%) rename openal32.dll => bin/openal32.dll (100%) rename sfml-audio-2.dll => bin/sfml-audio-2.dll (100%) rename sfml-graphics-2.dll => bin/sfml-graphics-2.dll (100%) rename sfml-system-2.dll => bin/sfml-system-2.dll (100%) rename sfml-window-2.dll => bin/sfml-window-2.dll (100%) create mode 120000 data diff --git a/data/audio/burst.ogg b/bin/data/audio/burst.ogg similarity index 100% rename from data/audio/burst.ogg rename to bin/data/audio/burst.ogg diff --git a/data/audio/intro.ogg b/bin/data/audio/intro.ogg similarity index 100% rename from data/audio/intro.ogg rename to bin/data/audio/intro.ogg diff --git a/data/audio/menu.ogg b/bin/data/audio/menu.ogg similarity index 100% rename from data/audio/menu.ogg rename to bin/data/audio/menu.ogg diff --git a/data/audio/playing.ogg b/bin/data/audio/playing.ogg similarity index 100% rename from data/audio/playing.ogg rename to bin/data/audio/playing.ogg diff --git a/data/font/ArchitectsDaughter-Regular.ttf b/bin/data/font/ArchitectsDaughter-Regular.ttf similarity index 100% rename from data/font/ArchitectsDaughter-Regular.ttf rename to bin/data/font/ArchitectsDaughter-Regular.ttf diff --git a/data/font/arial.ttf b/bin/data/font/arial.ttf similarity index 100% rename from data/font/arial.ttf rename to bin/data/font/arial.ttf diff --git a/data/img/Platform.jpg b/bin/data/img/Platform.jpg similarity index 100% rename from data/img/Platform.jpg rename to bin/data/img/Platform.jpg diff --git a/data/img/RR.png b/bin/data/img/RR.png similarity index 100% rename from data/img/RR.png rename to bin/data/img/RR.png diff --git a/data/img/Spikes.png b/bin/data/img/Spikes.png similarity index 100% rename from data/img/Spikes.png rename to bin/data/img/Spikes.png diff --git a/data/img/Spikes_Flip.png b/bin/data/img/Spikes_Flip.png similarity index 100% rename from data/img/Spikes_Flip.png rename to bin/data/img/Spikes_Flip.png diff --git a/data/img/bg/0.jpg b/bin/data/img/bg/0.jpg similarity index 100% rename from data/img/bg/0.jpg rename to bin/data/img/bg/0.jpg diff --git a/data/img/bg/1.jpg b/bin/data/img/bg/1.jpg similarity index 100% rename from data/img/bg/1.jpg rename to bin/data/img/bg/1.jpg diff --git a/data/img/bg/2.jpg b/bin/data/img/bg/2.jpg similarity index 100% rename from data/img/bg/2.jpg rename to bin/data/img/bg/2.jpg diff --git a/data/img/bg/3.jpg b/bin/data/img/bg/3.jpg similarity index 100% rename from data/img/bg/3.jpg rename to bin/data/img/bg/3.jpg diff --git a/data/img/bg/4.jpg b/bin/data/img/bg/4.jpg similarity index 100% rename from data/img/bg/4.jpg rename to bin/data/img/bg/4.jpg diff --git a/data/img/bg/5.jpg b/bin/data/img/bg/5.jpg similarity index 100% rename from data/img/bg/5.jpg rename to bin/data/img/bg/5.jpg diff --git a/data/img/bg/6.jpg b/bin/data/img/bg/6.jpg similarity index 100% rename from data/img/bg/6.jpg rename to bin/data/img/bg/6.jpg diff --git a/data/img/bg/7.jpg b/bin/data/img/bg/7.jpg similarity index 100% rename from data/img/bg/7.jpg rename to bin/data/img/bg/7.jpg diff --git a/data/img/bg/photothumb.db b/bin/data/img/bg/photothumb.db similarity index 100% rename from data/img/bg/photothumb.db rename to bin/data/img/bg/photothumb.db diff --git a/data/img/intro/0.jpg b/bin/data/img/intro/0.jpg similarity index 100% rename from data/img/intro/0.jpg rename to bin/data/img/intro/0.jpg diff --git a/data/img/intro/1.jpg b/bin/data/img/intro/1.jpg similarity index 100% rename from data/img/intro/1.jpg rename to bin/data/img/intro/1.jpg diff --git a/data/img/intro/10.jpg b/bin/data/img/intro/10.jpg similarity index 100% rename from data/img/intro/10.jpg rename to bin/data/img/intro/10.jpg diff --git a/data/img/intro/11.jpg b/bin/data/img/intro/11.jpg similarity index 100% rename from data/img/intro/11.jpg rename to bin/data/img/intro/11.jpg diff --git a/data/img/intro/12.jpg b/bin/data/img/intro/12.jpg similarity index 100% rename from data/img/intro/12.jpg rename to bin/data/img/intro/12.jpg diff --git a/data/img/intro/13.jpg b/bin/data/img/intro/13.jpg similarity index 100% rename from data/img/intro/13.jpg rename to bin/data/img/intro/13.jpg diff --git a/data/img/intro/14.jpg b/bin/data/img/intro/14.jpg similarity index 100% rename from data/img/intro/14.jpg rename to bin/data/img/intro/14.jpg diff --git a/data/img/intro/15.jpg b/bin/data/img/intro/15.jpg similarity index 100% rename from data/img/intro/15.jpg rename to bin/data/img/intro/15.jpg diff --git a/data/img/intro/16.jpg b/bin/data/img/intro/16.jpg similarity index 100% rename from data/img/intro/16.jpg rename to bin/data/img/intro/16.jpg diff --git a/data/img/intro/17.jpg b/bin/data/img/intro/17.jpg similarity index 100% rename from data/img/intro/17.jpg rename to bin/data/img/intro/17.jpg diff --git a/data/img/intro/2.jpg b/bin/data/img/intro/2.jpg similarity index 100% rename from data/img/intro/2.jpg rename to bin/data/img/intro/2.jpg diff --git a/data/img/intro/3.jpg b/bin/data/img/intro/3.jpg similarity index 100% rename from data/img/intro/3.jpg rename to bin/data/img/intro/3.jpg diff --git a/data/img/intro/4.jpg b/bin/data/img/intro/4.jpg similarity index 100% rename from data/img/intro/4.jpg rename to bin/data/img/intro/4.jpg diff --git a/data/img/intro/5.jpg b/bin/data/img/intro/5.jpg similarity index 100% rename from data/img/intro/5.jpg rename to bin/data/img/intro/5.jpg diff --git a/data/img/intro/6.jpg b/bin/data/img/intro/6.jpg similarity index 100% rename from data/img/intro/6.jpg rename to bin/data/img/intro/6.jpg diff --git a/data/img/intro/7.jpg b/bin/data/img/intro/7.jpg similarity index 100% rename from data/img/intro/7.jpg rename to bin/data/img/intro/7.jpg diff --git a/data/img/intro/8.jpg b/bin/data/img/intro/8.jpg similarity index 100% rename from data/img/intro/8.jpg rename to bin/data/img/intro/8.jpg diff --git a/data/img/intro/9.jpg b/bin/data/img/intro/9.jpg similarity index 100% rename from data/img/intro/9.jpg rename to bin/data/img/intro/9.jpg diff --git a/data/img/intro/foxie.png b/bin/data/img/intro/foxie.png similarity index 100% rename from data/img/intro/foxie.png rename to bin/data/img/intro/foxie.png diff --git a/data/img/intro/oldfox.png b/bin/data/img/intro/oldfox.png similarity index 100% rename from data/img/intro/oldfox.png rename to bin/data/img/intro/oldfox.png diff --git a/data/img/intro/photothumb.db b/bin/data/img/intro/photothumb.db similarity index 100% rename from data/img/intro/photothumb.db rename to bin/data/img/intro/photothumb.db diff --git a/libatomic-1.dll b/bin/libatomic-1.dll similarity index 100% rename from libatomic-1.dll rename to bin/libatomic-1.dll diff --git a/libgcc_s_dw2-1.dll b/bin/libgcc_s_dw2-1.dll similarity index 100% rename from libgcc_s_dw2-1.dll rename to bin/libgcc_s_dw2-1.dll diff --git a/libgomp-1.dll b/bin/libgomp-1.dll similarity index 100% rename from libgomp-1.dll rename to bin/libgomp-1.dll diff --git a/libquadmath-0.dll b/bin/libquadmath-0.dll similarity index 100% rename from libquadmath-0.dll rename to bin/libquadmath-0.dll diff --git a/libssp-0.dll b/bin/libssp-0.dll similarity index 100% rename from libssp-0.dll rename to bin/libssp-0.dll diff --git a/libstdc++-6.dll b/bin/libstdc++-6.dll similarity index 100% rename from libstdc++-6.dll rename to bin/libstdc++-6.dll diff --git a/libwinpthread-1.dll b/bin/libwinpthread-1.dll similarity index 100% rename from libwinpthread-1.dll rename to bin/libwinpthread-1.dll diff --git a/openal32.dll b/bin/openal32.dll similarity index 100% rename from openal32.dll rename to bin/openal32.dll diff --git a/sfml-audio-2.dll b/bin/sfml-audio-2.dll similarity index 100% rename from sfml-audio-2.dll rename to bin/sfml-audio-2.dll diff --git a/sfml-graphics-2.dll b/bin/sfml-graphics-2.dll similarity index 100% rename from sfml-graphics-2.dll rename to bin/sfml-graphics-2.dll diff --git a/sfml-system-2.dll b/bin/sfml-system-2.dll similarity index 100% rename from sfml-system-2.dll rename to bin/sfml-system-2.dll diff --git a/sfml-window-2.dll b/bin/sfml-window-2.dll similarity index 100% rename from sfml-window-2.dll rename to bin/sfml-window-2.dll diff --git a/data b/data new file mode 120000 index 0000000..b021f22 --- /dev/null +++ b/data @@ -0,0 +1 @@ +bin/data \ No newline at end of file diff --git a/make.ps1 b/make.ps1 index c5d1557..e1e65f3 100644 --- a/make.ps1 +++ b/make.ps1 @@ -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 } } @@ -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 } } \ No newline at end of file