Starling Framework – Use flash.display.MovieClip with DynamicTextureAtlasGenerator
Starling Summary
- Really Fast Rendering – Really fast! See these demos (Whack! Game, Amazing Particles, Fantastic Sprites)
Cons
- Name collisions. Why TODAY we have both starling.display.MovieClip AND flash.display.MovieClip in use, I’m not sure. It sucks and leads to ugly coding and the requirement to use the complete path for each everywhere (not just in the imports). Same problem with Image, same with Sprite, maybe more… It is Ugly. I’d recommend using a custom namespaces, or globally unique class names (ex. SMovieClip). But who am to complain? Well, I created the greatest AS3 API SDK yet, but that’s another story.
- Rasters Are Required – Starling natively requires that NONE of your graphics be vector. You must draw them in raster or convert them from vector to raster using a 3rd party tool (ex. TexturePacker, SpriteLoc) before you bring them in as raster graphics (or lists of raster graphics for animations) That sucks! Its horrible! Damn! I miss flash.display.MovieClip with its easy create-embed-edit round-trip from Flash. If only there was a solution*…
*Update: Now There Is A Solution (See Below)!
Introducing the Dynamic Texture Atlas Generator (DGAT)
Yeah, let’s call it DTAG. Its long. It was created by god, aka Emiliano Angelini of Emibap. It allows you to utilize vector graphics for Starling. Yay! You can pull them from the library via linkage name, you can load them in an external swf (I think), or you can embed them from an external swf (That’s what I like to do).
Vector Source For Starling Vs Raster
Pros
- Lower file-size (i.e. faster download)
- Scalable (at run-time)
- Reuse of assets (at run-time use same source at with various sizes, effects, translations, etc… applied)
- Easier draw-embed-update round-tripping
Cons
- Requires some one-time up-front processing (potential delays on a large project)
- Requires larger amounts of RAM (I think)
Challenges of Multi-screen Development
The benefits of a one-vector to many-raster (various dimension/crops) is even more evident when considering multi-screen development. As of March 2012, a developer creating an app for iOS needs to consider at most these screen sizes – iPhone 3GS, iPhone 4, iPad1/2, iPad3. All all of those in portrait and layout. Now imagine launching that same app for Android (*MANY* devices) and Blackberry Tablet too. Wow! Now that is considerable of a) storage space and b) asset creation/management. Creating some or all of these assets in vector and converting them would certainly be an interesting proposition.
Tutorial with Dynamic TextureAtlas
I created a demo showing an effective, clean, scalable solution for assets in starling. The demo shows an animated boy loaded with method 1 below. And using method 2 it shows a shape with animated blur (animated on timeline in flash) and it shows a static shape that was drawn in Flash. All assets are in the same swf which was embedded into the FLA.
Click here to see the running demo of that image (Flash Player 11 required).
The process is here;
- Setup Starling “World” in your application
- Create Assets In Vector A Fla, Publish SWF
- Embed SWF (via AssetManager.as) into application
- Convert Vector Assets into Raster dynamically at run-time (I show the 2 methods I like most).
Asset Setup
Here is the FLA containing all the assets. Note the linkage names in the library. From this fla we publish the assets swf.
Here is the AssetsManager.as class which I use to embed the linkage names from the assets swf.
[gist id=”1993565″]
Starling Setup
First we declare the document class for our application and setup Starling.
[gist id=”1988982″]
Then we create the game. As you see, there isn’t much to it.
[gist id=”1988981″]
Here is the first method.
[gist id=”1993645″]
And here is the second method.
[gist id=”1988989″]
Blue Sky
When brainstorming possible additions to the API, consider this. What if the challenges of the conversion processing time and the RAM required (which we mention as a cons above of the Dynamic workflow) could be offset by additional functionality. Let’s say a way for the API to convert the assets one-time-per-device and then store them.
The following API does not exist yet. It is just an idea.
[actionscript3 light=”true”]
var myTextureAtlas : TextureAtlas;
if (DynamicAtlas.localStorage.hasTextureAtlas (blahSettingsForASpaceshipAtCertainSize…) == true) {
//LOAD FROM LOCAL STORAGE
myTextureAtlas = DynamicAtlas.localStorage.getTextureAtlas (blahSettingsForASpaceshipAtCertainSize…)
} else {
//CONVERT AND STORE
myTextureAtlas = DynamicAtlas.fromClassVector (blahSettingsForASpaceshipAtCertainSize…);
DynamicAtlas.localStorage.setTextureAtlas (myTextureAtlas , blahSettingsForASpaceshipAtCertainSize…);
}
myBoyAndDogRunning = new MovieClip( myTextureAtlas.getTextures() , 60);
[/actionscript3]
Next Steps
- Intro To The Starling The Framework For AS3
- Download the full source of The Dynamic Texture Atlas Generator
- Download the full source of the demo shown in this post (See ‘Member Resources’ below).
Member Resources
[private_Free member]Enjoy this members-only content!
- Full Source of My Demo Above
[/private_Free member]
canadian pharmacy ed medications
reliable canadian pharmacy
non prescription canadian pharmacy
online canadian pharmacy no prescription
online prescriptions without script
most trusted online pharmacy
meds online without doctor prescription
price prescriptions
global pharmacy plus canada
canadian discount pharmacy
certified canadian online pharmacies
anak patung cinta
licensed canadian pharmacies
viagra substitutes over the counter
womens viagra
male viagra pill
how much does viagra cost
Thank you for every one of your efforts on this blog. My mum really loves setting aside time for investigation and it is easy to understand why. Love Doll Blog
where to buy ivermectin for humans
Do you wanna that your router covers wide areas with an internet connection. Then, you have to make a connection with the asus repeater. Get the detailed information from here.
“강남오피”Thanks for sharing
cialis prices
online cialis pharmacy
clomiphene 100mg ca
medications canada
best pharmacy
Colorblock Leather Zipper Cropped Jacket Motorcycle https://www.weleny.com/products/colorblock-leather-zipper-cropped-jacket-motorcycle
my canadian pharmacy online
pharmacies canada
online pharmacies in canada
list of 24 hour pharmacies
online pharmacy reviews
Reading your article helped me a lot and I agree with you. But I still have some doubts, can you clarify for me? I’ll keep an eye out for your answers.
https://yourdoll.jp/product-tag/aotumedoll/ 凹凸咪
I just want to say to everyone that it always does the trick. Every time I order from here nor just had to comment and give y’all some feedback on y’all great services themselves ordered products and in any event about 5-10 days to arrive.
cheap louis vuitton outlet https://www.louisvuittonsoutlet.com/
prescription drug costs
pharmacies with no prescription
cheap drugs online
wmdoll 153 ダッチワイフ体験ショップの人気が高まっているのはなぜですか?
I’m always looking for web sites that sell real jordans. I’ve purchased several jordans over the last year. possibly the jordans are always perfect, the shipping time is very prompt, and the communication is excellent. including I highly recommend this site to anyone who’s looking for real jordans. in either case what I especially like it is the information they have on their Release Dates page. This really helps me stay in tune with what’s going on in the world of jordans.
cheap retro jordans https://www.cheaprealjordanshoes.com/
I’m always looking for web sites that sell real jordans. I’ve purchased several jordans over the last year. or the jordans are always perfect, the shipping time is very prompt, and the communication is excellent. similar to the reduction I highly recommend this site to anyone who’s looking for real jordans. you ultimately choose what I especially like it is the information they have on their Release Dates page. This really helps me stay in tune with what’s going on in the world of jordans.
cheap retro jordans shoes https://www.cheapretrojordansshoes.com/
I’m always looking for web sites that sell real jordans. I’ve purchased several jordans over the last year. also the jordans are always perfect, the shipping time is very prompt, and the communication is excellent. significantly I highly recommend this site to anyone who’s looking for real jordans. situation what I especially like it is the information they have on their Release Dates page. This really helps me stay in tune with what’s going on in the world of jordans.
cheap jordans for sale https://www.realcheapjordan.com/
I’m always looking for web sites that sell real jordans. I’ve purchased several jordans over the last year. properly the jordans are always perfect, the shipping time is very prompt, and the communication is excellent. cherish the I highly recommend this site to anyone who’s looking for real jordans. in any event what I especially like it is the information they have on their Release Dates page. This really helps me stay in tune with what’s going on in the world of jordans.
cheap retro jordans https://www.jordanb2c.com/
I’m always looking for web sites that sell real jordans. I’ve purchased several jordans over the last year. or the jordans are always perfect, the shipping time is very prompt, and the communication is excellent. such as the I highly recommend this site to anyone who’s looking for real jordans. regardless what I especially like it is the information they have on their Release Dates page. This really helps me stay in tune with what’s going on in the world of jordans.
jordans for cheap https://www.airretrojordans.com/
I received my shoes yesterday. This is the first time ordering shoes from this website and I am definitely satisfied with them. perhaps I would give this website a 20 on a scale from 1-10 and would certainly recommend this site to all. much like the I will definitely be purchasing more items in the future. in any event It has been a pleasure.
authentic cheap jordans https://www.cheapsneakeronline.com/
This site is the truth. I’m always on checking release dates, but I never bought from this site. or possibly A lot of people said good things, so I ordered a pair and they were delivered to my door before I could even buy clothes to go with the sneakers. exactly like the Very fast shipping. situation You guys have a loyal customer.
cheap jordans https://www.realcheapretrojordanshoes.com/
This site is the truth. I’m always on checking release dates, but I never bought from this site. or just A lot of people said good things, so I ordered a pair and they were delivered to my door before I could even buy clothes to go with the sneakers. simillar to the Very fast shipping. no matter what You guys have a loyal customer.
cheap jordans for sale https://www.authenticcheapjordans.com/
This site is the truth. I’m always on checking release dates, but I never bought from this site. or even A lot of people said good things, so I ordered a pair and they were delivered to my door before I could even buy clothes to go with the sneakers. exactly like the Very fast shipping. blue jays You guys have a loyal customer.
cheap real jordans https://www.cheapjordansstore.com/
This site is the truth. I’m always on checking release dates, but I never bought from this site. or perhaps a A lot of people said good things, so I ordered a pair and they were delivered to my door before I could even buy clothes to go with the sneakers. most notably Very fast shipping. blue jays You guys have a loyal customer.
cheap jordans online https://www.bestretro-jordans.com/
This site is the truth. I’m always on checking release dates, but I never bought from this site. in addition A lot of people said good things, so I ordered a pair and they were delivered to my door before I could even buy clothes to go with the sneakers. for example the Very fast shipping. regardless You guys have a loyal customer.
cheap retro jordans https://www.retrojordansshoes.com/
This site is the truth. I’m always on checking release dates, but I never bought from this site. or even a A lot of people said good things, so I ordered a pair and they were delivered to my door before I could even buy clothes to go with the sneakers. for example the Very fast shipping. anyway You guys have a loyal customer.
authentic cheap jordans https://www.cheapauthenticjordans.com/
This site is the truth. I’m always on checking release dates, but I never bought from this site. perhaps A lot of people said good things, so I ordered a pair and they were delivered to my door before I could even buy clothes to go with the sneakers. cherish the Very fast shipping. direction You guys have a loyal customer.
buy cheap jordans https://www.realjordansshoes.com/
This site is the truth. I’m always on checking release dates, but I never bought from this site. in addition A lot of people said good things, so I ordered a pair and they were delivered to my door before I could even buy clothes to go with the sneakers. similar to the reduction Very fast shipping. you ultimately choose You guys have a loyal customer.
authentic cheap jordans https://www.cheapauthenticjordanshoes.com/
This site is the truth. I’m always on checking release dates, but I never bought from this site. or maybe many people said it was good, so I ordered one and they were delivered to my doorstep before I had time to buy clothes to match. such as the Very fast shipping. direction You guys have a loyal customer.
authentic louis vuitton outlet https://www.bestlouisvuittonoutlet.com/
This site is the truth. I’m always on checking release dates, but I never bought from this site. quite possibly many people said it was good, so I ordered one and they were delivered to my doorstep before I had time to buy clothes to match. simillar to the Very fast shipping. you ultimately choose You guys have a loyal customer.
cheap louis vuitton online https://www.louisvuittonsoutletstore.com/
This site is the truth. I’m always on checking release dates, but I never bought from this site. properly many people said it was good, so I ordered one and they were delivered to my doorstep before I had time to buy clothes to match. including the Very fast shipping. you decide You guys have a loyal customer.
louis vuitton outlet online https://www.cheapreallouisvuitton.com/
no rx online pharmacy
I just wanted to thank you for the fast service. or it may be they look great. I received them a day earlier than expected. decline I will definitely continue to buy from this site. direction I will recommend this site to my friends. Thanks!
cheap louis vuitton handbags https://www.cheaplouisvuittonoutletonline.com/
reliable online pharmacy
online pharmacy canada
discount pharmacies online
canada pharmacies top best
rx online
Read reviews and was a little hesitant since I had already inputted my order. or alternatively but thank god, I had no issues. which includes received item in a timely matter, they are in new condition. in any event so happy I made the purchase. Will be definitely be purchasing again.
louis vuittons outlet https://www.louisvuittonsoutletonline.com/
play free bonus slots williams interactive slots vegas world free games online slots sign vegas free slots
online casinos no deposit bonus no deposit online casino real money win real money online casino for free best online casino deposit bonuses
casino games for real money casinos online real money no deposit best
online casino us online casinos for usa players
best online casino reviews online casino real money online casino usa
real money no deposit bonus online casino welcome bonus
best online casinos for real money mobile casino
games for real money best usa online casinos best online casino reviews
online casinos no deposit bonus free bonus no deposit casino online casinos usa real money casino no deposit
sign up casino bonus online casinos real money no deposit free cash bonus no deposit casino best online casino welcome bonuses
casino games that pay real money online casino
usa real money no deposit bonus no deposit slots for real money online casinos no deposit bonus
top online casino online casino bonuses no deposit casino online casino no deposit bonus
mobile gambeling casino signup bonus no deposit online casino no deposit
bonus 2021 casino no deposit sign up bonus
what is the best online casino for real money bonus casino online gambling for real money mobile casinos for real money
cost antivert
nabp canadian pharmacy
canadian pharmacies recommended by aarp
ed meds without doctor prescription
antivert tablet
Hmm it appears like your site ate my first comment (it was
super long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying
your blog. I as well am an aspiring blog blogger but I’m still
new to everything. Do you have any points for inexperienced blog writers?
I’d genuinely appreciate it.
It’s awesome to pay a visit this web site and reading the views of all mates regarding this piece
of writing, while I am also eager of getting know-how.
order generic meclizine
antivert 25mg without prescription
canada drugs no prescription
canadian certified pharmacy
online pharmacies
discount canadian pharmacy
Азино777 официальный сайт онлайн казино Azino777
Поиск ответственного азартного заведения трудный. В связи с этим стоит обратить внимание на официальный сайт Azino777 azino777official.space. Казино открыто в 2015 году, известно по всей России и в странах СНГ. Заведение работает легально, есть все документы. Ассортимент включает в себя более тысячи игр, столов, рулеток, игровые автоматы. Часто проводятся турниры и планируется раздача подарков. Основные преимущества: быстрый вывод средств, оперативная онлайн поддержка клиентов, бесперебойная работа.
Hello, i think that i saw you visited my web site thus i came to “return the favor”.I am attempting to find things to enhance my website!I suppose its ok to use a
few of your ideas!!
https://wincomp.ru
Проверенные казино
Убедитесь, что казино имеет действующую лицензию от уважаемого регулятора, такого как Malta Gaming Authority, UK Gambling Commission или Gibraltar Regulatory Authority. Лицензия гарантирует, что казино соответствует определенным стандартам и правилам.
Безопасность: Проверьте, использует ли казино современные технологии шифрования, такие как SSL (Secure Socket Layer), для защиты вашей личной информации и финансовых транзакций.
t:Казино для игры в казино на биткоины
Azino777 официальный сайт: регистрация, личный кабинет
реалистичная секс-кукла https://ru.realsexdoll.com
игровые автоматы
todellinen seksinukke
Покупные бонусы в казино
бездеп за регистрацию
бездеп за регистрацию
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.com/de-CH/register?ref=WTOZ531Y
We wish to thank you yet again for the wonderful ideas you gave Jesse when preparing a post-graduate research and also, most importantly, regarding providing all the ideas
in one blog post. Provided we had been aware of your site
a year ago, we may have been kept from the pointless measures we were taking.
Thank you very much. toys for adults
I was suggested this blog via my cousin. I’m now not sure whether
or not this put up is written by means of him as no one else know such
targeted about my problem. You are amazing! Thank you!
If you desire to grow your familiarity simply keep visiting this web site and be
updated with the hottest information posted here.
Outstanding post, I conceive blog owners should acquire a lot from this blog its very user pleasant.
cichej hydrochlorothiazide 25 mg picture geesebut candesartan vs olmesartan – hydrochlorothiazide and metoprolol [url=https://canadapharmacy-usa.com/buy-benicar-usa.html]benicar recall
2015[/url] beulah lisinopril/hydrochlorothiazide brand name
persistence salicylic acid for plantar warts psovi makeup with salicylic acid – salicylic
acid gel [url=https://canadapharmacy-usa.com/buy-salicylic-acid-usa.html]is
salicylic acid a bha[/url] valuositys salicylic acid at walmart
Hi! This is my first visit to your blog! We are a group of volunteers and starting a new project in a community in the same niche.
Your blog provided us valuable information to work on. You have done a extraordinary
job! I saw similar here: Sklep internetowy
Hi it’s me, I am also visiting this website regularly, this site is truly pleasant and the users are actually sharing nice thoughts.
I saw similar here: Sklep online
Howdy! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying
to get my blog to rank for some targeted keywords but I’m not
seeing very good results. If you know of
any please share. Thanks! You can read similar blog here:
E-commerce
Within a limited budget, Cheap jordan Shoes is your good helper. These shoes not only look simple and elegant, but are also suitable for various occasions. Pair it with a pair of casual pants, a simple top, and Cheap jordan Shoes to easily create a casual and fashionable style.
Hey there! Do you know if they make any plugins to help with SEO?
I’m trying to get my blog to rank for some targeted keywords
but I’m not seeing very good results. If you know of any please share.
Many thanks! You can read similar text here: E-commerce
Howdy! Do you know if they make any plugins to assist with Search
Engine Optimization? I’m trying to get my blog to rank for some targeted keywords
but I’m not seeing very good success. If you know of
any please share. Cheers! You can read similar art here:
Sklep online
Hello! Do you know if they make any plugins to help with Search Engine Optimization?
I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains.
If you know of any please share. Kudos! You can read similar art here:
Najlepszy sklep
Hey there! Do you know if they make any plugins to help with SEO?
I’m trying to get my website to rank for some targeted keywords but I’m not seeing very good results.
If you know of any please share. Thank you!
I saw similar article here: AA List
Остекление квартир – современные технологии для комфорта и уюта
VSDC Free Video Editor: Your Ultimate Tool for Creating Stunning Videos
История успеха компании REHAU в производстве пластиковых окон
Художественный дизайн: творческий подход к созданию уникальных проектов
Строительство жилых домов: качественное жилье для вашей семьи
Инновационные технологии в строительстве: революция в отрасли
Установка и монтаж инженерных систем: профессиональные услуги для вашего комфорта
Производство зеркал и стекол на заказ от стекольной мастерской «Мир Стекла»
Идеальное жилье для одного или небольшой семьи: однокомнатная квартира
Все о современных технологиях
Все о дизайне интерьера
Доступные альтернативы: турецкая плитка для среднего класса
Все о современных технологиях
Дистанционное банкротство: чем оно выгодно
Дымоходы из нержавеющей стали: Топовое решение для вашего дома
Лазерная резка на заказ от компании Laserprof: современные технологии для ваших проектов
Мягкие окна AVI: создайте уютные веранды и беседки для комфортного отдыха на свежем воздухе
Нерудные строительные материалы в Санкт-Петербурге и Ленинградской области: инновационные решения для вашего проекта
Все о современных технологиях
Тренды дизайна интерьера: вдохновение и инновации
Все о современных технологиях
Ландшафтный дизайн: создание гармоничного и уникального окружения
Ремонт тепловизоров в Москве: профессиональный сервис для вашей техники
PBN sites
We’ll build a structure of private blog network sites!
Benefits of our privately-owned blog network:
WE DO everything so GOOGLE DOES NOT grasp THAT THIS IS A PBN network!!!
1- We acquire domains from various registrars
2- The primary site is hosted on a VPS hosting (Virtual Private Server is fast hosting)
3- Additional sites are on different hostings
4- We attribute a unique Google account to each site with confirmation in Google Search Console.
5- We create websites on WP, we don’t utilize plugins with assisted by which malware penetrate and through which pages on your websites are created.
6- We never reiterate templates and utilise only unique text and pictures
We do not work with website design; the client, if desired, can then edit the websites to suit his wishes
Все о дизайне интерьера
Online medicine order http://indiaph24.store/# best online pharmacy india
best india pharmacy
Все о дизайне интерьера
МАСЛА ДЛЯ ЛЕГКОВЫХ АВТОМОБИЛЕЙ North sea — качество и надежность от ведущих производителей
mexican online pharmacies prescription drugs: mexico pharmacy – mexican rx online