C
C#4mo ago
smarts1l

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.
1 Reply
Buddy
Buddy4mo ago
Tmx is not a thing for Raylib It doesn't have a scene file officially either So you need to write one custom-made Either by using json and the likes or by using your own binary serialization / deserialization
Want results from more Discord servers?
Add your server