File: using-infinite-maps.rst

package info (click to toggle)
tiled-qt 1.2.1%2Bdfsg.1-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 31,084 kB
  • sloc: cpp: 85,970; java: 3,602; python: 1,469; xml: 1,251; sh: 56; makefile: 32; ruby: 15
file content (61 lines) | stat: -rw-r--r-- 1,871 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.. raw:: html

   <div class="new new-prev">Since Tiled 1.1</div>

Using Infinite Maps
===================

Infinite maps give you independence from bounds of the map. The canvas is
"auto-growing", which basically means, that you have an infinite grid which
can be painted upon without worrying about the width and height of the map.
The bounds of a particular layer get expanded whenever tiles are painted
outside the current bounds.

.. figure:: images/infinite/infinite-map-overview.png
   :alt: Infinite Maps Overview

Creating an Infinite Map
------------------------

In the order to create an infinite map, make sure the 'Infinite' option is
selected in New Map dialog.

.. figure:: images/infinite/infinite-new.png
   :alt: New Infinite Map
   :scale: 66

The newly created map will then have an infinite canvas.

Editing the Infinite Map
------------------------

Except for the :ref:`bucket-fill-tool`, all tools works exactly in the
same way as in the fixed-size maps. The Bucket Fill Tool fills the
current bounds of that particular tile layer. These bounds get increased
upon further painting of that tile layer.

.. figure:: images/infinite/infinite-demo.gif
   :alt: Infinite Maps Editing

Conversion from Infinite to Finite Map and Vice Versa
-----------------------------------------------------

In the map properties, you can toggle whether the map should be infinite
or not. When converting from infinite to a finite map, the width and
height of the final map are chosen on the basis of bounds of all the
tile layers.

.. figure:: images/infinite/infinite-map-initial.png
   :alt: Initial Map

   The Initial Infinite Map

.. figure:: images/infinite/infinite-map-conversion.png
   :alt: Properties

   Unchecking the Infinite property in Map Properties

.. figure:: images/infinite/infinite-map-converted.png
   :alt: Final Map

   The Converted Map