[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 344
  • Last Modified:

How to make 2D games with custom graphics?

Hi everyone,

I'm currently building a game on Adobe Air using Starling and Box2D that will run on every possible device.
I want to be able to calculate and draw my own graphics with code.
(see attaced image)

With all search I've done on game making, everyone is talking about images and sprites.

I also found how to draw on bitmap and make starling texture with it, but I loose the performance with this technic.

How can I draw custom graphics and keeping my performance?

Is using Starling as framework is a mistake in this case?

Thank you for your help
example.jpg
0
Nicolas Alepins
Asked:
Nicolas Alepins
  • 2
1 Solution
 
MereteCommented:
Are these for flash?
No not from what I have read,
Hope you don't mind the links, but I cant really answer this only provide some pointers.
Top 10 Performance Killers in your AIR Application<< this has some very good pointers.
http://blog.flexwiz.net/top-10-performance-killers-in-your-air-application/
What are the major performance hitters in AS3 aside from rendering vectors?
http://stackoverflow.com/questions/8380789/what-are-the-major-performance-hitters-in-as3-aside-from-rendering-vectors
May I offer you "The Starling Manual" If you havent already seen it
The Starling framework allows you to create hardware accelerated applications in Flash.
The main target is the creation of 2D games, but Starling can be used for any graphical application.
http://wiki.starling-framework.org/start
http://wiki.starling-framework.org/manual/start
Skipping forward about 7 pages we get to
Textures and Images,
http://wiki.starling-framework.org/manual/textures_and_images
Please follow on with next steps at the bottom of each page
heres another
Introducing the Starling 2D framework
http://www.adobe.com/devnet/flashplayer/articles/introducing_Starling.html

Hope it helps, I can really take any credit just offering a little help as your question has been left hanging.
Merete
0
 
Nicolas AlepinsAuthor Commented:
Hi Merete,

In fact I finally found my answer by myself few days ago.
Using Starling Custom display object, I'm able to add native Stage3D content and keep the starling framework for the simplicity.

Since this is really not an easy solution, I didn't closed this question to see if anybody would have a better solution.

I'll mark your asnwer as the right one, since I don't think anybody will get another solution and that you provided me with some usefull links to create a good game and complete my project.

Thank you
0
 
MereteCommented:
Hi luminis8619, thank you.
Yes I am a bit surprised that your question didn't get any attention.
I love games!!
Good Game is a program here in Australia TV which I love to watch.
It's these two presenters Hex female and Bajo male that test and review games ..Brilliant stuff.
Check it out if you have time, watch the recent episode.
See Episode 30 - 26/08/2014
http://www.abc.net.au/tv/goodgame/video/
http://www.abc.net.au/tv/goodgame/
Good luck with your game programming
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now