Skip to content
This repository was archived by the owner on Jun 12, 2025. It is now read-only.

Commit 513c547

Browse files
author
Patrick Rye
committed
Update to v 1.5.3c
I really need to stop looking at this or else I'm just gonna rewrite the entire thing. It just looked so awful I couldn't help but change it. Added Proper Header and Cpp files. Fixed some spelling mistakes Cleaned up some code Added Global Debug value After this no more updates (maybe)
1 parent 4e7ed76 commit 513c547

File tree

20 files changed

+2506
-2461
lines changed

20 files changed

+2506
-2461
lines changed

Compile.bat

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,18 @@ cd %~dp0src
2626
echo Compiling source files...
2727
::Complie each of the cpp files
2828
echo Compiling main.cpp...
29-
g++ -std=c++11 -w -Os -O3 -c main.cpp
29+
g++ -w -Os -s -c main.cpp
30+
echo Compiling basic.cpp...
31+
g++ -w -Os -s -c basic.cpp
32+
echo Compiling battle.cpp
33+
g++ -w -Os -s -c battle.cpp
34+
echo Compiling rooms.cpp
35+
g++ -w -Os -s -c rooms.cpp
36+
echo Compiling save.cpp
37+
g++ -w -Os -s -c save.cpp
38+
echo Compiling spells.cpp
39+
g++ -w -Os -s -c spells.cpp
40+
3041

3142
::Move back to the main directory
3243
cd %~dp0
@@ -35,15 +46,19 @@ echo.
3546

3647
::Complie everything together!
3748
echo Linking everything together...
38-
g++ -std=c++11 -w -Os -O3 -o Attacker-The-Game.exe %~dp0src\main.o %~dp0res\my_icon.res %~dp0res\boilerplate.res
49+
g++ -w -Os -s -o Attacker-The-Game.exe %~dp0src\main.o %~dp0src\basic.o %~dp0src\rooms.o %~dp0src\battle.o %~dp0src\save.o %~dp0src\spells.o %~dp0res\my_icon.res %~dp0res\boilerplate.res
3950

4051
echo.
4152
::Delete all the leftover parts
4253
echo Deleting object files...
4354
IF EXIST %~dp0res\boilerplate.res del /F %~dp0res\boilerplate.res
4455
IF EXIST %~dp0res\my_icon.res del /F %~dp0res\my_icon.res
4556
IF EXIST %~dp0src\main.o del /F %~dp0src\main.o
46-
57+
IF EXIST %~dp0src\basic.o del /F %~dp0src\basic.o
58+
IF EXIST %~dp0src\battle.o del /F %~dp0src\battle.o
59+
IF EXIST %~dp0src\rooms.o del /F %~dp0src\rooms.o
60+
IF EXIST %~dp0src\save.o del /F %~dp0src\save.o
61+
IF EXIST %~dp0src\spells.o del /F %~dp0src\spells.o
4762
echo.
4863

4964
echo Done!

docs/ChangesLog.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
24 August 2015
2+
Released version 1.5.3c
3+
4+
Change log:
5+
-Added: Proper Header Files
6+
-Fixed: Spelling mistakes
7+
-Updated: I keep saying I'm not gonna update this anymore but I was looking at it and I just couldn't deal with how bad it was and had to fix it a bit.
8+
-Cleaned: Code
9+
-Fixed: Autoversion (keeps getting messed up)
10+
-Added: Global Debug Value
11+
112
22 August 2015
213
Released version 1.5.2c
314

project/Attacker-The-Game.cbp

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,32 @@
4747
<Option compilerVar="WINDRES" />
4848
<Option weight="99" />
4949
</Unit>
50+
<Unit filename="../src/basic.cpp">
51+
<Option weight="38" />
52+
</Unit>
5053
<Unit filename="../src/basic.h" />
54+
<Unit filename="../src/battle.cpp" />
5155
<Unit filename="../src/battle.h" />
52-
<Unit filename="../src/main.cpp" />
56+
<Unit filename="../src/global.h" />
57+
<Unit filename="../src/main.cpp">
58+
<Option weight="25" />
59+
</Unit>
60+
<Unit filename="../src/main.h" />
61+
<Unit filename="../src/rooms.cpp" />
5362
<Unit filename="../src/rooms.h" />
63+
<Unit filename="../src/save.cpp">
64+
<Option weight="70" />
65+
</Unit>
5466
<Unit filename="../src/save.h" />
67+
<Unit filename="../src/spells.cpp">
68+
<Option weight="61" />
69+
</Unit>
5570
<Unit filename="../src/spells.h" />
5671
<Unit filename="../src/version.h" />
5772
<Extensions>
5873
<AutoVersioning>
59-
<Scheme minor_max="99" build_max="0" rev_max="0" rev_rand_max="999" build_times_to_increment_minor="500" />
60-
<Settings autoincrement="1" date_declarations="1" use_define="1" update_manifest="1" do_auto_increment="1" ask_to_increment="0" language="C++" svn="0" svn_directory="" header_path="..\src\version.h" />
74+
<Scheme minor_max="99" build_max="0" rev_max="0" rev_rand_max="999999" build_times_to_increment_minor="500" />
75+
<Settings autoincrement="1" date_declarations="1" use_define="1" update_manifest="1" do_auto_increment="1" ask_to_increment="1" language="C++" svn="0" svn_directory="" header_path="..\src\version.h" />
6176
<Changes_Log show_changes_editor="1" app_title="Released version %M.%m.%b%t" changeslog_path="..\docs\ChangesLog.txt" />
6277
<Code header_guard="__VERSION_HEADER__" namespace="Version" prefix="DEFINED_VER" />
6378
</AutoVersioning>

project/NP++ Workspace.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<NotepadPlus>
2+
<Project name="Attacker-The-Game">
3+
<Folder name="src">
4+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\src\main.cpp" />
5+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\src\main.h" />
6+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\src\basic.cpp" />
7+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\src\basic.h" />
8+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\src\battle.cpp" />
9+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\src\battle.h" />
10+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\src\rooms.h" />
11+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\src\save.cpp" />
12+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\src\save.h" />
13+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\src\spells.cpp" />
14+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\src\spells.h" />
15+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\src\version.h" />
16+
</Folder>
17+
<Folder name="res">
18+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\res\boilerplate.rc" />
19+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\res\my_icon.rc" />
20+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\res\Readme.md" />
21+
</Folder>
22+
<Folder name="docs">
23+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\docs\ChangesLog.txt" />
24+
<File name="C:\Users\Patrick.Rye\Documents\GitHub\Attacker-The-Game\docs\LICENSE" />
25+
</Folder>
26+
</Project>
27+
</NotepadPlus>

project/ReadMe.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ This folder will hold the project files that are generated by Code::Blocks
55
You will only need this if you are using Code::Blocks and even then only if you want the same settings I use.
66

77
You can ignore this.
8+
9+
Also has the Workspace the Notepad++ uses since I also use that.

src/Readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Source Folder
2+
3+
This will hold all the source files for the program.

0 commit comments

Comments
 (0)