Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Adjust Arc
Browse files Browse the repository at this point in the history
  • Loading branch information
farkam135 committed Aug 23, 2016
1 parent 5d31f3e commit a9000b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/kamron/pogoiv/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ private void setupArcPoints(){
Data.arcY = new int[indices];

for (double pokeLevel = 1.0; pokeLevel <= trainerLevel + 1.5; pokeLevel += 0.5) {
double angleInDegrees = (Data.CpM[(int) (pokeLevel * 2 - 2)] - Data.CpM[0]) * 202.037116 / Data.CpM[trainerLevel * 2 - 2];
double angleInDegrees = (Data.CpM[(int) (pokeLevel * 2 - 2)] - Data.CpM[0]) * 202.04 / Data.CpM[trainerLevel * 2 - 2];
if (angleInDegrees > 1.0 && trainerLevel < 30) {
angleInDegrees -= 0.5;
} else if (trainerLevel >= 30) {
Expand Down

4 comments on commit a9000b1

@sarav
Copy link
Contributor

@sarav sarav commented on a9000b1 Aug 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes it a bit better on my device. The angle misalignment is better, but the "arc radius misalignment" still seems to be there -- the one where it goes to the right of the arc at the max level.

@sarav
Copy link
Contributor

@sarav sarav commented on a9000b1 Aug 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, I'm wondering if part of the misalignment is due to storing the arc center in integer. Should the real center of a 720px width be (720/2 + .5) = 360.5? I wonder if that matters when it comes to drawing the red dot.

@archon810
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@farkam135 Why did the signature change between 2.1 and 2.2 for release versions? Did you accidentally use the wrong key to sign 2.2?

@farkam135
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@archon810 Old key got corrupt, backed up the new key so there shouldn't be anymore problems.

Please sign in to comment.