-
Notifications
You must be signed in to change notification settings - Fork 1
Expand data for star collector game #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9b3686b
add new star collector fields and refactor timer to pull elapsed time
K-Meech 5f2a8b5
add adaptive level and star fall speed
K-Meech fb49300
add draft of star collector save data docs
K-Meech 982de8b
report capped speed correctly in log
K-Meech 4654936
record head velocity over star collector game
K-Meech 7440aef
don't record when the player goes out of range
K-Meech a535061
Merge branch 'km/star-map-data' of github.com:UCL/AstroBalance into k…
K-Meech fa4a5a3
update star collector docs with new column names
K-Meech d7089e3
Merge branch 'main' of github.com:UCL/AstroBalance into km/star-colle…
K-Meech 402bf96
shorten GetTimeRemaining call
K-Meech fb4730e
refactor rounding functions into utility class
K-Meech 8956504
say explicitly that out of range times are excluded
K-Meech 74b03d6
record session and game number for star collector
K-Meech 60b05f1
add head velocity variables to editable values
K-Meech bb07663
rename velocity to speed
K-Meech ce697d0
move standard deviation to MathsUtilities
K-Meech 25fff7b
add further explanation of how speeds are calculated
K-Meech d30385b
Clarify that absolute differences are used for speed
K-Meech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
| using UnityEngine; | ||
|
|
||
| public static class MathsUtilities | ||
| { | ||
| public static int RoundToNearestInt(float number) | ||
| { | ||
| return Mathf.FloorToInt(number + 0.5f); | ||
| } | ||
|
|
||
| public static float RoundTo2DecimalPlaces(float number) | ||
| { | ||
| return (float)Mathf.FloorToInt((number * 100) + 0.5f) / 100; | ||
| } | ||
|
|
||
| public static float StandardDeviation(List<float> numbers) | ||
| { | ||
| float average = numbers.Average(); | ||
| return Mathf.Sqrt(numbers.Average(v => Mathf.Pow(v - average, 2))); | ||
| } | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.