https://github.com/apmem/simple-tiled
https://github.com/apmem/simple-tiled
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/apmem/simple-tiled
- Owner: ApmeM
- License: mit
- Created: 2024-05-12T14:09:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-12T14:43:02.000Z (about 2 years ago)
- Last Synced: 2025-01-30T00:28:29.248Z (over 1 year ago)
- Language: C#
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Tiled
## Introduction
Easy to use library to create and read [tiled](https://www.mapeditor.org/) maps.
All processes are based on XmlSerializer.
## Usage example
To create map fill necessary fields in `TmxMap` object and call `TiledHelper.Write` to any Stream you wish.
TiledHelper.Write(CreateMap(), File.OpenWrite("./result.tmx"));
To read existing map file you need to get stream with the data and call `TiledHelper.Read`
TmxMap map = TiledHelper.Read(File.OpenRead("./result.tmx"));
More detailed example can be found in [Beasts and bumpkins](https://github.com/ApmeM/BeastsAndBumpkinsParser/blob/main/src/files/map/MAPFile.cs) repository.