Ny coders - Cross-platform development with Haxe, openFL and Cocktail
-
Upload
raphael-harmel -
Category
Technology
-
view
4.429 -
download
1
Transcript of Ny coders - Cross-platform development with Haxe, openFL and Cocktail
![Page 1: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/1.jpg)
Cross-platformdevelopment with
Haxe, OpenFL & Cocktail
openFL
![Page 2: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/2.jpg)
Raphaël Harmel@djcodam
Speecheo co-founderIntermedia Paris co-founder
Silex Labs evangelist
![Page 4: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/4.jpg)
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
![Page 5: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/5.jpg)
Technological Context
![Page 6: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/6.jpg)
Technological context
Connected application world fragmentation.Explosion of costs and delays.
![Page 7: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/7.jpg)
2008only computers & web browsers
< 10 platforms
Technological context
![Page 8: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/8.jpg)
2010mobiles & tablets
> 30 platforms
Technological context
![Page 9: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/9.jpg)
2011Set Top Box, Smart TV,
Gaming consoles> 70 platforms
Technological context
![Page 10: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/10.jpg)
![Page 11: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/11.jpg)
Target platforms
![Page 12: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/12.jpg)
Multi-platform language
HAXE
![Page 13: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/13.jpg)
JS API FLASH API PHP API C++ API
Common API
(...)
+Specifific APIs
![Page 14: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/14.jpg)
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
![Page 15: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/15.jpg)
DEMO
https://github.com/SilexLabsThirdParty/haxe_samples
![Page 16: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/16.jpg)
Haxe JS demoHello Wxrld!
![Page 17: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/17.jpg)
Haxe Flash demoHello Wxrld!
![Page 18: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/18.jpg)
Haxe PHP demoHello Wxrld!
![Page 19: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/19.jpg)
Conditionnal CompilationHaxe JS / FLASH / PHP examples
![Page 20: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/20.jpg)
Haxe RemotingClient-Server Communication
![Page 21: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/21.jpg)
FEATURES
![Page 22: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/22.jpg)
TargetsJavaScript / nodeJS
phpc++
ActionScript c# (beta)
Java (beta)neko
![Page 23: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/23.jpg)
Libraries
![Page 24: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/24.jpg)
Librairies
GAMES APPLICATIONS
openFL(former NME)
![Page 25: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/25.jpg)
Common points
● Natives Applications& Web Apps
● 1 single code base for all platforms
openFL
OpenFL vs Cocktail
![Page 26: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/26.jpg)
DifferencesGames vs Apps
openFL
OpenFL vs Cocktail
![Page 27: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/27.jpg)
JS APIFlash API
OpenFL vs Cocktail
openFL
![Page 28: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/28.jpg)
http://www.silexlabs.org/haxe/cocktail/
Cocktail
![Page 29: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/29.jpg)
HTML & CSS implementationuses DOM HTML API
open source
Cocktail
![Page 30: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/30.jpg)
TargetsJavaScript
Flash
Used with OpenFL, Air & PhoneGap:iOS
AndroidWindowsMacOSLinux
BlackBerryWebOS
Smart TV HbbTV
Cocktail
![Page 31: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/31.jpg)
![Page 32: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/32.jpg)
Cocktail
FeaturesHTML for markup CSS for design
W3C DOM API for behaviour
application oriented
Works in stand-alone modeor embedded in other applications
![Page 33: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/33.jpg)
ArchitectureWritten en Haxe
Cross-platform code: 90%Specific code for each target: 10%
Cocktail
![Page 34: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/34.jpg)
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
![Page 35: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/35.jpg)
CocktailRealisationsMy TF1 Connect
![Page 36: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/36.jpg)
http://openfl.orghttp://www.joshuagranick.com/
openFL(former NME)
![Page 37: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/37.jpg)
cross-platform games frameworkuses Flash API
open-source
openFL
![Page 38: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/38.jpg)
TargetsiOS
AndroidHTML5
WindowsMacOSLinuxFlash
BlackBerryWebOS
openFL
![Page 39: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/39.jpg)
Features2D video games oriented
bitmap manipulationaccelerated rendering (OpenGL)
handles keyboard, mouse, multi-touch, joystickhalndles spritesheet
halndles JPG, PNG, GIFhalndles MP3, WAV, OGG
openFL
![Page 40: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/40.jpg)
Build toolincluded command line build tool
simplifies deployement to any target
openFL
![Page 41: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/41.jpg)
Architecturemost of the code is written in Haxe
native code for each platform to accessto OpenGL, font, file system APIs.
openFL
![Page 42: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/42.jpg)
RealisationsopenFL
![Page 43: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/43.jpg)
QUESTIONS ?
![Page 44: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/44.jpg)
http://haxe.org
![Page 45: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/45.jpg)
Want to know more about Silex Labs ?
Official websitehttp://www.silexlabs.org/
Twitter@silexlabs
Source codehttps://github.com/silexlabs/
Forumshttp://www.silexlabs.org/labs/
![Page 46: Ny coders - Cross-platform development with Haxe, openFL and Cocktail](https://reader033.fdocuments.in/reader033/viewer/2022052823/5554df3fb4c9051b6e8b52aa/html5/thumbnails/46.jpg)
THANK YOU !