Fixes Issue #102. Typo involving abs() boolean resolution instead of resolving the float. Added extra connection point between Stage II-V and B-II Release Build 12329.
Some checks failed
Emscripten Build / Build_and_Deploy_Web_Build (push) Has been cancelled
Some checks failed
Emscripten Build / Build_and_Deploy_Web_Build (push) Has been cancelled
This commit is contained in:
parent
e673d9c2f4
commit
6355054d6c
@ -111,7 +111,6 @@ void State_OverworldMap::OnUserUpdate(AiL*game){
|
||||
if(Unlock::IsUnlocked(cp)){
|
||||
UpdateCurrentConnectionPoint(cp);
|
||||
playerTargetPos=currentConnectionPoint->rect.pos+currentConnectionPoint->rect.size/2+vf2d{0,16};
|
||||
if(abs(game->KEY_SCROLLHORZ_L.Analog())>=0.2f||abs(game->KEY_SCROLLVERT_L.Analog()>=0.2f))analogMove=true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -125,17 +124,16 @@ void State_OverworldMap::OnUserUpdate(AiL*game){
|
||||
if(game->KEY_DOWN.Pressed()||game->KEY_SCROLLVERT_L.Analog()>=0.2f)targetDirection=ConnectionPoint::SOUTH;
|
||||
if(game->KEY_LEFT.Pressed()||game->KEY_SCROLLHORZ_L.Analog()<=-0.2f)targetDirection=ConnectionPoint::WEST;
|
||||
|
||||
|
||||
if(neighborInd==-1){
|
||||
directionInd++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
ConnectionPoint&neighbor=ConnectionPointFromIndex(neighborInd);
|
||||
if(Unlock::IsUnlocked(neighbor.unlockCondition)&&targetDirection==directionInd){
|
||||
UpdateCurrentConnectionPoint(neighbor);
|
||||
playerTargetPos=currentConnectionPoint->rect.pos+currentConnectionPoint->rect.size/2+vf2d{0,16};
|
||||
if(abs(game->KEY_SCROLLHORZ_L.Analog())>=0.2f||abs(game->KEY_SCROLLVERT_L.Analog()>=0.2f))analogMove=true;
|
||||
if(abs(game->KEY_SCROLLHORZ_L.Analog())>=0.2f||abs(game->KEY_SCROLLVERT_L.Analog())>=0.2f)analogMove=true;
|
||||
break;
|
||||
}
|
||||
directionInd++;
|
||||
@ -143,9 +141,7 @@ void State_OverworldMap::OnUserUpdate(AiL*game){
|
||||
}
|
||||
#pragma endregion
|
||||
doneNavigating:
|
||||
if(abs(game->KEY_SCROLLVERT_L.Analog())<0.2f&&abs(game->KEY_SCROLLHORZ_L.Analog())<0.2f){
|
||||
analogMove=false;
|
||||
}
|
||||
if(analogMove&&abs(game->KEY_SCROLLVERT_L.Analog())<0.2f&&abs(game->KEY_SCROLLHORZ_L.Analog())<0.2f)analogMove=false;
|
||||
|
||||
game->ClearTimedOutGarbage();
|
||||
};
|
||||
|
||||
@ -39,7 +39,7 @@ All rights reserved.
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 3
|
||||
#define VERSION_PATCH 0
|
||||
#define VERSION_BUILD 12264
|
||||
#define VERSION_BUILD 12329
|
||||
|
||||
#define stringify(a) stringify_(a)
|
||||
#define stringify_(a) #a
|
||||
|
||||
@ -803,6 +803,7 @@
|
||||
<object id="31" name="Stage B-II" type="StagePlate" x="233" y="65" width="42" height="14">
|
||||
<properties>
|
||||
<property name="Connection 2 - East" type="object" value="30"/>
|
||||
<property name="Connection 4 - West" type="object" value="24"/>
|
||||
<property name="Map" propertytype="Level" value="CAMPAIGN_2_B1"/>
|
||||
<property name="Type" propertytype="StageType" value="DUNGEON"/>
|
||||
<property name="Unlock Condition" propertytype="Level" value="CAMPAIGN_2_5"/>
|
||||
@ -1103,8 +1104,5 @@
|
||||
<property name="Unlock Condition" propertytype="Level" value="STORY_2_1"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="65" x="261" y="447" width="130" height="46">
|
||||
<text fontfamily="Courier New" pixelsize="9" wrap="1" color="#ff0000" bold="1">NOTE: Nothing should be connected to the initial stage plate!!</text>
|
||||
</object>
|
||||
</objectgroup>
|
||||
</map>
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user