Skip to content

Commit 3fede2f

Browse files
committed
Preparations for 1.1.0.
1 parent 2cbc044 commit 3fede2f

57 files changed

Lines changed: 1055 additions & 1006 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

manual/content/changelog.html

Lines changed: 1 addition & 284 deletions
Large diffs are not rendered by default.

manual/content/changelog_older.html

Lines changed: 283 additions & 0 deletions
Large diffs are not rendered by default.

manual/content/glossary.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,10 @@ <h2 id="S">S</h2>
502502
<dt>Spawn</dt>
503503
<dd>As a verb, it means "to make appear". When an object is created and placed into the game world, it is said that it has "spawned". As a noun, it refers to any object created by the current object.</dd>
504504
</dl>
505+
<dl id="spatial-navigation">
506+
<dt>Spatial navigation</dt>
507+
<dd><a href="https://en.wikipedia.org/wiki/Spatial_navigation">Spatial navigation</a> is when the user navigates in a menu, by focusing onto different items by inputting directions, as opposed to using the mouse to go to the items directly.</dd>
508+
</dl>
505509
<dl id="spike">
506510
<dt>Spike</dt>
507511
<dd>Spike damage is a special type of damage that only happens in retaliation. When an <a href="#object">object</a> is hurt, if it has spike damage configured, it will automatically hurt its attacker as well. Another type of spike damage happens when a Pikmin is swallowed; this allows White Pikmin to cause some damage to their predators.</dd>

manual/content/history.html

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,23 @@ <h2 id="roadmap">Roadmap</h2>
3434
<p>Many more features, content, and tweaks are still planned, but the following is a general outline of what major things still need to be finished, as well as a rough idea of what versions will contain what.</p>
3535

3636
<ul>
37-
<li>
38-
<b>Version 1.1</b>
39-
<ul>
40-
<li>GUI improvements</li>
41-
<li>Controls improvements</li>
42-
<li>Ice Pikmin and Glow Pikmin</li>
43-
</ul>
44-
</li>
4537
<li>
4638
<b>Version 1.2</b>
4739
<ul>
4840
<li>Ice Pikmin and Glow Pikmin</li>
41+
<li>Puffstool and Mushroom Pikmin</li>
4942
</ul>
5043
</li>
5144
<li>
52-
<b>Version 2.0</b>
45+
<b>Version 1.3</b>
5346
<ul>
54-
<li>Multiplayer</li>
47+
<li>Mission logic rework</li>
5548
</ul>
5649
</li>
5750
<li>
5851
<b>Later</b>
5952
<ul>
53+
<li>Multiplayer</li>
6054
<li>Caves</li>
6155
<li>More editors</li>
6256
<li>Story mode</li>

source/documents/misc_info.txt

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -460,16 +460,35 @@ Procedure for every version release
460460
Particularly the update's version number, release day, and nickname
461461
Double-check that it's organized, or if it could be sorted differently
462462
In order for the main changelog file to keep the most recent major/minor version (i.e. revisions are ignored for this count), move older versions to the older changelog document if needed
463+
Final cleanup
464+
Pass all code files through AStyle
465+
for f in $(find . -type f | egrep '.+\.(cpp|h)'); do astyle --options=../documents/astyle.txt -n $f; done
466+
Code cleanup
467+
Confirm that no line goes over 80 characters
468+
Use the helper tool, or run:
469+
grep -Enr --include="*.cpp" ^.\{81,\}$
470+
Confirm that all function definitions are sorted alphabetically, and by namespace
471+
Use the helper tool
472+
Confirm that all includes are sorted alphabetically
473+
Use the helper tool
474+
Confirm that all functions have documentation, and that it has no missing/extra parameters
475+
Use the helper tool
476+
Confirm that all function definitions and blocks of includes have two empty lines of space before what comes next
477+
Use the helper tool
478+
Fix up all changed images since the last release
479+
Use the helper tool to get the list, or run:
480+
git diff --name-status $(git describe --abbrev=0 --tags) | grep -E '^[AM].*(png|jpg)'
481+
Confirm that the most recent ground textures are a power of 2
482+
PNGCrush the png files
483+
This might help (make sure filelist.txt has LF linebreaks):
484+
cat filelist.txt | while read line; do pngcrush -brute $line $line.new; done;
463485
Release candidate
464486
Compile it for Windows
465487
Use GitHub Actions
466488
Or use Visual Studio
467-
Add all added source files, and remove removed source files, if needed
468-
Use the helper tool to get a list, or run:
469-
git diff --name-status $(git describe --abbrev=0 --tags) | grep ^\[AD\].source/source
470489
Confirm that the subsystem option in the release build's linker options is set to Windows
471490
Compile it on Windows with a release x64 target build
472-
Point down all changes that were necessary for this to compile
491+
Point down all changes that were necessary for it to compile
473492
Create a zip file (see below)
474493
Send it to beta testers so they can check for stuff that's immediately wrong
475494
After they're done, tell them to confirm that error_log.txt reported nothing
@@ -478,13 +497,6 @@ Procedure for every version release
478497
In-development is false, apply the correct release date
479498
Use the helper tool, or edit const.h and the *.rc files
480499
Update all area version numbers and engine version numbers
481-
Fix up all changed images since the last release
482-
Use the helper tool to get the list, or run:
483-
git diff --name-status $(git describe --abbrev=0 --tags) | grep -E '^[AM].*(png|jpg)'
484-
Confirm that the most recent ground textures are a power of 2
485-
PNGCrush the png files
486-
This might help (make sure filelist.txt has LF linebreaks):
487-
cat filelist.txt | while read line; do pngcrush -brute $line $line.new; done;
488500
Update the Allegro version number on the Compiling page of the manual, if it changed
489501
Check any changes made on Windows in order to compile, and port them over
490502
Final build
@@ -505,8 +517,6 @@ Procedure for every version release
505517
Use the helper tool, or edit const.h and the *.rc files
506518
Add to the todo for the start of the next version:
507519
Update Dear ImGui, and try compiling with IMGUI_DISABLE_OBSOLETE_FUNCTIONS defined
508-
Pass all code files through AStyle
509-
for f in $(find . -type f | egrep '.+\.(cpp|h)'); do astyle --options=../documents/astyle.txt -n $f; done
510520
If this is a big release:
511521
Compile with -Wall and correct all problems
512522
Use cppcheck on the code and correct the problems
@@ -519,18 +529,6 @@ Procedure for every version release
519529
Use Infer and correct problems
520530
infer run -o ~/Desktop/infer-out --report-block-list-files-containing "lib/imgui" -- make -f source/gnu_make/makefile debug
521531
Confirm that there are no superfluous #includes (how?)
522-
Code cleanup
523-
Confirm that no line goes over 80 characters
524-
Use the helper tool, or run:
525-
grep -Enr --include="*.cpp" ^.\{81,\}$
526-
Confirm that all function definitions are sorted alphabetically, and by namespace
527-
Use the helper tool
528-
Confirm that all includes are sorted alphabetically
529-
Use the helper tool
530-
Confirm that all functions have documentation, and that it has no missing/extra parameters
531-
Use the helper tool
532-
Confirm that all function definitions and blocks of includes have two empty lines of space before what comes next
533-
Use the helper tool
534532
Fix up all changed SVG files
535533
Use the helper tool to get the list, or run:
536534
git diff --name-status $(git describe --abbrev=0 --tags) | grep -E '^[AM].*svg'

source/source/content/mob/enemy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void Enemy::finishDyingClassSpecifics() {
150150
/**
151151
* @brief Returns how many mission points this mob is currently worth, or
152152
* 0 if not applicable.
153-
*
153+
*
154154
* @param applicableInThisMission If not nullptr, whether the points are
155155
* applicable in this mission or not is returned here.
156156
* @return The point amount.

source/source/content/mob/leader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class Leader : public Mob {
137137

138138
//Timer for the animation of the health wheel's caution ring.
139139
float healthWheelCautionTimer = 0.0f;
140-
140+
141141
//Health wheel shaker for when the leader takes damage.
142142
Shaker healthWheelShaker;
143143

source/source/content/mob/mob_enums.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ enum FRACTION_NR_VISIBILITY {
142142

143143
//There is nothing to show.
144144
FRACTION_NR_VISIBILITY_NONE,
145-
145+
146146
//There is info, but should stay hidden till the leader cursor is on it.
147147
FRACTION_NR_VISIBILITY_CURSOR,
148-
148+
149149
//There is information that should be shown.
150150
FRACTION_NR_VISIBILITY_ALWAYS,
151151

source/source/content/mob/mob_utils.cpp

Lines changed: 43 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,49 @@ PikminNestType::~PikminNestType() {
10311031
}
10321032

10331033

1034+
/**
1035+
* @brief Creates a bitmap containing smoothed colors between the nest's
1036+
* types.
1037+
*/
1038+
void PikminNestType::createColormap() {
1039+
if(pikTypes.empty()) return;
1040+
1041+
//Create a keyframe interpolator that smoothly transitions
1042+
//between each type's color.
1043+
KeyframeInterpolator<ALLEGRO_COLOR> ki(pikTypes[0]->mainColor);
1044+
float span = 1;
1045+
if(pikTypes.size() > 1) {
1046+
span = 1.0f / (pikTypes.size() - 1);
1047+
}
1048+
for(size_t i = 1; i < pikTypes.size(); i++) {
1049+
ki.add(span * i, pikTypes[i]->mainColor, EASE_METHOD_IN_OUT);
1050+
}
1051+
1052+
//Add a darker variant for single-type Onions.
1053+
if(pikTypes.size() == 1) {
1054+
ALLEGRO_COLOR c =
1055+
al_map_rgb_f(
1056+
pikTypes[0]->mainColor.r * 0.4f,
1057+
pikTypes[0]->mainColor.g * 0.4f,
1058+
pikTypes[0]->mainColor.b * 0.4f
1059+
);
1060+
ki.add(1.0, c, EASE_METHOD_IN_OUT);
1061+
}
1062+
1063+
//Create the texture.
1064+
ALLEGRO_BITMAP* oldTargetBmp = al_get_target_bitmap();
1065+
int oldBmpFlags = al_get_new_bitmap_flags();
1066+
al_set_new_bitmap_flags(0); //Prevents automatic smoothing -- leads to gaps.
1067+
menuColormap = al_create_bitmap(100, 1);
1068+
al_set_target_bitmap(menuColormap);
1069+
for(int i = 0; i < 100; i++) {
1070+
al_put_pixel(i, 0, ki.get(i / 100.0f));
1071+
}
1072+
al_set_target_bitmap(oldTargetBmp);
1073+
al_set_new_bitmap_flags(oldBmpFlags);
1074+
}
1075+
1076+
10341077
/**
10351078
* @brief Loads nest-related properties from a data file.
10361079
*
@@ -1086,50 +1129,6 @@ void PikminNestType::loadProperties(DataNode* file, MobType* mobType) {
10861129
}
10871130

10881131

1089-
/**
1090-
* @brief Creates a bitmap containing smoothed colors between the nest's
1091-
* types.
1092-
*
1093-
*/
1094-
void PikminNestType::createColormap() {
1095-
if(pikTypes.empty()) return;
1096-
1097-
//Create a keyframe interpolator that smoothly transitions
1098-
//between each type's color.
1099-
KeyframeInterpolator<ALLEGRO_COLOR> ki(pikTypes[0]->mainColor);
1100-
float span = 1;
1101-
if(pikTypes.size() > 1) {
1102-
span = 1.0f / (pikTypes.size() - 1);
1103-
}
1104-
for(size_t i = 1; i < pikTypes.size(); i++) {
1105-
ki.add(span * i, pikTypes[i]->mainColor, EASE_METHOD_IN_OUT);
1106-
}
1107-
1108-
//Add a darker variant for single-type Onions.
1109-
if(pikTypes.size() == 1) {
1110-
ALLEGRO_COLOR c =
1111-
al_map_rgb_f(
1112-
pikTypes[0]->mainColor.r * 0.4f,
1113-
pikTypes[0]->mainColor.g * 0.4f,
1114-
pikTypes[0]->mainColor.b * 0.4f
1115-
);
1116-
ki.add(1.0, c, EASE_METHOD_IN_OUT);
1117-
}
1118-
1119-
//Create the texture.
1120-
ALLEGRO_BITMAP* oldTargetBmp = al_get_target_bitmap();
1121-
int oldBmpFlags = al_get_new_bitmap_flags();
1122-
al_set_new_bitmap_flags(0); //Prevents automatic smoothing -- leads to gaps.
1123-
menuColormap = al_create_bitmap(100, 1);
1124-
al_set_target_bitmap(menuColormap);
1125-
for(int i = 0; i < 100; i++) {
1126-
al_put_pixel(i, 0, ki.get(i / 100.0f));
1127-
}
1128-
al_set_target_bitmap(oldTargetBmp);
1129-
al_set_new_bitmap_flags(oldBmpFlags);
1130-
}
1131-
1132-
11331132
/**
11341133
* @brief Constructs a new track ride info struct object.
11351134
*

source/source/content/mob/pile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ FRACTION_NR_VISIBILITY Pile::getFractionNumbersInfo(
8484
/**
8585
* @brief Returns how many mission points this mob is currently worth, or
8686
* 0 if not applicable.
87-
*
87+
*
8888
* @param applicableInThisMission If not nullptr, whether the points are
8989
* applicable in this mission or not is returned here.
9090
* @return The point amount.

0 commit comments

Comments
 (0)