C#C
C#2y ago
4 replies
Smarts_1l

Trying to convert TMX loading Python Code into C#

How would i translate this:

tmx_data = load_pygame('../data/map.tmx')

for layer in ['HouseFloor', 'HouseFurnitureBottom']:
for x, y, surf in tmx_data.get_layer_by_name(layer).tiles():
Generic((x * TILESIZE,y * TILESIZE), surf, self.all_sprites, LAYERS['house bottom'])

into C#? I am using Raylib as the texture controller and the group is a list called SpritesList and the Texture is just called SpriteImage.
Was this page helpful?