Basic and simple 2D drawing / animation

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Postby dsgraham » Tue Feb 16, 2010 12:22 am

Thanks for this wonderful tutorial. I am running into a strange issue though.

I am creating a tiled map for a game with 20px by 20px tiles. When I place them with drawBitmap using X and Y's that are intervals of 20 I am getting overlapping tiles. Not by much but it is cutting the tiles short slightly.

Am I misunderstanding how the drawBitmap is working? or is there some scaling happening to the tiles that I need to know about.
dsgraham
Freshman
Freshman
 
Posts: 2
Joined: Mon Feb 15, 2010 11:24 pm

Top

Postby dsgraham » Wed Feb 17, 2010 5:21 pm

I figured it out. If anyone else reads this and is seeing the same issue here is the solution.
I had to copy all of my content from res/drawable into res/drawable-hdpi
this will keep the images from being scaled on a higher resolution platform.
dsgraham
Freshman
Freshman
 
Posts: 2
Joined: Mon Feb 15, 2010 11:24 pm

Top
Previous

Return to Novice Tutorials

Who is online

Users browsing this forum: pskink and 1 guest