Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Intro To Starling Framework for ActionScript 3.0

6,275 views

Published on

Published in: Career, Technology, Education
  • Be the first to comment

Intro To Starling Framework for ActionScript 3.0

  1. 1. TM & © 2012 Rivello Multimedia Consulting
  2. 2. Topic Speaker •Samuel Asher Rivello is the principal of Rivello Multmedia Consultng (RMC). Rivello Multmedia Consultng (RMC) provides sofware consultng services for Adobe’s Flash and Flex as well as HTML5 standards. •We consult on sofware architecture for apps and for games, advergames, and monetzed virtual worlds targetng browsers, desktop, and cross-device mobile. •We champion best practces, setup efcient team workfows, and provide corporate technical training. Agenda •Learn the benefts and syntax of Starling for gaming Audience •Intermediate to Advanced ActionScript 3.0 Developers Take-Away •All source code and documentation will be available to attendees info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  3. 3. TopicNotice 1. Stage3D is new 2. Starling is new 3. I am new So... features and syntax may change and my code may not show the best solutions. info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  4. 4. AgendaThree Sections 1. What is Stage3D? • Benefits & Challenges • Frameworks 2. What is Starling? • Overview • Implementation (Code Samples!) 3. Conclusion • Q&A • References info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  5. 5. SECTION 1What is Stage3D? info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  6. 6. Stage3DWhat is Stage3D Figure 1 ● Stage 3D, previously codenamed "Molehill," is a method of 2D and 3D rendering with a set of low-level GPU-accelerated APIs ● Available for Flash Player 11.x and AIR 3.2 (iOS/Android) ● Runs on a unique layer under the display list (See Figure 1.) Today, you can publish the fastest Flash games ever on the widest array of devices including iPad 3! info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  7. 7. Stage3DBenefits ● With Stage3D – Render hundreds of thousands of z-bufered triangles to be rendered at HD resoluton in full screen at 60 Hz (instead of just thousands at 30 Hz without Stage3D). ● GPU not CPU now handles rendering so rendering is more performant and you have more CPU power for your coding. info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  8. 8. Stage3DChallenges ● The language is very low-level (difcult* to read and write) ● All sprites must be patched together from triangles (triangles are the pixel of 3D graphics) ● Sprites handling mouse gestures and using vector graphics is not supported * Especially compared to the (non-Stage3D) traditonal Display List info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  9. 9. Stage3DSounds powerful, but hard to use... ● True. ● Luckily, we have some help. ● Many frameworks exist to make our lives easier. info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  10. 10. Stage3DFrameworks AS3 frameworks with Stage3D for 2D gaming; ● Starling ● ND2D ● Citrus Engine (Recently Upgraded To Stage3D) AS3 frameworks for Stage3D for 3D gaming; ● Flare3D ● Alternatva3D (Recently Open-Source) info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  11. 11. SECTION 2What is Starling? info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  12. 12. StarlingWhat is Starling? – A 2D AS3 Framework for Stage3D ● Free & Open Source – Easy to use so you can focus on your games! ● Platorm independent – Browser, Desktop, iOS, Android, Blackberry Tablet. ● Amazing Performance & Familiar API -Starling is a pure ActonScript 3 library that mimics the conventonal Flash display list architecture. ● Embraced* by Adobe – Adobe supports the development of Starling and plans to integrate it tghtly into its tools. You get the best of both worlds: corporate commitment and a vivid community. * Very Interestng – This means tghter integraton with Flash Player / AIR improvements and bigger marketng muscle for the framework. The 2D Framework with the biggest community has a distnct advantage. info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  13. 13. StarlingCore Classes info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  14. 14. StarlingCore Concepts Vector (FLA) SpriteSheet (JPG) ● Setup - The Startup.as document-class extends Sprite and composes an instance of Game.as. ● Starling.juggler.add (displayObject) - Required to have enterFrame. Assets ● TextureAtlas – An instance is required for each asset you want to render. Its defned by a SpriteSheet and XML info about it. You cannot directly use vector source assets such as Flash tmeline animaton. ● I dont use TextureAtlas or SpriteSheets – I use a Starling extension DynamicTextureAtlasGenerator that allows for full vector source assets. info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  15. 15. DEMOLets See Starling In Action!1. The Official Demo - http://gamua.com/starling/demo/2. My Hello World3. My Flyer Game (Simple Version)4. My Flyer Game (OOP Version) info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  16. 16. StarlingExtensions ParticleSystem Designer Particle System In Game (FlyerGame) ● Allow for additonal functonality within Starling projects. My favorites; ● PartcleSystem – Generate efects like smoke & fre ● DynamicTextureAtlas Generator – Use vector source assets info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  17. 17. Q&A!Three Sections 1. What is Stage3D? • Benefits & Challenges • Frameworks 2. What is Starling? • Overview • Implementation (Code Samples!) 3. Conclusion • Q&A • References info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  18. 18. SECTION 3Conclusion info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  19. 19. ReferencesStarling Framework Todays Presentation (Includes All Other Links) http://bit.ly/IntroStarling info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  20. 20. Thanks!Presentation Questions Send Questions & Comments info@RivelloMultimediaConsulting.comConsulting Inquiries (RivelloMultimediaConsulting.com) Software Architecture, Consulting, Development, & Training. info@RivelloMultimediaConsulting.com info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting
  21. 21. Thanks!Presentation Questions Send Questions & Comments info@RivelloMultimediaConsulting.comConsulting Inquiries (RivelloMultimediaConsulting.com) Software Architecture, Consulting, Development, & Training. info@RivelloMultimediaConsulting.com info@RivelloMultimediaConsulting.com TM & © 2012 Rivello Multimedia Consulting

×