How does the game draw the map?

Hello,
The question is, I think, self explanatory. I wonder how the game draws maps.

I understand that the game first creates tiles from a tileset by slicing and then pushing them to the tilemap array. However, I have troubles deciphering what comes next. Because I can't see any relevant functions referencing tilemap in a way that it would be visible...
The tilemap has two sprites (lower and upper layer). Sprites are rendered by pixi.
If this can help, start by typing this in the Debug Console. (F8)
PHP:
SceneManager._scene
Then you can follow the following properties
Parent and Child.
A parent is the parent who controls all children.
All child inherits parent properties.

This may seem complicated, but has force to practice, you go quickly understands the principle of the internal engine.

SceneManager._scene is the Alpha parent of all sprites
@Hudell Does it mean that all graphical rendering is inside pixi_tilemap.js?

@Jonforum Will do for sure.

Thanks a bunch, guys 🙂
@Hudell Does it mean that all graphical rendering is inside pixi_tilemap.js?

@Jonforum Will do for sure.

Thanks a bunch, guys 🙂
ex: you can found all pictures inside

SceneManager._scene._spriteset._pictureContainer.children

so if you do example
SceneManager._scene.x = 500.
This will afect X of all the sprites in game.
because all sprites in game are childrend inside SceneManager._scene.

But, if you do this :
SceneManager._scene._spriteset._pictureContainer.children[5].x = 500;
is only the picture 5 will move by X(500), because picture 5 no have children.

if you add a new sprite or you set this picture have a new parent :
Ex:

SceneManager._scene._spriteset._pictureContainer.children[6].parent = SceneManager._scene._spriteset._pictureContainer.children[5];
so now, picture 6 have parent sprite picture 5;
all change in picture [5] will afect picture 6 , because picture [5] are now parent of picture 6;



so after.. If you move picture 5:
=> sceneManager._scene._spriteset._pictureContainer.children[5].x = 500;

this will move also picture 6 by(500)(SceneManager._scene._spriteset._pictureContainer.children[6])
because picture 6 have parent picture 5. and picture 6 are now child of picture 5 ;
Hope this can help , is very basic, But this is a start in understanding the rpg maker engine.
Very basic... Ummm.... I am speechless 😀 This is more advanced tbat anything I've seen yet 🙂 But I will try to understand it. Thanks a lot 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-does-the-game-draw-the-map.81653/