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.

896 questions
45
votes
11 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
  • 619
  • 1
  • 7
  • 11
30
votes
2 answers

2D tile map generation

I'm developing a 2D tile engine and at this moment I'm working on map generation algorithms. I tried the basic ones usually involved in simple heightmap generation like hill generation perlin noise diamond square but I always get the same problem:…
Jack
  • 125,196
  • 27
  • 216
  • 324
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
  • 3,907
  • 4
  • 32
  • 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
  • 28,629
  • 10
  • 64
  • 112
19
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,198
  • 2
  • 12
  • 27
17
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
  • 705
  • 9
  • 33
16
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,292
  • 5
  • 41
  • 60
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,306
  • 2
  • 15
  • 24
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
  • 52,114
  • 21
  • 134
  • 179
14
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…
Growler
  • 10,676
  • 21
  • 100
  • 224
14
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
  • 143
  • 1
  • 4
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,270
  • 7
  • 24
  • 38
12
votes
5 answers

NES Programming - Nametables?

I'm wondering about how the NES displays its graphical muscle. I've researched stuff online and read through it, but I'm wondering about one last thing: Nametables. Basically, from what I've read, each 8x8 block in a NES nametable points to a…
Jeffrey Kern
  • 2,023
  • 20
  • 37
12
votes
6 answers

How to remove gaps between tiled textures?

I'm using LibGDX to make a platformer. I'm using square tiles for the platforms but when they are drawn some of them have gaps between them. When I zoom in/out or move the camera around the gaps move position. More details: Tiles are 32x32 and I…
user2291015
  • 121
  • 1
  • 4
12
votes
6 answers

How to draw lots of bitmaps on screen in an Android game without slow performance

I want to make a tile based game for android. At the moment I am drawing each tile as a separate bitmap. I have a big for loop that reads from a string and draws different tiles depending on what character it finds to draw the level. I have…
Glen
1
2 3
59 60