Minimap shadow ring implemented. Release Build 8904.

pull/57/head
sigonasr2 8 months ago
parent ef7fc2c826
commit 4c8a251e33
  1. 18
      Adventures in Lestoria/Minimap.cpp
  2. 4
      Adventures in Lestoria/TODO.txt
  3. 2
      Adventures in Lestoria/Version.h
  4. BIN
      x64/Release/Adventures in Lestoria.exe

@ -141,9 +141,25 @@ void Minimap::Reset(){
for(const ZoneData&zone:game->GetZones().at("EndZone")){
vf2d ringPos=zone.zone.pos/game->GetCurrentMapData().TileSize;
vf2d ringSize=zone.zone.size/game->GetCurrentMapData().TileSize;
vf2d ringCenter=ringPos+ringSize/2;
for(int y=0;y<=ringSize.y;y++){
for(int x=0;x<=ringSize.x;x++){
minimap.Sprite()->SetPixel(ringPos+vi2d{x,y},GREEN);
float ringRadiusX=ringSize.x/2;
float ringRadiusY=ringSize.y/2;
float distanceFromCenterX=abs(ringCenter.x-(ringPos.x+x));
float distanceFromCenterY=abs(ringCenter.y-(ringPos.y+y));
if(distanceFromCenterX<ringRadiusX&&distanceFromCenterY<ringRadiusY){
for(int shadowY=-1;shadowY<=1;shadowY++){
for(int shadowX=-1;shadowX<=1;shadowX++){
if(shadowX==0&&shadowY==0)continue;
if(minimap.Sprite()->GetPixel(ringPos+vi2d{x+shadowX,y+shadowY})!=GREEN){
minimap.Sprite()->SetPixel(ringPos+vi2d{x+shadowX,y+shadowY},BLACK);
}
}
}
minimap.Sprite()->SetPixel(ringPos+vi2d{x,y},GREEN);
}
}
}
}

@ -13,4 +13,6 @@ Upon completion of a stage in time trial mode if the player beat their previous
Settings menu doesn't scroll back up properly while the scrollbar does?
Traveling merchants of different colors/looks.
Steel Weapons appear in the demo for Chapter 2.
Look into removing OVERRIDE from rumble settings. It looks like it was used to purposefully disable rumble, but looks very unnecessary.
Look into removing OVERRIDE from rumble settings. It looks like it was used to purposefully disable rumble, but looks very unnecessary.
Move old maps from master branch into demo branch (has boundary changes)

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1
#define VERSION_MINOR 1
#define VERSION_PATCH 0
#define VERSION_BUILD 8901
#define VERSION_BUILD 8904
#define stringify(a) stringify_(a)
#define stringify_(a) #a

Loading…
Cancel
Save