Top Banner
HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012
26

HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

Dec 25, 2015

Download

Documents

Solomon Ray
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

HTML5 Game Development

Practical Guide for Developers

(from one of us)Rakesh Raju

Singapore - CASUAL CONNECT

23-May-2012

Page 2: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

My name is Rakesh Raju

@rakeshraju

Co-Founder and CTO @Tresensa Founder @Codewalla

• TreSensa - HTML5 based game development Start-up

• Codewalla: Casual game studio – online, social and mobile

(but most of all across platforms)

1

Page 3: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

What are we going to explore in the next 45 minutes?

• Let's set the stage in casual game development - HTML5 for game developers

• Case study - our own Demo

• Cross-platform - A Solution based Approach

o Motivation

o Challenges

o R & D: Available Technologies and Frameworks

• The Solution Framework - Connecting the Dots

• Recommendations 1

Page 4: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

HTML5 Game Development

1

What we will cover:

• What kind of Games? High Reach

o Cross Platform

o Multi Player

o Social

o Mobile first (always)

• Basic Game Engine features: Functional and Performance

Page 5: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

HTML5 Game Development

1

What we will NOT cover:

• Games/ techniques that are platform limited

• HTML5: Merits and Demerits

• All Possible Techniques (as of right now)

Page 6: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

Demo Time - BrowserQuest by Mozilla

1

Page 7: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

Demo Time - Dollar Isle by Non-Stop Games

1

Page 8: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

Demo Time - Cut the Rope by ZeptoLab

1

Page 9: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

Demo Time - Hangman by Tresensa

1

Page 10: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

Demo Time – Stranded by Tresensa

1

Page 11: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

High-Reach GamesMotivation

• Game studio pain points

o Complexity:

Front-end issues - Rendering.

Back end issues - High scale multi-player games.

o Skill-set fragmentation/explosion

o Cost of development/maintenance

o Time to market

o Distribution and (of course!) Monetization

1

Page 12: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

High Reach GamesR & D (Technologies and Frameworks)

• Unity:

o Needs a plug-in to run in desktop browser. Doesn't run

in mobile browsers.

• Flash:

o Doesn't run on mobile

• Corona:

o Native only. Doesn't run in browsers

• HTML5 Frameworks:

o Low on features or true cross platform support. or

Closed business model. Complex workflow ( PlayN) 1

Page 13: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

High Reach GamesChallenges

• JavaScript language issues

• Browser Performance

• Browser support for audio etc

• Lack of mature frameworks

• Lack of Authoring Tools

• Lack of developers ( lots of demand )

1

Page 14: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

High Reach GamesThe Solution Framework

• Front-end SDK (Game Framework)

Easy, controlled syntax for Game devs

Cross-browser/device

Integrated with Multi-player/Social back-end

Integrated with graphics/animation libs (CAAT)

Phonegap Compatible

Game Packs

1

Page 15: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

High Reach GamesThe Solution Framework

• Back-end

Game server available as service - No install

Pure JS

Support for asynchronous multi-player games

Game Packs

1

Page 16: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

1. Create the Game class.2. Flesh out the game class3. Set the entry point function of our game.4. Create a game object5. Load Assets6. Preload the images:7. Create the splash screens8. Create Main Game Screen9. Create Gameplay Screen10. Objects11. Spawning12. End condition

High Reach GamesCode Walk-through

Page 17: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

Write the game directly in Canvas, CSS

Advantages:• Get started immediately

Be prepared for:• HTML5 issues – nothing to do with game programming

Ideal for:• Small games

Approaches

1

Page 18: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

Approaches

Build Game Development Framework

Advantages:• Customize for your own needs

Be prepared for:• Effort, Skills and Cost

Ideal for:• High-cost, long term Games

1

Page 19: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

Recommendation for Game Developers

Use a Framework

Advantages:• Definitely gives you a head start.

Be prepared for:• Standard, non-customized framework

1

Page 20: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

TreSensa

(yes ours)

HTML5 Frameworks

PlayN

Scirra

Page 21: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

Three.js

HTML5 Frameworks

Impact.js

Appmobi

Page 22: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

So what is the future of HTML5 for high reach game development?

front end -

Page 23: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

So what is the future of HTML5 for high reach game development?

back end -

Page 24: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

So what is the future of HTML5 for high reach game development?

cloud -

Page 25: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

How do we move forward form here

- Look beyond your comfort zone (acquire new skills integrate them with new platforms)

- Think in frameworks not languages

- Scale is King, cost is Queen

- Developers who embrace this complexity will be heroes!

Page 26: HTML5 Game Development Practical Guide for Developers (from one of us) Rakesh Raju Singapore - CASUAL CONNECT 23-May-2012.

www.tresensa.com

[email protected]

Thank You!