html5 for game programming

6
Game Programming with HTML 5

Upload: hasith-yaggahavita

Post on 31-May-2015

787 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Html5 for game programming

Game Programming with HTML 5

Page 2: Html5 for game programming

Platform Selection Flash

HTML5 WebGL SVG Canvas2D

Page 3: Html5 for game programming

Use a library (http://jawsjs.com/) Classic Gameloop

Sprites

Page 4: Html5 for game programming

Object Animations Challenges

Single thread Limited memory Poor processors Legacy JS engines

Approach Faster methods Reuse object animations Separate static objects DOM animations when possible Lazyload

Page 5: Html5 for game programming

Security & Other Concerns

JS is hard to protect Obfuscation Server Timed Logs

Audio

Settings & game state

Page 6: Html5 for game programming

Result? 2 weeks of sleepless nights

2500 lines of hand written javascript

45,000 game sessions played in 10 days

Rs. 300,000/- worth gifts distributed