Unity: What does it take to port a browser title to mobiles

33
What does it take to port a browser title to mobiles Oleg Pridiuk, Technical Evangelist

description

Been doing a browser game that happened to be shipping on mobiles first? That’s a popular case that has a proper solution. Let’s study how we make it with Unity projects.

Transcript of Unity: What does it take to port a browser title to mobiles

Page 1: Unity: What does it take to port a browser title to mobiles

What does it take to port a browser title to mobiles Oleg Pridiuk, Technical Evangelist

Page 2: Unity: What does it take to port a browser title to mobiles

Page 2

Top grossing iOS game’s revenue

2012 – top game has booked 100M

2013 – top game can potentially book 400M

Data gathered by Unity Technologies

Page 3: Unity: What does it take to port a browser title to mobiles

Page 3

Entertainment half-life

The shorter the half life, the more power the creator holds

Music 10 – 100 years Film 5 – 10 years Games 2 – 3 years Mobile games ½ - 2 years

Page 4: Unity: What does it take to port a browser title to mobiles

Page 4

Revenue

Estimated by Flurry Analytics

Page 5: Unity: What does it take to port a browser title to mobiles

Page

Oleg Pridiuk – technical evangelist

5

Page 6: Unity: What does it take to port a browser title to mobiles

Page 6

Editor Sessions per Month

Over 1.8 million registered developers Over 400K monthly active developers

Page 7: Unity: What does it take to port a browser title to mobiles

Page 7

Unity is kinda industry standard now…

Better hiring: is easy to find skilled and experienced developers Better support: everyone cares and tries to support Unity

Proven to work: lots of delivered projects, so you know if you can make it

Page 8: Unity: What does it take to port a browser title to mobiles

Page 8

Page 9: Unity: What does it take to port a browser title to mobiles

Page

CSR Racing – Natural Motion

9

Page 10: Unity: What does it take to port a browser title to mobiles

Page

Bad Piggies - Rovio

10

Page 11: Unity: What does it take to port a browser title to mobiles

Page

The Room - Fireproof Games

11

Page 12: Unity: What does it take to port a browser title to mobiles

Page

Temple Run 2 – Imangi Studios

12

Page 13: Unity: What does it take to port a browser title to mobiles

Page 13

• Windows • Windows 8, RT, WSA

• Mac

• Web • Google NaCL, Unity plugin,

Facebook

• Ubuntu Linux • Custom ports available

• Mobiles • BlackBerry 10, iOS, Android,

Windows Phone 8

• Consoles • PS Vita, PS4, PS3, Xbox 360,

Nintendo Wii U

• Union

Page 14: Unity: What does it take to port a browser title to mobiles

Page

Shadowgun runs on everything…

14

Page 15: Unity: What does it take to port a browser title to mobiles

Page

iOS, Android, Flash, LG TV, BlackBery, Nvidia Shield,

Ouya, Sony Xperia Play, Gamestick, wikipad

15

Page 16: Unity: What does it take to port a browser title to mobiles

Page 16

What does it take to port a Unity game?

Demo!

Page 17: Unity: What does it take to port a browser title to mobiles

Page

What does it take to port a Unity game?

• Define a “game” in this context?

• Core gameplay – game logic, scenes, assets

• Wrappers – monetization, social, plugins

• Addons, process to update and patch

• Assuming “to port” means

• Core gameplay launches on a new platform/device

• Unity takes care of what it can control

• Texture compression, sounds, scripts, scene setup (physics, light probes, lightmaps, navigation, occlusion, etc)

• Cross platform plugins, if applicable

• Performance?

17

Page 18: Unity: What does it take to port a browser title to mobiles

Page

It can be easy, it can be hard…

• Performance - depends on your project/experience

• E.g. iOS to Web is easy

• Android to iOS ir easier that iOS to Android

• Standalone/web to mobiles – can be very hard

• Expect 50-80% of code/assets to be persistent

• Unity API is generic, designed multiplaform

• May need to reimplement input

• May need to wrap some code into IFDEFs

• Reminder: all your binary and platform specific data is not multiplatform

18

Page 19: Unity: What does it take to port a browser title to mobiles

Page

Case study – don’t try it at home

19

Page 20: Unity: What does it take to port a browser title to mobiles

Page 20

Page 21: Unity: What does it take to port a browser title to mobiles

Page 21

Page 22: Unity: What does it take to port a browser title to mobiles

Page 22

Page 23: Unity: What does it take to port a browser title to mobiles

Page 23

Page 24: Unity: What does it take to port a browser title to mobiles

Page 24

Page 25: Unity: What does it take to port a browser title to mobiles

Page 25

Page 26: Unity: What does it take to port a browser title to mobiles

Page 26

Page 27: Unity: What does it take to port a browser title to mobiles

Page

Benefit from Unity features

• LOD system

• Occlusion culling

• Lightmapping

• Light probes

• Dynamic/static batching

• Quality settings

• Render settings

• Material replacement

• Automagic with textures

27

Page 28: Unity: What does it take to port a browser title to mobiles

Page 28

Page 29: Unity: What does it take to port a browser title to mobiles

Page 29

Page 30: Unity: What does it take to port a browser title to mobiles

Page

Results – it works!

• Total work - about 6-7 hours

• Got familiar with the project

• “Implemented” touch input

• Profiled, went through assets, optimized here and there, rebaked lightmaps and light probes, occlusion culling, etc.

• Next steps

• Work with artist on LODs to reduce triangle count

• Reduce the number of materials

• See what happens with Androids…

30

Page 31: Unity: What does it take to port a browser title to mobiles

Page 31

How to start with Unity

Unity Community

unity3d.com/learn • Free training • Free demo projects • Tutorials

video.unity3d.com • Sessions from Unites • Tutorial videos • Usergroup meetup videos

Asset Store! • Lots of free assets • Also full demo projects

International • answers.unity3d.com • forum.unity3d.com • google.com da best!

Russian • unity3d.ru – chat, forum • closedcircles.com #unity3d

• habrahabr.ru - unity3d

Page 32: Unity: What does it take to port a browser title to mobiles

Page

Unity is flexible to get on and to own

• Basic version is FREE • Mac, Windows, Linux, Web browsers • We also have basic mobile add-ons, 400$ • Can publish and earn money!

• 1500$ per platform, per developer • Minor upgrades are free, e.g. within Unity 4.x family • Can pick add-ons to your taste

• Different set for artists, developers, level designers

• Licensing options • Unity Store • [email protected] your best Unity friend • Remember the Asset Store • You can buy assets and services there • Tons of cool and not expensive stuff there, try it!

32

Page 33: Unity: What does it take to port a browser title to mobiles

Page 33

Спасибо!

Рад вашим вопросам