Click here to load reader
Upload
jumping-bean
View
913
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Presentation on building games with LibGDX given at Java Day South Africa 2014, held in Johannesburg.
Citation preview
Jumping Bean
Building Games With LibGDXBy Mark Clarke
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 2
Agenda
● Overview– features
– architecture
● Tools● Demo
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 3
WhoamI
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 4
Overview
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 5
LibGDX Overview
● Open source
● Java game development framework,
● Some components written in C/C++,
● Leverages 3rd party libraries
– Lightweight Java Game Library
– OpenGL,
– Box2D,
– OpenAL
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 6
Cross Platform
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 7
Bad Logic Games?
● Small, spare-time, game development shop● Mario Zechner
– benevolent dictator of libGDX
● Apache 2.0 license
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 8
LibGDX
● How to start?– Create project manually or use GUI tool
– Or use Gradle!
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 9
LibGDX Architecture
● Application framework – main event loop, game life cycle,
● Graphics module – draw sprites/graphics on screen,
● Audio module – play music, sound effects,
● Input/Output module – mouse,keyboard, touch screen accelerometer
● File I/O module – read/write resources and assets
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 10
LibGDX Architecture
● ApplicationListener interface – – abstract core game logic to shared platform
code base,
– Game loop, life cycle
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 11
Tools
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 12
Particle Editor
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 13
3rd Party Texture
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 14
Bitmap Editor
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 15
3rd Party Tools - Box2D Body Editor
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 16
3rd Party Tools – Tiled Map Editor
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 17
Demo
Code on Github - https://github.com/mxc/java-day-demo
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 18
Join JoziJUG!
Jumping Beanhttp://www.jumpingbean.biz/
Game Development 19
Special Thanks
● Twitter - @mxc4● G+ - [email protected]● LinkedIn