martedì 27 novembre 2012

Support for more screen size...at a cost

A little digression on JaTris support for devices with 600x1024 or bigger resolution.
As you can see from the images below JaTris full (designed as JaTris free for 480x800 pixel), supports 600x1024, 720x1280 and 800x1280 modes better than the free counterpart.






















However this support has a cost, JaTris is 3Mb while JaTris free is 1.2Mb long.

Some of this space is due to skin system graphics and a little end of game animation but 1.5Mb is due to the replication of sprites for higher resolution screen support.

The problem is the mix of DPI and pixel resolution used by Android system to render graphics.

It works well for smartphones (little screen dimension, with a bunch of pixel resolutions); you ake the graphics for the biggest resolution and let the automatic rescaling do the job for you (it works like a charm).

Unfortunately tablets are different, bigger screens mostly with mid dpi and a bunch of pixel resolutions; the graphics done for smartphones is far too small when rendered on tablets.

The only solution seems to duplicate graphics in high dpi for smartphone in mid dpi for large screen and then the rendering is good on tablets too; unfortunately this doubles the game size.

I tried to avoid this using the resource alias feature, but it does not work well when the alias and the original resource have a different dpi (this is related only to drawables).

With little games like JaTris this is a viable solution but for bigger ones the only solution is to make different apk for different classes of devices.

This problem will get worse with the arrival of full hd devices :-(

JaTris Full released

Released a full (paid) version of JaTris.

Version is aligned to the latest free release (1.41)

Google Play link       JaTris        full version



Differences from the free version :

- Better support for 600x1024, 720x1280, 800x1280 screen resolutions
- Skin system (4 skins)
- Game difficulty : Choose between EASY,NORMAL and HARD game
- Starting level : For advanced players you can skip the first levels and start from 4th, 7th or 10th level
- Endless game mode (play all 63 levels without worring about strategy).








Below some images showing the skin system graphics :




lunedì 26 novembre 2012

JatrisFree 1.41 released

This is a new bugfix release.

Fixed a problem with high score not saved correctly.

Fixed a problem in background music location mainly for Android 4.x device.
Now bgm can reside either on internal or external sdcard and it will be located and played correctly.



venerdì 23 novembre 2012

Found bug on high score save

Problem found in high score system.

When a high score is done in more than one game mode (such as timed and trial, or timed and standard) during the same play session, only the last will be saved.

Probably some overwrite problem.

Working on it.

sabato 10 novembre 2012

Background music problem...solved

Added the ability to check for mounted devices and scan them (in read only mode, so no new premission is needed) searching for a jatris/bmg.mp3 file.

If such a file is found then it will be played during game.
It can now reside on internal or external sdcard.

Tested on Android 2.3 and 4.0 with internal or external sdcard.
It seems to work fine, the fix will be included in the next version.




mercoledì 7 novembre 2012

Problem on background music subsystem

Ok, Jatris does not provide a background music but it can play an mp3 if you put it in a /jatris/bgm.mp3 file on the sdcard.
Tested on Android 2.3 it works flawlessly, but with Android 4.x the mount point of sdcard differs from device to device so Jatris may not find it.

Working on a more general way to identify the sdcard (both internal and external) and check for the presence on the bmg.mp3 file in a jatris directory.
This would solve the problem.