Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Displaysize Madness  (Read 3182 times)
0 Members and 1 Guest are viewing this topic.
Offline Katjes

Innocent Bystander

« Posted 2007-03-20 00:28:14 »

First, I'd like to intoduce me to the board, so Hi everone!  Smiley
I've been reading a while here and its always been very interesting.

Well, currenly I am writing a little j2ME game, it will be kinda like Tetris, with some extra feature like bombs and stuff like that. Right now I've done a little bit coding on the project so far, but I'm still working on the overall concept.  While I have the gameplay pretty much planned out, I figuered out that the various types of displays seems to be a problem.
I heavely rely on images & sprites, so my first approach was to find out the common displaysizes, then scale the images and the game accordantly, and provide a seperate *.jar-file for each type of display.  That way, the game would always fit the current phone and look good.

But doing some research on I found they use 128x128, 128x160, 176x208, 208x208, 240x320, 320x240 and 352x416 displays for their cell phones.. and thats just the nokia ones. So, to support all Nokia phones, I would have to create 7 different versions of the same application, scaling all images and adjusting the positions. That kinda seems like a lot of work to me, especially if there are even more types of displays out there, so I start to wonder if this really is the *right* approach.

Is there a better way to handle this? Maybe create the game small, and then just centering it on big screens? But I guess that wouldnt look that good... so what do YOU guys do?

Offline SimonH
« Reply #1 - Posted 2007-03-20 00:53:55 »

Hi Wink

The best way is to customise for each handset - write a tool which takes a device-specific script and scales down top quality artwork (say 640x640) to the size of the individual target device. Take a look at Ant ( It's what the professionals use...

People make games and games make people
Offline aNt

Senior Devvie


« Reply #2 - Posted 2007-04-06 13:32:49 »

i used to just 'tut' a lot. now i pretend every handset has SVG. but for real projects i use the 3d api, or have everything download precompled to the correct sized graphics (serverside)- as SimonH says. i did look into scaling images down for lots of handsets, but ran into memory problems for lesser powerful devices (also space problems). screenress problems are going to grow as handsets move into HD screens, i feel it will be upto the developer for a long time to sort there scaling, and handsets are moving a lot faster then any other display device at the moment. but hey! welcome to the hassles of mobile development- one of many Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline OverKill

Junior Devvie

Java games rock!

« Reply #3 - Posted 2007-04-10 07:23:03 »

SimonH is 100% correct.
Also automatic scaling might leave you with images that look ugly.

Best thing would be to grab a mid-range phone and develop on that, but keep performance and low memory usage in mind. Really get those images down. I use gimp to get them near optimal and then let png-crush brute-force over them.

Some of the smaller devices have memory limits you will have to work around as well
Pages: [1]
  ignore  |  Print  

EgonOlsen (78 views)
2018-06-10 19:43:48

EgonOlsen (58 views)
2018-06-10 19:43:44

EgonOlsen (78 views)
2018-06-10 19:43:20

DesertCoockie (260 views)
2018-05-13 18:23:11

nelsongames (158 views)
2018-04-24 18:15:36

nelsongames (157 views)
2018-04-24 18:14:32

ivj94 (898 views)
2018-03-24 14:47:39

ivj94 (162 views)
2018-03-24 14:46:31

ivj94 (811 views)
2018-03-24 14:43:53

Solater (175 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!