Commit Graph

8 Commits

Author SHA1 Message Date
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 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 91a7f533a1 Initial Commit
Exp bar and Levels.
Rethink ExperienceBar and ToggleMenus scripts
2017-08-22 13:29:01 -04:00