Hi guys,
The ever-growing export options in Gideros lead to extra time spent making bitmaps work everywhere. How do you deal with this?
I would appreciate all thoughts regarding scaling, from pixel perfect, to scaled up retro bitmaps, to pixels drawn with code.
Cheers,
Niclas
Comments
I'm keen to learn what others are doing
https://deluxepixel.com
There is quite a range now with all export options and a very fragmented iOS and Android world. The resolutions vary from 640x960 on the iPhone 4 to 2048x2732 on the iPad Pro. And everything in between!
My aim is to support all resolutions to make sure everyone can play my games and that they look decent on all devices. A few concrete options to make this happen come to mind:
a) Create bitmaps to cater for the largest resolution, then scale them down for lower res devices. This means the lower resolution devices will look worst.
b) Create bitmaps at 100% to cater for all devices and let the background "bleed" when needed. This is a lot of effort and adds a lot of extra weight to the app. But the bitmaps are always perfect.
c) Draw all graphics with code. Hard core!
I was curious to see what approach people take on this, if any of the above, or something else.
We're using coded graphics for dialogue boxes and other basic menu buttons etc. We've built classes to make this process a lot easier.
Recently, I created a 9 patch function for building dialogues with rounded corners. Scaling the straight edges and centre images works well.
Likes: pie, SinisterSoft
@ar2rsawseen, that would be amazing. I love to work with vector graphics. It would save a lot of time, and download time!
https://deluxepixel.com
Don't use shapes if you can help it, they are terribly slow when using huge amounts of them
m = a mesh
ib = image base of a texture pack
i = the image within a texture pack (getTextureRegion("ninepatch.png"))
left, right, top, bottom = the edges or null, if null then it's equally split into 9 sections
fh, fv = flip horizontal and vertical
https://deluxepixel.com
https://deluxepixel.com
Likes: simwhi
I'll be working on a faster implementation of shapes/vector graphics as part of HTML5 kickstarter, including SVG support.
Likes: simwhi, SinisterSoft, antix
https://deluxepixel.com
I'll add some sample 'widgets' and demos then put it in with the Gideros github.
https://deluxepixel.com
@hgy29 that's an awesome feature to put in. Probably worth explaining the speed and weight improvements as selling points.
I have added these spritesheets to the Project library:
This code always picks the @1x spritesheet:
A whole new way of thinking, pixels instead of percentage. I like it.
http://docs.giderosmobile.com/automatic_image_resolution.html
Fragmenter - animated loop machine and IKONOMIKON - the memory game
EDIT - I don't think it will work with no scale set in the box. You have to choose a scale method for Gideros to pick the right sprite sheet. Anything but the top two choices, the 'no scale' ones, should work. The rest of the code and the sprite sheets names look fine.
Pixel perfect will still use the correct @2x / @3x sprite sheet. It just means that it won't be stretched in any way. Rather than being stretched to fit, more of your scene can be viewed around the edges. This has pluses and minuses.