Giter VIP home page Giter VIP logo

gdxstate's Introduction

GdxState

A helper library for managing game states in a libgdx project

  1. gdxstate.jar: The library
  2. gdxstate-doc.zip: java-doc

Library Source

GdxState.java, GdxStateManager.java, GdxStateRenderer.java, GdxStateDescriptor.java, AssetLabel.java, Component.java, Debug.java, Pojo.java

How to Set it up in an ApplicationListener class

Demo-Game.java, Demo2-Game.java

Convenient State Class

Demo-GameState.java

Functions

  1. Allows you to assign short labels to refer to assets. In libGdx, you refer to assets using only filepath.
  2. Allows you to run as many states you want on an array stack.
  3. Allows you to switch from one state to another or cancel a running state with one call.
  4. Debug output to see manipulations behind the scenes.
  5. Attach assets to each states - more than one state can share an asset and asynchronous loading of assets
  6. Create components - data shared by all states.
  7. Automatically disposes disposable components.
  8. Access to state's assets' data: progress, done
  9. Pause rendering on external interruption. In libGdx, even though pause is called, rendering continues
  10. Pass data to states when you run them
  11. Set time limit for states. E.G. you can tell a state to run for 5seconds and after five seconds it is cancelled by the renderer

gdxstate's People

Contributors

rickodesea avatar

Watchers

 avatar

gdxstate's Issues

Upload to Maven Central

Including a jar directly in your repository is... not exactly the best approach, and definitely not easy to maintain for you and your users. Chances are most people won't bother to include this in their projects without Maven/Gradle support. (Full disclosure: I haven't checked out your library in action yet.)

I'd start with moving the jar to the releases section and then uploading it to Maven Central. Finally, you could try to add this as a third-party extension to the gdx-setup.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.