43
05/27/2022 1

appMobi HTML5 Gaming

Embed Size (px)

DESCRIPTION

This slideshow outlines what appMobi does in some broad strokes and then goes into more detail about the gaming features that appMobi gives to HTML5 gaming.

Citation preview

Page 1: appMobi HTML5 Gaming

04/11/2023 1

Page 2: appMobi HTML5 Gaming

Who am I?

Andrew SmithappMobi Developer Evangelist

Web Development@profMobi

Page 3: appMobi HTML5 Gaming

• What is appMobi all about?• What is the anatomy of an appMobi

app?• What free stuff does appMobi offer?

• What is in it for appMobi?• What was that about HTML5 gaming?

Page 4: appMobi HTML5 Gaming

04/11/2023 4

Mission:To unify the technologies used in delivering web and mobile

apps, simplifying the process of development and resulting in a new class

of creative and compelling native mobile apps and interactive ads.

Strategy:Offer a cloud-based, white-label platform that opens up the

world of cross-device native mobile app creation to web developers, using familiar languages and tools:

HTML and JavaScript

Page 5: appMobi HTML5 Gaming

What does appMobi do?

As a company, appMobi endeavors to be a leader in HTML5 mobile technologies

Page 6: appMobi HTML5 Gaming

Desktop Mobile

04/11/2023 6

• 1 Billion Units• Trending away from

Apps• 100 Million+ Web Sites

• 10 Billion+ Units• Trending towards Apps• 300,000 Mobile Apps,

few mobile web sites

The Opportunity

What if your application could use the same technology for both mobile

web sites and native apps?

Page 7: appMobi HTML5 Gaming

04/11/2023 7

Why Your Application Should Be HTML5 Based

On the Sidelines

Page 8: appMobi HTML5 Gaming

04/11/2023 8

• It’s the obvious solution – enable apps to be written in standard HTML and JavaScript.

• Can be used to write mobile web-sites and true native apps using appMobi.

• Every major player in mobile is investing heavily in HTML5 and optimized JavaScript engines.

• HTML5 Animation & Super-optimized JavaScript engines = great apps.

• Capable of doing much more on mobile than on desktop web sites

HTML5 Enables Publishers to Create Great Mobile Apps!

Page 9: appMobi HTML5 Gaming

04/11/2023 9

100’s of Publishers Using HTML for Native Apps

Indie Games

Page 10: appMobi HTML5 Gaming

The Anatomy of an appMobi

Application

Page 11: appMobi HTML5 Gaming

• All appMobi Native Mobile applications are “hybrid” applications.

• They run natively, and may be loaded from the device’s native application store.

• They are programmed using HTML5 technology and then compiled.

• An appMobi app may be built yourself or by our build system

The Anatomy of an appMobi

Application

Page 12: appMobi HTML5 Gaming

• All appMobi applications are built using a full-screen web view control as its UI

• The web programming that makes the application is simply a tiny website

• The HTML, JavaScript, data, and images that make up that tiny website are collectively known as a “bundle”

The Anatomy of an appMobi

Application

Page 13: appMobi HTML5 Gaming

• Features of the device itself are accessed through integrated JavaScript libraries served up by a tiny webserver in the application itself

• The main library is referenced from: http://localhost:58888/_appMobi/appmobi.js

The Anatomy of an appMobi

Application

Page 14: appMobi HTML5 Gaming

• The “bundle” is tested by loading it into either the XDK or a test application over the Internet

• Once the application is ready for production, it would be built into its own mobile application for distribution through the appropriate application stores

The Anatomy of an appMobi

Application

Page 15: appMobi HTML5 Gaming

Free Tools

Page 16: appMobi HTML5 Gaming

The appMobi XDK Development

Tool

Page 17: appMobi HTML5 Gaming

JavaScript API

http://www.appmobi.com/documentation

Page 18: appMobi HTML5 Gaming

The appStarter App Template

Generator

Page 19: appMobi HTML5 Gaming

jqMobi

Page 20: appMobi HTML5 Gaming

Preview your Application on Device

Page 21: appMobi HTML5 Gaming

Send the app link to your mobile device

Page 22: appMobi HTML5 Gaming

• Go to the App Store or Android Market and install it.

• Search for "applab" to find it.

Install the appLab application

Page 23: appMobi HTML5 Gaming

• Open the application link in your web browser to get the launch page.

• Touch Launch to see your application.

Open the link on the device’s web

browser

Page 24: appMobi HTML5 Gaming

Cloud Based Build System –

appHub

Page 25: appMobi HTML5 Gaming

Build your Application

Page 26: appMobi HTML5 Gaming

Select “Upload and Build”

Page 27: appMobi HTML5 Gaming

Enter Application Details

Page 28: appMobi HTML5 Gaming

Download or Send Completed

Application

Page 29: appMobi HTML5 Gaming

Builds Automated After Success

Page 30: appMobi HTML5 Gaming

debugMobi

Page 31: appMobi HTML5 Gaming

HTML5 Game Development

Page 32: appMobi HTML5 Gaming

• directCanvas• directBox2D• Android Multi-Touch• Multi-Sound

HTML5 Game Development

Page 33: appMobi HTML5 Gaming

directCanvas

Page 34: appMobi HTML5 Gaming

Pros Cons

• Accelerates sprites built using the HTML5 canvas tag on iOS and Android

• No need to compile your application a particular way to take advantage of the acceleration

• Regular canvas tag commands are used

• Two contexts for canvas and HTML can cause a bottleneck

• CSS background images may not be used

• Any commands not built into the context will crash an application built with directCanvas

directCanvas

Page 35: appMobi HTML5 Gaming

• HTML5 context is above the directCanvas context

• Sending information back and forth between both

contexts• Make sure to use the present command to see

anything• Commands that aren’t

supported in the directCanvas context can

crash the app

directCanvas

Page 36: appMobi HTML5 Gaming

directBox2D

Page 37: appMobi HTML5 Gaming

Android Multi-Touch

Page 38: appMobi HTML5 Gaming

Multi-Sound

Page 39: appMobi HTML5 Gaming

Cloud Services

Page 40: appMobi HTML5 Gaming

The appMobi Cloud Services provide enhancements for mobile HTML5 applications• Frictionless Payments• Push Messaging• Analytics• Game Development

Tools• Over the air updates

Cloud Services

Page 41: appMobi HTML5 Gaming

Show and Tell

Page 42: appMobi HTML5 Gaming

Sample Code

Page 43: appMobi HTML5 Gaming

Find more information at:

http://www.appmobi.com/documenta

tion

Where I’ll be next:

@profMobi