Introducing Starling by Thibault Imbert
来源:互联网 发布:网络管理协议 编辑:程序博客网 时间:2024/06/17 13:48
I am excited to introduce today a new project we have been working on, called "Starling". So what is it ?
Starling is a 2D framework for game development developed in collaboration with the Austrian company Gamua (already behind the Sparrow-Framework on iOS), running on top of Stage3D (Molehill). It allows developers to leverage the power of the GPU without diving into the low-level details of the Stage3D APIs (available in Flash Player 11 and Adobe AIR 3). I am convinced that most of Flash developers will love this initiative, as most developers would like to leverage the GPU while reusing concepts like an event model, a display list, movieclips, sprites, etc.
Most of you, who had a look at the Stage3D APIs understand that this can be complex sometimes. So instead of writing 60 lines of code to draw a textured quad.
You will write the following :
01.
// create a Texture object out of an embedded bitmap
02.
var
texture:Texture = Texture.fromBitmap (
new
embeddedBitmap() );
03.
04.
// create an Image object our of the Texture
05.
var
image:Image =
new
Image(texture);
06.
07.
// set the properties
08.
image.pivotX =
50
;
09.
image.pivotY =
50
;
10.
image.x =
300
;
11.
image.y =
150
;
12.
image.rotation = Math.PI/
4
;
13.
14.
// display it
15.
addChild(image);
Quite nice hu ?
Of course, as a little obligatory test, find below a bunch of things (yes, sausages!) moving around :
Click for demo.
Here is below another demo using Starling plugged with Box2D (for physics) :
Click for demo.
Then, you have complete rendering of the your physics scene on the GPU.
Then of course particles! :
Click for demo (press right key for starting the particles and change).
Below a more concret example including MovieClip (through spritesheet) :
Click for demo.
If you want to learn more about Starling, check the little book (Introducing Starling - 110 pages) I wrote about it, you can download it from the link below, it covers many concepts to get started with Starling :
click to download (Introducing Starling - rev 1.2.2).
Check the official Starling website to download it and share your content with the Starling community.
I hope you will like it!
- Introducing Starling by Thibault Imbert
- Digging more into the Molehill APIs by Thibault Imbert
- 介绍Starling框架的视频(Introducing the Starling Framework)
- Introducing the Starling 2D framework
- starling
- Introducing the Selenium-WebDriver API by Example
- End-to-End J2ME Application Development by Example - Introducing Smart Ticket
- java starling
- Starling相关
- starling 笔记
- Starling 学习
- Starling:ScrollText
- Starling Texture
- Starling Juggler
- Starling Button
- Starling TextField
- Starling Tweens
- Starling第一步
- MTK中EntryNewScreen进入新屏幕和GoBackHistory返回原屏幕机制
- SQL XTYPE
- [BetterExplained]书写是为了更好的思考
- java笔记 策略模式
- android intent
- Introducing Starling by Thibault Imbert
- 程序员面试题精选100题(39)-颠倒栈
- VS2003 添加盾牌图标
- VC常用功能--代码实现
- Java 反射
- Activity调度机制
- [转] 代替bash,书写 PHP daemon 后台程序
- 三色旗算法及其C程序
- 程序员面试题精选100题(40)-扑克牌的顺子