{"id":13529210,"url":"https://github.com/crykn/libgdx-screenmanager","last_synced_at":"2025-03-17T05:32:20.282Z","repository":{"id":37247825,"uuid":"243373824","full_name":"crykn/libgdx-screenmanager","owner":"crykn","description":"A screen manager for libgdx with support for transitions.","archived":false,"fork":false,"pushed_at":"2024-03-12T12:01:21.000Z","size":5414,"stargazers_count":104,"open_issues_count":0,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-16T08:41:14.572Z","etag":null,"topics":["libgdx","screen","screenmanager","transitions"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crykn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-02-26T21:53:29.000Z","updated_at":"2025-03-06T07:58:18.000Z","dependencies_parsed_at":"2023-10-16T03:34:08.131Z","dependency_job_id":"a18abda8-1a90-440e-9271-5dfac6ead543","html_url":"https://github.com/crykn/libgdx-screenmanager","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crykn%2Flibgdx-screenmanager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crykn%2Flibgdx-screenmanager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crykn%2Flibgdx-screenmanager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crykn%2Flibgdx-screenmanager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crykn","download_url":"https://codeload.github.com/crykn/libgdx-screenmanager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243981360,"owners_count":20378564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["libgdx","screen","screenmanager","transitions"],"created_at":"2024-08-01T07:00:34.364Z","updated_at":"2025-03-17T05:32:17.058Z","avatar_url":"https://github.com/crykn.png","language":"Java","funding_links":[],"categories":["Resources"],"sub_categories":["Visual Effects"],"readme":"## What is libgdx-screenmanager?\n\n[![Release](https://jitpack.io/v/crykn/libgdx-screenmanager.svg)](https://jitpack.io/#crykn/libgdx-screenmanager) [![Build](https://img.shields.io/github/actions/workflow/status/crykn/libgdx-screenmanager/build-and-test.yml?label=Build)](https://github.com/crykn/libgdx-screenmanager/actions) [![GWT Compatible](https://img.shields.io/badge/GWT-compatible-informational)](https://github.com/crykn/libgdx-screenmanager/wiki/How-to-get-it-working-with-GWT) [![Discord Support](https://img.shields.io/discord/348229412858101762?logo=discord\u0026label=Support)](https://discord.com/channels/348229412858101762/1169354297830547628)\n\nThis library is a screen manager for libGDX games. It allows comfortably changing the rendered screen while using transition effects. The library's easy to use nature makes it possible to integrate libgdx-screenmanager into any project without much effort.\n\n## Features\n\n![](https://raw.githubusercontent.com/crykn/libgdx-screenmanager/master/showcase/gl_transitions_2.gif)\n\u003e ###### A small example using different transitions. Look at the [showcases folder](https://github.com/crykn/libgdx-screenmanager/tree/master/showcase) for more gifs.\n\n* Allows easily **changing the rendered screen**: `game.getScreenManager().pushScreen(screen, transition)`\n* Adds **screen transition effects** for when a screen is changed. The included transitions can be found [here](https://github.com/crykn/libgdx-screenmanager/wiki/Available-transitions). Furthermore, transition shaders are supported as well. See the [GL Transitions](https://gl-transitions.com/gallery) project for a collection of some very well made ones.\n* **Automatically registers/unregisters** a screen's **input processors** whenever the screen is shown/hidden\n* The whole library is [well documented](https://github.com/crykn/libgdx-screenmanager/wiki) and includes [tests](https://github.com/crykn/libgdx-screenmanager/tree/master/src/test/java) for  everything that isn't graphical\n\n## Example code\n\nThe following example shows how to use libgdx-screenmanager in your code. You can find the full example [here](https://github.com/crykn/libgdx-screenmanager/tree/master/src/example). \n\nThe library is very easy to use: The game has to extend `ManagedGame`, all screens have to inherit from `ManagedScreen`. To push a screen, `game.getScreenManager().pushScreen(screen, transition)` has to be called. If no transition should be used, just call `pushScreen(screen, null)`.\n\n```java\npublic class MyGdxGame extends ManagedGame\u003cManagedScreen, ScreenTransition\u003e {\n\n\t@Override\n\tpublic final void create() {\n\t\tsuper.create();\n\n\t\t// Do some basic stuff\n\t\tthis.batch = new SpriteBatch();\n\n\t\t// Push the first screen using a blending transition\n\t\tthis.screenManager.pushScreen(new GreenScreen(), new BlendingScreenTransition(batch, 1F));\n\n\t\tGdx.app.debug(\"Game\", \"Initialization finished.\");\n\t}\n\n}\n```\n\n**Some additional notes:**\n\n* Input processors should be added in a screen via `ManagedScreen#addInputProcessor(...)`. This has the advantage that they are automatically registered/unregistered when the screen is shown/hidden.\n\n\n## Documentation\n\nIn the [wiki](https://github.com/crykn/libgdx-screenmanager/wiki) you can find articles detailing the usage of the library and its inner workings.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrykn%2Flibgdx-screenmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrykn%2Flibgdx-screenmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrykn%2Flibgdx-screenmanager/lists"}