Going Mobile by Nate Beck

4,818 views

Published on

Nate Beck covers some of the hurdles and headaches that Flash game developers encounter when they decide to take their games to mobile devices.

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
4,818
On SlideShare
0
From Embeds
0
Number of Embeds
3,582
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Going Mobile by Nate Beck

  1. 1. Going MobileBy Nate Beck
  2. 2. ADL, PFI... WTF?ADL - AIR Debug Launcher - Using ADL, you can run anapplication without first packaging and installing it.ADT - AIR Developer Tool - ADT is a multi-purpose, command-line tool for developing AIR applications.PFI - Packager For iPhone - Completely replaced by ADT.iOS - The OS for iPads, iPod Touch and iPhones
  3. 3. The Markets... that support Adobe Flash
  4. 4. Membership Fee $99 / year $99 / year $25 $0 $0 ¹ Revenue Split 30% 30% 30% 30% 30% Overall Difficulty 5 1 3 2 111(easy) to 10 (hard) Number of Apps ~570,000 ~395,000 ~30,400 ~3,030 ~4,000 ¹ At the moment, first year is free Source - Apple App Store - http://148apps.biz/app-store-metrics/ Source - Android Market - http://www.appbrain.com/stats/
  5. 5. Case Study – Word Wars
  6. 6. Build Process APK Executabl ADT IPA e Assets BAR
  7. 7. Application IdDescriptor Version Number Render Mode Auto Orientation Aspect Ratio Full Screen Onscreen Keyboard Behavior Icons Paths Device Profile Permissions iPhone Settings
  8. 8. DEVICES SUCK
  9. 9. Your finger is not transparentTHIS NOT THIS
  10. 10. Devices do not have roll over or roll out
  11. 11. TouchEvents are different than MouseEventsflash.ui.Multitouchflash.ui.MultitouchInputMode
  12. 12. Let’s not forget about gestures flash.events.TransformGestureEvent
  13. 13. Use Enter Framenot Mouse Move
  14. 14. Screen Density !=Screen Resolution
  15. 15. Screen Density != Screen Resolution 150 x 40 pixel button Desktop monitor Galaxy Tab Droid 2 iPhone 4 @100 dpi @160 dpi @240 dpi @320 dpi = 1.5” x 0.4” = 0.9” x 0.25” = 0.6” x 0.17” = 0.46” x 0.13” Same pixel count, different physical sizes (Minimum recommended size: 0.25” x 0.25”)
  16. 16. Screen Density != Screen Resolution 3.5 inch diagonal screen Same physical size, different pixel counts
  17. 17. Screen Density != Screen Resolution Classification 160 DPI 240 DPI 320 DPI Devices Most tablets Most Android iPhone 4 iPhone 3GS phones Motorola Droid Pro Mapped range < 200 DPI >= 200 DPI > 280 DPI <= 280 DPI Typical range 132 DPI (iPad) 217 DPI (HTC Evo) 326 DPI (iPhone to to 4) 181 DPI (HTC Hero) 254 DPI (NexusOne)
  18. 18. Devices have differing aspect ratios
  19. 19. Some devices have additional stuff...
  20. 20. Capabilitiesflash.system.Capabilities
  21. 21. Devices have orientations StageOrientationEvent.ORIENTATION_CHANGINGstage.setOrientation( StageOrientation.UPSIDE_DOWN );
  22. 22. Accelerometers Get your tilt on.
  23. 23. Emulators
  24. 24. Testing on the Device !FAILWiFi Debug Only WiFi and USB Debug WiFi Debug OnlyLong Build Times Faster Build Times Debug TokensMobile Provisions Signing Certificates
  25. 25. Full Screen
  26. 26. Permissions(Android / Playbook) android.permission.INTERNET android.permission.WRITE_EXTERNAL_ST ORAGE android.permission.READ_PHONE_STATE android.permission.ACCESS_FINE_LOCATI ON android.permission.DISABLE_KEYGUARD android.permission.WAKE_LOCK android.permission.CAMERA android.permission.RECORD_AUDIO android.permission.ACCESS_NETWORK_S TATE android.permission.ACCESS_WIFI_STATE
  27. 27. CPU vs GPUCPU - blitting GPU - DisplayObjectiOS - 20 FPS iOS - 34 FPSDroid - 24 FPS Droid - 32 FPS
  28. 28. Playbook is wicked fast
  29. 29. Molehill, Stage3D? “Stage3D for mobile is planned for middle of next year,but we are working hard on it to make it more like beginning of next year” - Thibault Imbert, Flash Player Product Manager October 31, 2011
  30. 30. “Adobe AIR 3.2 release candidate is now available for download. This build introduces the Stage3D API to iOS and Androiddevices, enabling full hardware accelerated 2D and 3D graphics for mobile apps.” - Adobe Labs, compliments of Thibault February 27, 2012
  31. 31. Hugs For Thibault
  32. 32. Use a Framework
  33. 33. ANT is your friend(or maven if you’re a cool kid)
  34. 34. Build servers are awesome +
  35. 35. Hosting your build servers
  36. 36. Your game can (and will) be interrupted, at any timestage.addEventListener(Event.DEACTIVATE, onDeact ivate);stage.addEventListener(Event.ACTIVATE, onActive);
  37. 37. Piracy can be a problem
  38. 38. Please use Version Control... please
  39. 39. Questions?
  40. 40. Thanks! Nate Beck Principal Architect @jnbeck nate@zaalabs.com blog.natebeck.net

×