@oleg I didn't want to do this because it would give me more work.
I think its better changing code in a specific point that applies to all classes.
@hgy29 Thanks for clarification. I'll add the postInit(...) to Sprite class in init.lua.
There may be a way using postInit method. if postInit exists on an object, thehn it is called right after the object is contructed/initialized. So doing:
may well work!
I see. Just …
@oleg I tested with @1, @2 and @4 as you told me and fir all resolutions until 800x1200 it seems the most appropriate images (low and mid resolutions) were used by Gideros.
From 900x1200 on Gideros used the high resolution images.
Results are much…
ps//The suffix @ 1 should not be added to the drawing name!
@oleg Thank you for your time and patience.
At first I didn't added the @1 suffix because the article Automatic Image Resolution don't use it.
I added it as you mentioned and it made n…
@oleg I tested again with logical dimensions 1200x1920 and this is the result:
1 - image bg.png (2400x1200) was used in these lower resolutions:
1 - image bg0.5.png (1200x600) was used i…
To check different graphics sizes - you need to restart the player every time.
Well as @hgy29 said - we need to see your code
As I wrote in my original post I always close the player after a test.
ps Set parameters local dimensions 1200 *1920 , …
I forgot to add the source code in the post.
You can see it here:
local testbg = Bitmap.new ( Texture.new ( "images/bg.png" , true ) )
testbg:setAnchorPoint ( 0.5 , 0.5 )
local halfWidth = application:g…
Guys, I'm testing solution proposed by @oleg, but it is not working.
I'm 100% sure the misbehaviour is my fault, but I failed to find out what is causing the problem.
1 - I created 3 background images:
1.1 - br.png (dimensions 2400x1200).
Thank you all for sharing your point of views.
@Apollo14 Thanks for the heads up. I used the statistics from this site to check the most used screen resolutions: https://gs.statcounter.com/screen-resolution-stats/mobile-tablet/worldwide/#monthly-20…
The reasons that make me like Gideros:
- Fast learning curve.
- It is totally free.
- It is open source.
- its ability to export to platforms I'm interested in (HTML5, Android and iOS).
- it's community. I'm a member of great communities, but …
I didn't have the impression it is like a game store.
Did you find any documentation or any link for developers to submit their games? I didn't.
Maybe they're planning to become a game store in the near future. And if that's the case they can tak…
@PaulH I'm glad you are glad
Many years ago I had to make scrolling lists, text input boxes, check boxes and so on for a J2ME product in the enterprise I worked for.
At the time it was a good experience but now
(15 years later) I don't want to…
@oleg For sure one can make a desktop application using a 2D framework.
But how hard and time consuming would it be to create all components yourself?
I think it does not worth the effort. After all, I don't want to make components. I want to m…
@oleg Thanks for sharing. Developing regular applications implies in using many components that usually are not already available in 2D game frameworks so I consider developing them different from developing games.
@antix At first it didn't seemed …
@SinisterSoft Yes, it does. I tried with the following code and it worked like a charm.
By the way, your report complete application looks awesome.
Note: I replaced https by XPTO in order to avoid editor to mess up with the code.