@ -0,0 +1,54 @@ |
||||
#pragma region License |
||||
/*
|
||||
License (OLC-3) |
||||
~~~~~~~~~~~~~~~ |
||||
|
||||
Copyright 2024 Joshua Sigona <sigonasr2@gmail.com> |
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, |
||||
are permitted provided that the following conditions are met: |
||||
|
||||
1. Redistributions or derivations of source code must retain the above copyright |
||||
notice, this list of conditions and the following disclaimer. |
||||
|
||||
2. Redistributions or derivative works in binary form must reproduce the above |
||||
copyright notice. This list of conditions and the following disclaimer must be |
||||
reproduced in the documentation and/or other materials provided with the distribution. |
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may |
||||
be used to endorse or promote products derived from this software without specific |
||||
prior written permission. |
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY |
||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
||||
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED |
||||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
||||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
||||
SUCH DAMAGE. |
||||
|
||||
Portions of this software are copyright © 2024 The FreeType |
||||
Project (www.freetype.org). Please see LICENSE_FT.txt for more information. |
||||
All rights reserved. |
||||
*/ |
||||
#pragma endregion |
||||
#include "SteamStatsReceivedHandler.h" |
||||
#include "olcUTIL_DataFile.h" |
||||
#include "DEFINES.h" |
||||
#include "Unlock.h" |
||||
#include "config.h" |
||||
#include "Error.h" |
||||
|
||||
INCLUDE_DATA |
||||
|
||||
#ifndef __EMSCRIPTEN__ |
||||
void SteamStatsReceivedHandler::SteamStatsReceived( UserStatsReceived_t* pCallback ){ |
||||
if(pCallback->m_eResult==k_EResultOK){ |
||||
SteamUserStats()->GetStat("Achievement.Kill Unlocks.Total Kill API Name"_S.c_str(),&Unlock::monsterKillCount); |
||||
LOG(std::format("Retrieved monster kill count: {}",Unlock::monsterKillCount)); |
||||
} |
||||
} |
||||
#endif |
@ -0,0 +1,47 @@ |
||||
#pragma region License |
||||
/*
|
||||
License (OLC-3) |
||||
~~~~~~~~~~~~~~~ |
||||
|
||||
Copyright 2024 Joshua Sigona <sigonasr2@gmail.com> |
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, |
||||
are permitted provided that the following conditions are met: |
||||
|
||||
1. Redistributions or derivations of source code must retain the above copyright |
||||
notice, this list of conditions and the following disclaimer. |
||||
|
||||
2. Redistributions or derivative works in binary form must reproduce the above |
||||
copyright notice. This list of conditions and the following disclaimer must be |
||||
reproduced in the documentation and/or other materials provided with the distribution. |
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may |
||||
be used to endorse or promote products derived from this software without specific |
||||
prior written permission. |
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY |
||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
||||
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED |
||||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
||||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
||||
SUCH DAMAGE. |
||||
|
||||
Portions of this software are copyright © 2024 The FreeType |
||||
Project (www.freetype.org). Please see LICENSE_FT.txt for more information. |
||||
All rights reserved. |
||||
*/ |
||||
#pragma endregion |
||||
#pragma once |
||||
#ifndef __EMSCRIPTEN__ |
||||
#include "steam/steam_api.h" |
||||
#endif |
||||
|
||||
#ifndef __EMSCRIPTEN__ |
||||
class SteamStatsReceivedHandler{ |
||||
STEAM_CALLBACK(SteamStatsReceivedHandler,SteamStatsReceived,UserStatsReceived_t); |
||||
}; |
||||
#endif |
@ -1,3 +1,18 @@ |
||||
============================================ |
||||
Time Trial Idea |
||||
|
||||
Upon completing a stage for the first time, the player is shown the completion time and a record time. |
||||
On first clears, the player will always obtain a new record. Make it apparent to the player they obtained a new record. |
||||
|
||||
The overworld map will show a new section that says "Completion Time" for any previous completed stages. |
||||
Upon the second time entering a stage, the game will spawn a timer that the player can run into to begin a time trial-like mode. |
||||
During the Time Trial mode the player can defeat monsters to freeze the timer by 1 second per mob killed. |
||||
|
||||
Upon completion of a stage in time trial mode if the player beat their previous time (which they likely will) the record will update. |
||||
For each class and stage combination there will be a "dev time" |
||||
|
||||
Settings menu doesn't scroll back up properly while the scrollbar does? |
||||
Merchant descriptions have no newlines. |
||||
|
||||
============================================ |
||||
Consider a "killed by player" / "marked by player" flag for monsters to determine if a player gets credit for a monster kill (for achievements) |
||||
Make another actions config file for the main build (The app # is different) |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 102 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 101 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 104 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 103 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 104 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 155 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 168 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 127 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 120 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 101 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 117 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 108 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 64 KiB |
@ -0,0 +1,118 @@ |
||||
Achievement |
||||
{ |
||||
Area Unlocks |
||||
{ |
||||
# Area Unlocks are automatically checked when a new map unlock is achieved. |
||||
Camp Unlock |
||||
{ |
||||
API Name = "CAMP_UNLOCK" |
||||
Unlock Name = "STORY_1_1" |
||||
} |
||||
Blacksmith Unlock |
||||
{ |
||||
API Name = "BLACKSMITH_UNLOCK" |
||||
Unlock Name = "STORY_1_2" |
||||
} |
||||
Chapter 2 Unlock |
||||
{ |
||||
API Name = "CHAPTER1_COMPLETE" |
||||
Unlock Name = "STORY_1_3" |
||||
} |
||||
} |
||||
Kill Unlocks |
||||
{ |
||||
Total Kill API Name = "MONSTER_KILL_COUNT" |
||||
|
||||
# Achievements that start with "Kill Monsters" will be checked when a monster is killed. |
||||
Kill Monsters 1 |
||||
{ |
||||
API Name = "KILL_SLIME_1" |
||||
Monster Kill Count = 100 |
||||
} |
||||
Kill Monsters 2 |
||||
{ |
||||
API Name = "KILL_SLIME_2" |
||||
Monster Kill Count = 250 |
||||
} |
||||
Kill Monsters 3 |
||||
{ |
||||
API Name = "KILL_SLIME_3" |
||||
Monster Kill Count = 1000 |
||||
} |
||||
|
||||
################################## |
||||
|
||||
# For other Kill Encounter achievements, if they have a Monster Name the game looks for the name when a monster is killed and if it matches, you get awarded that achievement. |
||||
# If a Time Limit is included, the encounter must be a boss encounter and |
||||
Slime King |
||||
{ |
||||
API Name = "SLIME_KING" |
||||
Monster Name = "Slime King" |
||||
} |
||||
Slime King Destroyer |
||||
{ |
||||
API Name = "SLIME_KING_DESTROYER" |
||||
Time Limit = 60s |
||||
Monster Name = "Slime King" |
||||
} |
||||
Ursule |
||||
{ |
||||
API Name = "URSULE" |
||||
Monster Name = "Ursule, Mother of Bears" |
||||
} |
||||
Ursule Destroyer |
||||
{ |
||||
API Name = "URSULE_DESTROYER" |
||||
Time Limit = 60s |
||||
Monster Name = "Ursule, Mother of Bears" |
||||
} |
||||
} |
||||
Class Unlocks |
||||
{ |
||||
Warrior Lv5 |
||||
{ |
||||
API Name = "WARRIOR_LV5" |
||||
Class Requirement = Warrior |
||||
Level Requirement = 5 |
||||
} |
||||
Ranger Lv5 |
||||
{ |
||||
API Name = "RANGER_LV5" |
||||
Class Requirement = Ranger |
||||
Level Requirement = 5 |
||||
} |
||||
Wizard Lv5 |
||||
{ |
||||
API Name = "WIZARD_LV5" |
||||
Class Requirement = Wizard |
||||
Level Requirement = 5 |
||||
} |
||||
} |
||||
Equip Unlocks |
||||
{ |
||||
Weapon Lv5 |
||||
{ |
||||
API Name = "WEAPON_LV5" |
||||
Equip Slot = Weapon |
||||
Upgrade Requirement = 5 |
||||
} |
||||
Armor Lv5 |
||||
{ |
||||
API Name = "ARMOR_LV5" |
||||
Equip Slot = Helmet,Armor,Gloves,Pants,Shoes |
||||
Upgrade Requirement = 5 |
||||
} |
||||
Armor Lv10 |
||||
{ |
||||
API Name = "ARMOR_LV10" |
||||
Equip Slot = Helmet,Armor,Gloves,Pants,Shoes |
||||
Upgrade Requirement = 10 |
||||
} |
||||
Fully Decked Out |
||||
{ |
||||
API Name = "FULLY_DECKED_OUT" |
||||
Weapon Max Level = 5 |
||||
Armor Max Level = 10 |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 949 B |
@ -0,0 +1,2 @@ |
||||
clear |
||||
Get-Content "Adventures in Lestoria/debug.log" -Wait |