Commit Graph

20 Commits

Author SHA1 Message Date
Shaun Reed 85c0d5fffe Add screenshot to README, fix EXP bar sprite scaling 2020-11-23 16:54:08 -05:00
Shaun Reed 20ff747b7b Fixed changing shapes
- Changing shapes no longer breaks menu functions
- Moved all Change...() functions related to Player in SpinningCube.cs
to ToggleMenus.cs script
-- Add saving needed data
--Color, shape (Speed between shapes, etc..)

-Created two new functions to replace 10+ small functions with switch
case
-ChangeShape(string shape) & ChangeColor(string color)
2017-09-06 20:05:59 -04:00
Shaun Reed 22c303d686 improvements to notifications
Handles popup collision
-Levelups tossed to the left
-Exp values combined into one popup
--Add EXP/s or EXP/min?
2017-09-05 21:41:56 -04:00
Shaun Reed 1bcca0e925 Reworked (bad)notification system
- Reduced huge amount of fluff logic, loops, conditionals
- Fixed infinite loop within 4+ calls to SendNotification()
-- Replaced with new function MakePopup(string contents)
-- Spawns a prefab, can call as much as you want (overlapping issue)
-Add combining of colliding Popups with similar contents (exp)
-- Add a tag passed into MakePopup() as argument used to combine similar
values ( and increase time left to Destroy(), raise speed of transform
to move away from other popups)
- Popups rotate within a range of -4 to 4 for trendy not-perfect look
*shrug*
2017-09-05 18:12:08 -04:00
Shaun Reed 33664d2735 Added basic notification system
-Works with minimal calls to SendNotification(), infinite loop possible
on multiple calls
-Add to MoreExp()
--Add case for multiple notifications of same type combining value
--If notification timer > maxTime
---expRate = expNotifyValue / secondsPassed
---Display Exp/s instead of continuously growing value
2017-09-04 19:53:18 -04:00
Shaun Reed cc86eabeef Fixed LevelUp()
-No longer resets exp to 0, limiting to one level per AFK
--Instead, { currentExp -= previousRequirement; }
2017-09-04 15:30:19 -04:00
Shaun Reed a04e1e1225 Fixed idleExp not working on android
Fixed idleExp only working through unity editor, now works on
application built to an android device through OnApplicationFocus()
2017-09-04 14:56:21 -04:00
Shaun Reed 0bae48932e Excluded file from last commit
Forgot one!
- Adds rotationPerSec & secPerRotation
2017-09-04 13:55:53 -04:00
Shaun Reed c868d738b9 Improved scripting
-Added accurate rotationPerSec & secondPerRot values!... Up to a speed
of ~720.
--Used for new idle expgain calculation in Load()
-Added scripting for assigning button events within
InitializeButtonArrays()
--stored all buttons to arrays depending on contents of the parent UI
panel's name
--mainButtons[], rotationButtons[], colorButtons[]... etc
--Future buttons will automatically exist within the array, only events
need assigning.
--Buttons do not include tick boxes, etc!
--Buttons cannot have onClick() even assigned through editor (Unity
bug?)
2017-09-04 13:53:03 -04:00
Shaun Reed ea55db656d Added experience gain while idle
- Might be off, could understand radians better
- Add popup for displaying idle exp gained
2017-09-03 21:46:47 -04:00
Shaun Reed 90948610cd Fixed Formatting
Removed unused variables
Added Save() to OnDestroy() within all scripts related to PlayerData
2017-09-03 19:47:23 -04:00
Shaun Reed a339149a71 Added saving and loading
Added PlayerData class to GamerManager.cs
- Stored in Application.PersistantDataPath + "/playerInfo.dat"
- Safer way to store / transfer data?
- Add saving of local time when calling Save() or Load()
- Compare save time to load time and give afk rewards earned based on
rotation speed
2017-09-03 18:56:05 -04:00
Shaun Reed f20d8340bb Added rotation count
Added rotation count to SpinningCube.cs
-Change increment to change amount of speed added per level
2017-09-03 15:58:42 -04:00
Shaun Reed 12775c8ef7 Reworked ExperienceBar.cs
-Alters expBarSprite's fill amount according to % ( exp gained /
required )
-Scales according to viewport
-Used Mathf.Lerp() to smooth bar growth over time.deltatime * lerpSpeed
-Added clicks integer to keep track of total clicks

Needs:
-Delevel if ExpLess() called until expObtained < previousExpRequired
-Create function to query for previous and future level requirements
returned and stored within structs
2017-08-26 18:31:01 -04:00
Shaun Reed ad57d40c70 Relocated Asset Packs
Any scripts contained in subdirectory "WebPlayerTemplates/" will not be
compiled
-Fixes build errors created from reference scripts within Ultimate GUI
Kit
2017-08-26 17:21:24 -04:00
Shaun Reed ef64fc5c08 Added UI sprites
Imported Ultimate GUI Kit from Asset Store
- Added sprites for displaying level and exp
2017-08-26 15:52:29 -04:00
Shaun Reed 77d29a4dc4 Updated RectTransforms, tags
-Fixed messy RectTransforms, cleaned up scaling of UI across different
resolutions

-Prints level correctly in landscape view

-Added red 'container' that doubles as mask for displaying EXP gained

Needs:
-Scale exp bar, drawn within ExperienceBar script
2017-08-26 12:30:46 -04:00
Shaun Reed d13bd095be Save First!
Doh!
2017-08-23 11:11:39 -04:00
Shaun Reed 3251ae85b6 Fixed ExperienceBar.cs
Fixed bar filling up before gaining require exp
Added exp curve (required + required^1.05)
Removed fixed levels, added infinite progression
Fixed clicksNeeded to account for expObtained
Added ExpReset() and ExpLess()

Needs:
Click count
Better debug logs
Delevel if previousExpRequired>expObtained  ( When using ExpLess() )
--Exponential equation to determine infinite previous levels without
storing them individually?
2017-08-23 11:11:04 -04:00
Shaun Reed 91a7f533a1 Initial Commit
Exp bar and Levels.
Rethink ExperienceBar and ToggleMenus scripts
2017-08-22 13:29:01 -04:00