Questions tagged [tile]

Patterns of identical shapes that have no gaps. They usually represent the playfield in various games. They are also used in web development for reducing the count of images which needs to be transmitted.

Tiles are a very common element in games, used to store information in a simple tessellated format. Because tile grids can easily represent the space of the entire screen, tiles are a very common means of organizing level structure.

The utility of tiles ranges from the layout of ground to hard restrictions on the movement of in-game entities. It may apply to only parts of the game such as over world movement, or it could represent the entirety of all meaningful interactions in the game.

In web development they are commonly used to reduce the amount of data which needs to be transfer. They are also used for implementing a fast hover effect, where just the view port is moved to display another state.

946 questions
46
votes
12 answers

Java: What is a good data structure for storing a coordinate map for an infinite game world?

I am used to coding in PHP but I am not really proficient with Java and this has been a problem for some time now. I expect it to be a fairly easy solution, however I cannot find any good example code any way I search it, so here goes: I am…
Aykın
  • 629
  • 1
  • 7
  • 11
31
votes
2 answers

2D tile map generation

For a 2D tile engine I'm working on map generation algorithms. I tried heightmap generation : hill generation Perlin noise Diamond-square Suitable for tile maps that have a height component but I have sprites like grass, sea, desert and they…
Jack
  • 131,802
  • 30
  • 241
  • 343
26
votes
0 answers

SkAndroidCodec::NewFromStream returned null

I'm developing an Android App. I'm getting that on Android Monitor all the time while tileprovider tiling wms on map. D/skia: --- SkAndroidCodec::NewFromStream returned null D/skia: --- SkAndroidCodec::NewFromStream returned null D/skia: ---…
Hilalkah
  • 945
  • 15
  • 37
22
votes
4 answers

Using ImageMagick to repeat or "tile" an image

How do I tile an image using ImageMagick? I don't think I can use montage because I want the columns displaced by 50% of the original image height. It's probably easier to show an example of what I'm trying to do: Start with: End with: Thanks!
Mike
  • 9,692
  • 6
  • 44
  • 61
22
votes
4 answers

how do i use image sprites in GWT?

I was trying to use a tiled image in an image resource, and i was refering to the GWT tutorial for it... one section says you need to use sprites: http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#ImageResource repeatStyle is…
Salvin Francis
  • 4,117
  • 5
  • 35
  • 43
20
votes
3 answers

Mango Application Tile - remove back

This is a simple question, and a seemingly simple task but I can't find any info on how to accomplish what I need to do. I have an application whose main tile (when pinned) sometimes needs to be the default, single sided tile and sometimes needs…
ZombieSheep
  • 29,603
  • 12
  • 67
  • 114
20
votes
2 answers

Keep tiles visible while loading TileOverlay Map API v2 Android

I would like my TileOverlay to behave like the real Google Maps. When you zoom in, the tile is still visible but pixelized until the new tile is downloaded. The current behavior is: when you zoom in, tiles disappear and you see the ugly grid, and…
vital
  • 1,308
  • 3
  • 13
  • 28
17
votes
3 answers

How to join two images into one with FFmpeg?

There are two images: a.jpg and b.jpg. I just want to know how to join them into one image using ffmpeg. How should I finish the ffmpeg -i a.jpg -i b.jpg command to get a c.jpg output image? This is an example of what I am trying to…
n2v2rda2
  • 327
  • 2
  • 5
  • 15
16
votes
3 answers

Repeat drawable in imageview?

Is it possible to repeat a drawable in an ImageView? I manage to repeat my drawable as a divider in a ListView, but not as an ImageView. Here is my repeated image definition:
Markus K
  • 1,585
  • 2
  • 17
  • 25
16
votes
1 answer

render a tile map using javascript

I'm looking for a logical understanding with sample implementation ideas on taking a tilemap such as this: http://thorsummoner.github.io/old-html-tabletop-test/pallete/tilesets/fullmap/scbw_tiles.png And rendering in a logical way such as…
user3871
  • 12,432
  • 33
  • 128
  • 268
15
votes
3 answers

Convert a single large image overlay to tiles for Google Maps

I have a large high-resolution image that I am using for an overlay using Google Maps v3 API. This works fine for desktop and laptop computers with a reasonable network connection, but unsurprisingly it does not work so well for mobile…
Trott
  • 66,479
  • 23
  • 173
  • 212
15
votes
2 answers

Use Bing Quadkey tiles instead of x/y/z tiles in leafletjs map

I try to create a map with leaflet.js where it is possible to switch between different tile layers. It works great with tileservers that serve the tiles with the standard x,y and z(oom) schema. However, Microsoft Bing uses its own quadkey schema. I…
user168080
  • 153
  • 1
  • 4
13
votes
3 answers

CSS: Give a div a height that is a multiple of a number?

A div has a tilable background. The height of this div will depend on its content. I need the div to stretch by a multiple of the background image's size. For instance, the background is a 64x64 image. So, if the div's height is to increase, I want…
Jem
  • 6,226
  • 14
  • 56
  • 74
13
votes
2 answers

MapBox MB Tile vs Vector Tile

I am a bit confused about Tiles in MapBox. As I understood, a tile is a little piece of map, as in a jigsaw puzzle. MBTiles are images, but they are connected to a database to read data & let interactions be possible. So if I move the mouse, I can…
DeLac
  • 1,068
  • 13
  • 43
13
votes
2 answers

How to repeat an image in C#

I have an image with a certain pattern. How do I repeat it in another image using GDI? Is there any method to do it in GDI?
SAK
  • 3,780
  • 7
  • 27
  • 38
1
2 3
62 63