Giter Club home page Giter Club logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
or have it selectable.
For huawei 8110 (I think 240x320) the map is 11x11 tiles (if I'm correct) but I 
have the feeling that everything is scaled down (at least text is somewhat 
blurry)
It's ok for me, but a choice whether or not to scale (or even choose scale) 
would be nice.

Original comment by surrano on 8 Dec 2010 at 12:18

from andors-trail.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Does this require bigger tiles or are we within the limits that simply blowing 
up the ones in the game now will work and still look good?

Original comment by [email protected] on 9 Feb 2011 at 11:00

from andors-trail.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
At the moment, the game reshapes the draw area to fit the current resolution of 
the phone. I like the fact that it does this, because it allows you to play in 
landscape mode by rotating the phone, allowing you to see further to the left 
or right.

Perhaps people should just have the option to double the sprite size for high 
resolution devices.

Original comment by [email protected] on 10 Feb 2011 at 12:26

from andors-trail.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
I also like it if this was configurable. But the default should be that 
displaying on a tablet should look the same as on a smaller device. This could 
introduce an advantage to players playing on tablet devices compared to players 
on smaller devices, and that's also something worth considering if we allow 
configuration of this.

There is one issue about resizing the tiles that I haven't been able to figure 
out an elegant solution for. Android has built-in support for resizing images 
in apps to a size that is suitable for the device it is being run on. This 
automatic resizing is done by dithering, to make the images look much better 
when scaled up. The problem though is that the dithering is done on the whole 
image, which is a problem for our tileset images. The effect is that some tiles 
bleed into other tiles, making them look really bad when scaled up by dithering.

The solution would probably be to scale the tiles ourselves, or find some way 
to disable the dithering when using automatic scaling.

In my opinion, this is a high priority issue since the market currently points 
towards a lot more Android tablets, and we should make the game as accessible 
as possible t a wide audience.

Original comment by [email protected] on 10 Feb 2011 at 7:03

  • Added labels: Priority-High
  • Removed labels: Priority-Medium

from andors-trail.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
I think you might be overstating the advantage of being able to see further on 
a high resolution device. I don't think it is such a big deal.

While I'm not familiar with Android programming, would this help?
http://stackoverflow.com/questions/2703244/android-programming-screen-resolution

Also,
I'm not sure how you render your sprites, but surely it is possible to resize 
them before drawing them to your surface?

Original comment by [email protected] on 10 Feb 2011 at 8:07

from andors-trail.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024

Original comment by [email protected] on 24 Feb 2011 at 10:04

  • Added labels: Milestone-0.6.9

from andors-trail.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
I have modified the scaling code to better take the device DPI into effect. 

We scale all tiles during the "loading resources"-screen. Previously, we 
rescaled all tiles to a measured suggested pixel width depending on the 
automatic device scaling of images.

Now, we have two scaling methods available. The first, pre-scaling during 
"loading resources" is now done according to the device DPI. This scaling will 
use dithering to make the tiles look good even when scaled up. This scaling 
will never change during the lifetime of the application, since the device 
density most likely will not change during the aplication lifetime. Therefore, 
we can do this expensive scaling on startup.

Secondly, I have introduced a preference setting to allow the player to scale 
up the tiles additionally, if the device DPI does not completely satisfy the 
scaling needs. This could be the case, for example, on a device with large 
resolution (1024x600) but low dpi (160), where the pre-scaling would not 
sufficiently scale the tiles. With this setting, the player can scale all tiles 
when they are drawn instead. Since this scaling is done on the fly when 
drawing, it must be super-quick and not use any fancy methods such as 
dithering. Therefore, the scaling done by the preference setting will look kind 
of pixel:y and blocky.

I am marking this issue as ready for the next release.

I hope this will work out well for the players using tablets!

Original comment by [email protected] on 9 Mar 2011 at 7:36

  • Changed state: Ready

from andors-trail.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
I should also add that we will now support all displays on any type of device, 
including future device sizes that are not yet specified. The game will now 
scale automatically to them.

Original comment by [email protected] on 9 Mar 2011 at 7:40

from andors-trail.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Released in v0.6.9 . Closing.

Original comment by [email protected] on 29 Jun 2011 at 7:49

  • Changed state: Done

from andors-trail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.