Skip to content

Releases: crykn/libgdx-screenmanager

0.7.0

23 Nov 09:48
b7513b5
Compare
Choose a tag to compare
  • Update to libGDX 1.12.1
  • The screen manager now no longer reuses screen instances to closer resemble libGDX's Game class. Previous users of the library should take note of the following:
    • Screens & transitions don't have to be registered anymore; ScreenManager#push now takes a ManagedScreen and a ScreenTransition instance as arguments
    • ManagedGame#initialize & ManagedGame#create were removed to eliminate the confusion around the difference between constructors, #create() and #show(); old code should be put in the constructor or #show(). #show() might be preferred, since it is guaranteed to be always called on the active GL thread.
    • ScreenTransition#reset was removed in favour of ScreenTransition#show and #hide; old code should be put in #show()
    • ShaderTransitions now compile their shader in the constructor; this means that the constructor has to be called on the OpenGL thread
    • Use ScreenManager#setAutoDispose(true, true) if you don't want to reuse your screens and transitions and thus they should be disposed automatically upon #hide()
  • The GWT support was reworked; please check out the wiki for the new dependency structure

Common issues

Tracing compile failure path for type 'de.damios.guacamole.Stopwatch'
      [ERROR] Errors in 'jar:file:/C:/Users/xyz/.gradle/caches/modules-2/files2.1/com.github.crykn.guacamole/core/0.3.5/36467acd0d6577ed9ca41b43ae0b6dabb3f45aba/core-0.3.5-sources.jar!/de/damios/guacamole/Stopwatch.java'
         [ERROR] Line 48: The method nanoTime() is undefined for the type System

libgdx-screenmanager requires GWT 2.10.0 to work on the web. Support for this was only recently added in libGDX 1.12.2-SNAPSHOT, but can be achieved for older versions of libGDX via tommyettinger/gdx-backends.

0.6.9

02 Jul 20:56
Compare
Choose a tag to compare
  • Update to libGDX 1.12.0
  • Add ManagedScreenAdapter
  • Improve the documentation

Common Issues

Could not resolve com.github.crykn.guacamole:gdx:0.3.3.
Required by:
    project :core-game > project :core > com.github.crykn:libgdx-screenmanager:0.6.9

Sometimes there seem to be troubles when retrieving a built artifact from Jitpack. You can try to fix this by adding api "com.github.crykn.guacamole:gdx:v0.3.3" (note the v before the version!) as additional dependency. If that does not work, removing mavenLocal() as repository in your build.gradle might help. Alternatively, you can also delete the com/github/crykn subfolder of .m2/repository/ to trigger another download.

0.6.8

25 May 14:41
Compare
Choose a tag to compare
  • Updated to libGDX 1.11.0
  • Fix rounding issue with slicing transitions; see #9, #13
  • Expose some of the internals of ScreenManager; this allows overriding the render(float) method
  • Small documentation improvements

0.6.7

18 Apr 21:29
Compare
Choose a tag to compare
  • Updated to libGDX 1.10.0

0.6.6

01 Feb 22:34
Compare
Choose a tag to compare
  • Updated to libGDX 1.9.14
  • Improved the support for multi-viewport setups. See the javadocs of ManagedGame#render() as well as the example for additional information.
  • The depth buffer bit is now automatically cleared before ManagedGame#render() is called
  • Some other minor improvements

0.6.5

01 Jan 23:27
Compare
Choose a tag to compare
  • Update to libGDX 1.9.13
  • Small documentation fixes

0.6.4

01 Nov 12:37
Compare
Choose a tag to compare
  • Update to libGDX 1.9.12

0.6.3

20 Sep 20:21
Compare
Choose a tag to compare

0.6.2

03 Aug 19:20
Compare
Choose a tag to compare
  • Better support for hdpi screens (#8)
  • After the initialisation of a transition, resize() is now called
  • Null can now be used as a push param
  • Fixed a crash happening on Windows, when the game was resized
  • Small improvements to the documentation

0.6.1

22 Jul 19:27
Compare
Choose a tag to compare
  • After the initialisation of a screen, resize() is now called (#6)
  • Updated libgdx (1.9.11) & other dependencies
  • Some bug fixes