PDA

View Full Version : display problems



benjaminj88
28 Sep 2010, 03:25 AM
Alright I am workin a game, now when displaying the character and surrounding area I am pretty much alright. My only situation is this. My map is made up of 33x33px tiles. I was originally going to set each tile with a background image though I figured rather then cut up each image for example say a building which is 99px squared, cutting it up into 9 pieces I figured just grab and display the full image. My only situation when an instance such as this occurs.

A character is on the street and the bottom row of a building is displayed. How should I go about trimming or removing the excess of the image which shouldnt be displayed do to the visual screen area. (I have a span with the id of screen which is smaller then the entire browser so I can still show stats such as exp and hp. Etc) None the less any ideas?