Game Programming with
presented by Nathan Baur
Game Programming with presented by Nathan Baur What is libGDX? - - PowerPoint PPT Presentation
Game Programming with presented by Nathan Baur What is libGDX? Free, open source cross-platform game library Supports Desktop, Android, HTML5, and experimental iOS support available with MonoTouch license ($400) OpenGL support means
Game Programming with
presented by Nathan Baur
– create() – dispose() – pause() – render() – resize(int width, int height) – resume()
(diagram borrowed from http://code.google.com/p/libgdx/wiki/ApplicationLifeCycle)
–
Is exempted from garbage collection, it must be disposed of manually
–
Useful for sprite sheets, where multiple poses or animation frames are stored in one image
–
Useful for irregularly shaped sprites, since OpenGL 1 requires texture sizes be powers of 2
scaling, rotating, tinting, etc
–
Uses camera projection
–
Manages alpha blending
– Stage and Actor concepts have children in local (relative)
– Automatic hit detection and event-driven actions – API is so simple and sensible that some people choose to build
– Provides Layouts, Tables, and a host of Widgets like Button and
– Manages all bodies and global properties like gravity – Handles passage of time, movement integration,
– Represents single physical object – Made up of Fixtures – Can be Dynamic, Static, or Kinematic
– Exists in local coordinate system of parent Body – Holds actual physical properties like shape, density, friction,
– Collisions are called Contacts and occur between Fixtures – Can be event-driven with ContactListener interface or polled with
– Contact object stores pair of Fixtures and other useful
– Fixtures can store references to their parent Sprite or game
– Performance-oriented float versions of useful math
– Classes for Tween interpolation, Splines, Vectors, basic