building games-with-libgdx

19

Click here to load reader

Upload: jumping-bean

Post on 14-May-2015

899 views

Category:

Software


0 download

DESCRIPTION

Presentation on building games with LibGDX given at Java Day South Africa 2014, held in Johannesburg.

TRANSCRIPT

Page 1: Building games-with-libgdx

Jumping Bean

Building Games With LibGDXBy Mark Clarke

Page 2: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 2

Agenda

● Overview– features

– architecture

● Tools● Demo

Page 3: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 3

WhoamI

Page 4: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 4

Overview

Page 5: Building games-with-libgdx

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

Page 6: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 6

Cross Platform

Page 7: Building games-with-libgdx

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

Page 8: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 8

LibGDX

● How to start?– Create project manually or use GUI tool

– Or use Gradle!

Page 9: Building games-with-libgdx

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

Page 10: Building games-with-libgdx

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

Page 11: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 11

Tools

Page 12: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 12

Particle Editor

Page 13: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 13

3rd Party Texture

Page 14: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 14

Bitmap Editor

Page 15: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 15

3rd Party Tools - Box2D Body Editor

Page 16: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 16

3rd Party Tools – Tiled Map Editor

Page 17: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 17

Demo

Code on Github - https://github.com/mxc/java-day-demo

Page 18: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 18

Join JoziJUG!

Page 19: Building games-with-libgdx

Jumping Beanhttp://www.jumpingbean.biz/

Game Development 19

Special Thanks

● Twitter - @mxc4● G+ - [email protected]● LinkedIn