Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Using graphics in game

 
Ranch Hand
Posts: 99
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
While developing game what is the best way to deal with graphics so that it looks good on all screen densities? Either we can use graphics for all three densities (hdpi,mdpi & ldpi), this can make build size very large if game rely heavily on graphics. Or we can use graphics specfic to one density, either hdpi or mdpi & resizing it when reqiured. Or we can develop different builds of same game according to screen density & size. What is the best way of dealing with graphics?

Thanks & Regards,
Anuj Prashar
 
author
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You basically summed up all the options you have: assets for each density or a single assets set that you scale down/up depending during run-time.

Which one is better depends on the graphical style you are aiming for as well as the time you have to put into creating different resolution assets. For pixelated games you might get away with scaling. For more elaborate graphics your best bet would be to go with the first option of one asset set per density. The current APK maximum size of around 50mb limits this a little of course. But one can work around that by downloading additional assets during the first run of the game.
 
Greenhorn
Posts: 5
Google Web Toolkit IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
An Android application using graphics for game powered by a custom 2D graphics library and Open-GL ES 1.0 for high performance 3D graphics. The graphical tasks are best accomplished with varying techniques.
 
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic