Skip to content

Commit

Permalink
XP tilemap animations now display at the right speed
Browse files Browse the repository at this point in the history
  • Loading branch information
20kdc committed Jan 24, 2018
1 parent 14fc869 commit 276176d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/r48/map/tiles/XPTileRenderer.java
Expand Up @@ -154,8 +154,9 @@ public AutoTileTypeField[] indicateATs() {

@Override
public int getFrame() {
// Need to work out acceleration for this. Going w/ 4
return (int) (GaBIEn.getTime() * 4);
// 16 / 40
double m = 16.0d / 40.0d;
return (int) (GaBIEn.getTime() / m);
}

@Override
Expand Down

0 comments on commit 276176d

Please sign in to comment.