Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
0 Grids are the most common way to create 2D environments. 1
But don't be fooled by their 2D capabilities, as they can also be used in 3D games that are limited 2
to a flat surface. 3
A grid is a set of lines. 4
As you can see here, and columns that are put together to form a 2D table. Where each point or cell 5
can be referenced by a pair of a row index and a column index. 6
If you want to learn how to implement grids, head over to the bonus module and look at data structures. 7
Let's find out what are the pros and cons when using grids. 8
The first one is that it's very easy to use: create a 2D array of elements and it will already work with 9
the map structure. 10
If the map was designed to support the grid in the first place. It supports real time changes. 11
Does your game have actions that change the map? 12
By having a grid, you can easily set what's walkable and what's not, and the best part is that it's 13
already implemented in most common game engines 14
Godot included. All of these pros... 15
That means that grids must have some cons and they do have: They have a fixed shape. 16
It will always be a square shaped. Of course, 17
you can disable the sides to make interesting shapes, but is very much limited to that. 18
It cannot support height variation and if your game has hills, valleys, then a grid might not work 19
for your game. 20
In general, it cannot provide too much environment variation. 21
Having a grid city might not be exactly fun in some cases. 22
If a grid-like structure sounds too restrictive to you, then you might want to try graphs. 23
Let's look at them right now.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.