Linux changes and fixes

master
sigonasr2 2 months ago
parent d0db3412d9
commit a16ca296c7
  1. 13
      Adventures in Lestoria/AdventuresInLestoria.h
  2. 4
      Adventures in Lestoria/Item.cpp
  3. 4
      Adventures in Lestoria/Item.h
  4. 4
      Adventures in Lestoria/ItemEnchant.h
  5. 4
      Adventures in Lestoria/MonsterSoul.cpp
  6. 1
      debugGame.sh
  7. 4
      distribute.sh
  8. 2
      release.sh

@ -60,6 +60,12 @@ All rights reserved.
#include "Overlay.h"
#include <variant>
#undef KEY_MENU
#undef KEY_SELECT
#undef KEY_SCROLLDOWN
#undef KEY_SCROLLUP
#undef KEY_ENTER
class SteamKeyboardCallbackHandler;
class SteamStatsReceivedHandler;
@ -161,8 +167,10 @@ public:
double levelTime=0.;
Camera2D camera;
std::map<MapName,Map>MAP_DATA;
ResourcePack gamepack;
private:
std::vector<std::unique_ptr<Effect>>foregroundEffects,backgroundEffects,foregroundEffectsToBeInserted,backgroundEffectsToBeInserted;
std::vector<std::unique_ptr<Effect>>foregroundEffects,backgroundEffects,foregroundEffectsToBeInserted,backgroundEffectsToBeInserted;
std::vector<TileRenderData*>tilesWithCollision,tilesWithoutCollision;
std::vector<int>dropsBeforeLower,dropsAfterLower,dropsBeforeUpper,dropsAfterUpper;
std::vector<ZoneData>endZones,upperEndZones;
@ -215,7 +223,6 @@ private:
float lastMouseMovement=0.f; //Amount of time since the last time the cursor was moved or interacted with.
vi2d lastMousePos={};
bool gameInitialized=false;
ResourcePack gamepack;
uint8_t mosaicEffectTransition=1U;
float saveGameDisplayTime=0.f;
float loadingWaitTime=0.f;
@ -423,4 +430,4 @@ public:
return layer<rhs.layer||(layer==rhs.layer&&tilePos<rhs.tilePos);
}
};
};
};

@ -807,7 +807,7 @@ const std::string&ItemInfo::Description()const{
const ITCategory ItemInfo::Category()const{
return category;
}
const::Renderable&const ItemInfo::Icon()const{
const::Renderable&ItemInfo::Icon()const{
return img.value().get();
}
const ItemScript&ItemInfo::OnUseAction()const{
@ -1537,4 +1537,4 @@ const ItemEnchantInfo Item::ApplyRandomEnchant(){
Inventory::RemoveItem(FragmentName(),"Fragment Enchant Cost"_i[0]);
game->GetPlayer()->RemoveMoney("Fragment Enchant Cost"_i[1]);
return ItemEnchantInfo::GetEnchant(randomEnchantName);
}
}

@ -388,7 +388,7 @@ public:
const std::string&Name()const;
const std::string&Description()const;
const ITCategory Category()const;
const::Renderable&const Icon()const;
const::Renderable& Icon()const;
static const EquipSlot StringToEquipSlot(std::string_view slotName);
/*
For the useFunc, return true if the item can be used, false otherwise.
@ -436,4 +436,4 @@ public:
void ResetTimer();
};
#define ISBLANK(itemRef) Item::IsBlank(itemRef)
#define ISBLANK(itemRef) Item::IsBlank(itemRef)

@ -117,11 +117,11 @@ public:
std::map<ItemAttribute,float>::const_iterator begin()const;
std::map<ItemAttribute,float>::const_iterator end()const;
const Pixel&DisplayCol()const;
const std::optional<std::reference_wrapper<Ability>>Ability()const;
const std::optional<std::reference_wrapper<::Ability>>Ability()const;
private:
void UpdateDescription();
const ItemEnchantInfo&GetEnchantInfo()const;
std::string enchantName;
std::string description;
ItemAttributable stats;
};
};

@ -38,7 +38,7 @@ All rights reserved.
#include "Effect.h"
#include "util.h"
#include "AdventuresinLestoria.h"
#include "AdventuresInLestoria.h"
#include "SoundEffect.h"
INCLUDE_game
@ -89,4 +89,4 @@ void MonsterSoul::Draw(const Pixel blendCol)const{
game->view.DrawRotatedDecal(pos-vf2d{0,GetZ()},GFX["monstersoulglow.png"].Decal(),0.f,GFX["monstersoulglow.png"].Sprite()->Size()/2,size*util::lerp(0.6f,1.4f,abs(sin(2*PI*lifetime))));
game->SetDecalMode(DecalMode::NORMAL);
Effect::Draw(blendCol);
}
}

@ -1,4 +1,5 @@
cd "Adventures in Lestoria"
mkdir "Adventures in Lestoria"
cp "discord_game_sdk.so" "Adventures in Lestoria"
cp "libsteam_api.so" "Adventures in Lestoria"
gdb ../bin/AdventuresInLestoria

@ -18,7 +18,7 @@ cp -R "Adventures in Lestoria/assets/themes" release/assets
cp -R "Adventures in Lestoria/assets/gamepack.pak" release/assets
cp -R "Adventures in Lestoria/assets/"*.ttf release/assets
cp -R "Adventures in Lestoria/controller_config" release
cp "Adventures in Lestoria/Adventures in Lestoria/"*.so "release/Adventures in Lestoria"
cp "Adventures in Lestoria/"*.so "release/Adventures in Lestoria"
cp -R bin release
rm release/*.pdb
@ -30,4 +30,4 @@ if [ \`bin/AdventuresInLestoria | wc -l\` -lt 20 ]; then
bin/AdventuresInLestoria nosteam
else
echo \"Success!\"
fi" > release/runGame.sh
fi" > release/runGame.sh

@ -1,2 +1,2 @@
git update-index --assume-unchanged "Adventures in Lestoria/packkey.cpp"
cmake -DCMAKE_BUILD_TYPE=Release .;make -j 8
cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release .;make -j 8

Loading…
Cancel
Save