Skip to content

7 Texture

dreamness edited this page Mar 26, 2025 · 1 revision
m_2 = Ra3Map.load_map('m_2')

# All texture types are stored in TextureEnum. Please look for them as needed.

# set a area's texture
for x in range(70, 90):
    for y in range(20, 90):
        m_2.set_tile_texture(x, y, TextureEnum.BB_Pavement02)

# get a position's texture
print(m_2.get_tile_texture(100, 150))

m_2.save()

Clone this wiki locally