ny coders - cross-platform development with haxe, openfl and cocktail
TRANSCRIPT
Cross-platformdevelopment with
Haxe, OpenFL & Cocktail
openFL
Raphaël Harmel@djcodam
Speecheo co-founderIntermedia Paris co-founder
Silex Labs evangelist
Client-server communication
protocol
Websites and digital publishing
Non-profit organisation supporting open-source software.> 800 000 downloads
Cross-platform applications creation (mobile, tablet, Smart TV...)
Silex Labs
Technological Context
Technological context
Connected application world fragmentation.Explosion of costs and delays.
2008only computers & web browsers
< 10 platforms
Technological context
2010mobiles & tablets
> 30 platforms
Technological context
2011Set Top Box, Smart TV,
Gaming consoles> 70 platforms
Technological context
Target platforms
Multi-platform language
HAXE
JS API FLASH API PHP API C++ API
Common API
(...)
+Specifific APIs
Most used cross-platform tools
7 supported platforms
600.000SDK download
Applications downloaded more than 35 million times
Used in 3.33% of Android applications
Chiffres 2012 - estimationssources:
http://www.appbrain.com/stats/libraries/devhttp://www.visionmobile.com/product/cross-platform-developer-tools-2012/
5 supported platforms
3 million developers
Used in 1.51% of Android applications
Some numbers...
5 supported platforms
1.5 million developers
1.85 million SDK download
35.000 applications published and deployed over 40 million
devices
Used in 0.16% dof Android applications
DEMO
https://github.com/SilexLabsThirdParty/haxe_samples
Haxe JS demoHello Wxrld!
Haxe Flash demoHello Wxrld!
Haxe PHP demoHello Wxrld!
Conditionnal CompilationHaxe JS / FLASH / PHP examples
Haxe RemotingClient-Server Communication
FEATURES
TargetsJavaScript / nodeJS
phpc++
ActionScript c# (beta)
Java (beta)neko
Libraries
Librairies
GAMES APPLICATIONS
openFL(former NME)
Common points
● Natives Applications& Web Apps
● 1 single code base for all platforms
openFL
OpenFL vs Cocktail
DifferencesGames vs Apps
openFL
OpenFL vs Cocktail
JS APIFlash API
OpenFL vs Cocktail
openFL
http://www.silexlabs.org/haxe/cocktail/
Cocktail
HTML & CSS implementationuses DOM HTML API
open source
Cocktail
TargetsJavaScript
Flash
Used with OpenFL, Air & PhoneGap:iOS
AndroidWindowsMacOSLinux
BlackBerryWebOS
Smart TV HbbTV
Cocktail
Cocktail
FeaturesHTML for markup CSS for design
W3C DOM API for behaviour
application oriented
Works in stand-alone modeor embedded in other applications
ArchitectureWritten en Haxe
Cross-platform code: 90%Specific code for each target: 10%
Cocktail
THE LEADING GLOBAL PLATFORM FOR SOCIAL VIDEO ADVERTISING
Video player
Video player allowing:● Youtube and DailyMotion
video streaming● advertising injection● social network sharing
15 million impressions / month
CocktailRealisations
CocktailRealisationsMy TF1 Connect
http://openfl.orghttp://www.joshuagranick.com/
openFL(former NME)
cross-platform games frameworkuses Flash API
open-source
openFL
TargetsiOS
AndroidHTML5
WindowsMacOSLinuxFlash
BlackBerryWebOS
openFL
Features2D video games oriented
bitmap manipulationaccelerated rendering (OpenGL)
handles keyboard, mouse, multi-touch, joystickhalndles spritesheet
halndles JPG, PNG, GIFhalndles MP3, WAV, OGG
openFL
Build toolincluded command line build tool
simplifies deployement to any target
openFL
Architecturemost of the code is written in Haxe
native code for each platform to accessto OpenGL, font, file system APIs.
openFL
RealisationsopenFL
QUESTIONS ?
http://haxe.org
Want to know more about Silex Labs ?
Official websitehttp://www.silexlabs.org/
Twitter@silexlabs
Source codehttps://github.com/silexlabs/
Forumshttp://www.silexlabs.org/labs/
THANK YOU !