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
11
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
  • 5,766
  • 12
  • 52
  • 70
11
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
  • 940
  • 12
  • 38
9
votes
1 answer

It is possible to move a tiled background? (infinite scroll with TileMode.REPEAT)

I am developing a game First of all my game will be very simple, so i would prefer not to use libraries or opengl or canvas, i would prefer to achieve this with simple imageviews or normal views, or at least by the simplest way possible. For example…
NullPointerException
  • 32,153
  • 66
  • 194
  • 346
9
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
  • 247
  • 2
  • 4
  • 14
9
votes
3 answers

Efficient 2D Tile based lighting system

What is the most efficient way to do lighting for a tile based engine in Java? Would it be putting a black background behind the tiles and changing the tiles' alpha? Or putting a black foreground and changing alpha of that? Or anything else? This…
Kyranstar
  • 1,560
  • 1
  • 12
  • 31
9
votes
2 answers

Vary the fill scale when using facet_wrap and geom_tile together

When using function geom_tile and facet_wrap together in ggplot2, how to set different limits of the aesthetic fill, as the option scales which can be set to be free/free_y/free_x in facet_wrap? The following is an example to show the problem. For…
nicolas.wong
  • 139
  • 1
  • 5
8
votes
4 answers

Getting started with a Tile-based game in Qt using QGraphicsScene and QGraphicsView

I'm going to start programming a 2D tile-based game in Qt and read about the QGraphicsScene and QGraphicsView classes which are intended for displaying and handling lots of 2D objects. My question is that will it be feasible to create a world with…
Maush
  • 83
  • 1
  • 3
8
votes
1 answer

iPhone - CGImageCreateWithImageInRect rotating some camera roll pictures

I am working on a pixelate application for iPhone. Because the pictures taken with the iPhone 4 camera are too big and therefore the application is working really slow when updating the pixelated picture, I am trying to create tiles of the picture…
Andrei Neacsu
  • 1,343
  • 3
  • 19
  • 33
8
votes
1 answer

Color tiles in Windows 10 desktop apps

I noticed with the first big Windows 10 update that some desktop apps have tiles in a different color than the one I have for accent color, like Firefox, which has a dark-gray tile color: However, not all apps have this, and use the default accent…
Yonic
  • 305
  • 1
  • 13
8
votes
2 answers

How can I create an animated tile on WP7?

How can I create an animated tile on WP7 similar to the XBox Live Tile? What are the options for Animating tiles in general?
Jamey McElveen
  • 17,547
  • 25
  • 86
  • 126
8
votes
1 answer

TileProvider graphics gets skewed on higher zoom levels

Im currently playing with TileProver in Android Maps API v2 and kinda stuck with the following problem: graphics which I paint manually into Bitmap gets skewed significantly on higher zoom levels: Let me explain what Im doing here. I have number of…
Pavel Dudka
  • 19,968
  • 6
  • 65
  • 81
8
votes
1 answer

What is a map tile?

I read the google android api and was confused about what a map tile is as the api described how google map handles "downloading map tiles". (Src)-https://developers.google.com/maps/documentation/android/map. Can someone give a quick overview of…
committedandroider
  • 7,124
  • 12
  • 48
  • 114
8
votes
2 answers

Applying a mask to a bitmap and generating a composite image at runtime

Background I am trying to create a 2D tile engine from scratch using c# 4.0 and WPF. I am not attempting to build the next greatest 2D game on the planet, rather I am trying to learn how to manipulate images and graphics using .NET. Goal I am trying…
Jay
  • 7,855
  • 4
  • 48
  • 64
8
votes
1 answer

Irregular tile size in matplotlib hexbin

When making a hexbin plot in matplotlib, I find that alternating rows of hexagon tiles have different sizes, sometimes significantly so. This demonstration code shows the effect: from matplotlib import pyplot as plt from matplotlib import cm as…
8
votes
5 answers

efficient TIFF tile extraction C++

I am working with 1gb large tiff images of around 20000 x 20000 pixels. I need to extract several tiles (of about 300x300 pixels) out of the images, in random positions. I tried the following solutions: Libtiff (the only low level library I could…
Juan
  • 101
  • 1
  • 3
1
2
3
59 60