Skip to content
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

Update LibGDX to version 1.9.14 #637

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

BenjaminAmos
Copy link
Contributor

@BenjaminAmos BenjaminAmos commented Nov 8, 2021

Description

This pull request updates LibGDX to version 1.9.14.

To see what has changed you can view the release notes for interim LibGDX versions:

In terms of breaking LibGDX API changes:

  • InputProcessor scrolled method now receives scroll amount for X and Y. Changed type to float to support devices which report fractional scroll amounts. Updated InputEvent in scene2d accordingly: added scrollAmountX, scrollAmountY attributes and corresponding setters and getters (#6154).
  • Vector2 angleRad(Vector2) now correctly returns counter-clockwise angles (#5428).
  • getDeltaTime() now returns the raw delta time instead of a smoothed one on Android (#6228).
  • Gdx.files.external on Android now uses app external storage (File handling).
  • HeadlessApplicationConfiguration#renderInterval was changed to #updatesPerSecond

The gdx-controllers library has changed its versioning, so it no longer shares a version number with its corresponding LibGDX release. The version numbers have therefore been changed in the corresponding gradle files that use them.

I found that the libGdxVersion variable was being defined seperately in two different gradle files, so I removed the variables from config/gradle/common.gradle so that they are all defined in the same file (build.gradle in the root directory). I assumed that all variables in an allprojects block are applied to all sub-projects recursively of the root project.

Testing

  • Build the game, which should not display any compile errors.
  • Run the game and test things as usual
  • If possible, try using all the avaliable input modes (Keyboard, Keyboard+Mouse and Controller)
  • If possible, try doing this using both the android and desktop facades

This should not require any android changes, as it uses the gradle gdxVersion variable rather than hard-coding the version used.

Notes

LibGDX 1.9.13 introduced the foregroundFPS setting for the LWJGL3 back-end, which was previously present in the LWJGL2 back-end. I have not used it for now though as there is no equivalent code for the android back-end.

This depends on MovingBlocks/TeraNUI#68, as there can only be one version of LibGDX present on the classpath (and the newer versions have ABI-breaking changes in them).

Copy link
Contributor

@IsaacLic IsaacLic left a comment

Choose a reason for hiding this comment

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

This works for me!

@Cervator
Copy link
Member

Tests out locally on both PC and Android :-) Merging!

@Cervator Cervator merged commit ef98800 into MovingBlocks:develop Jan 12, 2022
@BenjaminAmos BenjaminAmos deleted the libgdx-1.9.14-upgrade branch January 13, 2022 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

3 participants