Coder Social home page Coder Social 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

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.