- Apr 25, 2022
-
-
Alejandro Perea authored
* Add basic chunk utils to infinite layers * Mark TODOs * Apply suggestions from code review Co-authored-by:
Thorbjørn Lindeijer <bjorn@lindeijer.nl> * Apply interface suggestions from code review * Update changelog Co-authored-by:
Thorbjørn Lindeijer <bjorn@lindeijer.nl>
-
- Apr 18, 2022
-
-
Alejandro Perea authored
-
Alejandro Perea authored
-
- Mar 28, 2022
-
-
Alejandro Perea authored
* Improve CI; Add rustfmt & clippy jobs * Run `cargo fmt --all` * More permissive clippy job * Apply clippy suggestions * Run rustfmt again
-
Alejandro Perea authored
-
Alejandro Perea authored
-
- Mar 26, 2022
-
-
Alejandro Perea authored
* Add width & height properties to LayerData * Expose get_tile_data methods * Update changelog * Apply suggestions from code review Co-authored-by:
Thorbjørn Lindeijer <bjorn@lindeijer.nl>
-
- Mar 24, 2022
-
-
Alejandro Perea authored
* Fix lifetimes; Add some tests * Add remaining doctest
-
- Mar 19, 2022
-
-
Alejandro Perea authored
-
- Mar 14, 2022
-
-
Alejandro Perea authored
* Add `Loader` and map loading functions * Update examples, doc & tests * Add tileset loading functions * Fix unrelated broken intradoc link * Fix intradoc link * Fix more docs * Update changelog and readme * Fix warnings * Change version, remove dead code
-
Michael Swiger authored
-
- Mar 10, 2022
-
-
Alejandro Perea authored
* Update version to 0.10.0, add include table * Address PR comments * Change crates.io version
-
Thorbjørn Lindeijer authored
Also use the TileId alias in a few more places.
-
- Mar 08, 2022
-
-
Alejandro Perea authored
* Update version to 0.10.0, add include table * Address PR comments
-
Alejandro Perea authored
* Implement `Tileset::tiles` * Remove iterator types * Small fixes * Remove unused lifetime
-
Alejandro Perea authored
* Update changelog * Reorder and add group layer support mention * Add result/error changes
-
Alejandro Perea authored
* Rename `TiledError` to `Error` * Add `Result` type * Small doc fix. * Use `Result` where appropiate Co-authored-by:
Thorbjørn Lindeijer <bjorn@lindeijer.nl>
-
Alejandro Perea authored
* Implement `Deref<Target = TData>` for `T` * Move data properties to their respective data type * Add docs to Data types * Remove properties to user-side members * Fix example/test builds * Address PR comment * Add map member properties * Address PR comments * Fix tests * Address PR comment
-
- Mar 07, 2022
-
-
Alejandro Perea authored
-
Alejandro Perea authored
* Optional `optionals` in `get_attrs!` * Improve `get_attrs` * Improve Map error * Simplify `parse_tag` internals
-
- Mar 04, 2022
-
-
Alejandro Perea authored
-
Alejandro Perea authored
-
Alejandro Perea authored
* Warn on missing docs * Add some documentation and fix examples * More documentation * More docs * More docs * Fix object colour docs * Finish documenting * Misc changes * Address PR comment
-
- Mar 03, 2022
-
-
Alejandro Perea authored
* Add attributes - `#[inline]` for properties - `#![deny(unsafe_code)]` - `#![deny(missing_copy_implementations)]` - `#![deny(missing_debug_implementations)]` * Add more inline attributes * Merge with upstream
-
- Feb 23, 2022
-
-
Alejandro Perea authored
-
Alejandro Perea authored
* Make path a requirement for parsing * Remove `SourceRequired` error * Fix build
-
- Feb 16, 2022
-
-
Alejandro Perea authored
* Add properties to `Object` * Add properties to `FiniteTileLayer` * Add properties to `Layer` * Add properties to `ImageLayer` * Add properties to `ObjectLayerData` * Remove `data()`; Replace `map()` * Add properties to `LayerTile` * `MapWrapper` -> `map_wrapper!` * Fix examples/tests * Limit visibility of data types * Make `Tile::collision` public again * Doc tweak Co-authored-by:
Thorbjørn Lindeijer <bjorn@lindeijer.nl>
-
- Feb 14, 2022
-
-
Alejandro Perea authored
* Refactor chunk system - Add `FiniteTileLayer` & `InfiniteTileLayer` - Chunks are now stored by chunk position - Add `InternalChunk` for holding mid-parse chunk info * Fix tests * Cleanup * Make chunk constructor private * Address PR comments * Box chunk tiles * Convert numeric types before multiplication
-
Alejandro Perea authored
* Move `parse_animation` to the `animation` module * Simplify `parse_data_line` * Simplify tile layer utils * Simplify `convert_to_tiles` * Simplify objects module * Simplify if * Address PR comments
-
- Feb 12, 2022
-
-
Anti-Alias authored
-
Anti-Alias authored
* Changed Rc to Arc * Trying to trigger a rebuild * Trying to trigger a rebuild * Testing
-
Alejandro Perea authored
-
Alejandro Perea authored
-
- Feb 11, 2022
-
-
Alejandro Perea authored
* Add SFML example Adds a rough demo using SFML for rendering. * Simplifications to SFML example * Rely on sfml 0.16 rather than a git revision * Avoid allocating temporary Path * Take into account margin and spacing * Directly produce a FloatRect, since it is what SFML needs * Renamed VertexMesh to QuadMesh * Use Vertex::with_pos_coords since we always passed Color::WHITE * Removed TileLayer wrapper, since it added no value * Removed handling of gid == 0 in Tilesheet::tile_rect * Update contributors list * Apply formatting * Avoid the need to inverse the camera matrix * De-hardcode the tile size Also fixes the example a bit, because the map was drawn too small. * Update workflow * Try fixing CI issue by removing rust-cache * Fix CI * Fix map asset path * Merge SFML and Rust workflow * Misc changes * Merge upstream/master * Update example to master * Fix line endings * Fixed comment Co-authored-by:
Thorbjørn Lindeijer <bjorn@lindeijer.nl>
-
- Feb 10, 2022
-
-
Alejandro Perea authored
* Close #124 * Add `TiledError::InvalidEncodingFormat` * Rename `DecompressingError` to `IoError` * Add `InvalidPropertyValue` & `UnknownPropertyType` * Remove `Other` * Remove `ParseTileError` * Misc comment improvements * Revert `IoError` back to `DecompressingError` - Use `CouldNotOpenFile` for `Map` * Address PR comments
-
Anti-Alias authored
* Adding group layer support * Added test case and fixed parsing code * Adding comma * Adding missing newline * Merging GID changes * Merging GID changes * Cleaning files * Cleaning files * Cleaning files
-
- Feb 09, 2022
-
-
Alejandro Perea authored
* Partial commit * Partial commit * Partial commit * Some suggested changes and fixed tests (except infinite) * Replaced `tile` member in `LayerTileRef` with a function to get an `Option<&Tile>`. * Replaced `Map::get_tile_by_gid` with `Map::get_tileset_for_gid`, which just returns the `Option<&Tileset>`. It also does a reverse search, which fixes the lookup in case an external tileset has grown since the map was last saved. * Replaced `Tileset::get_tile_by_gid` with `Tileset::get_tile`, since subtracting of the `first_gid` already happens when creating the `LayerTileRef`. Also, we eventually should remove `first_gid` from `Tileset`, since it should be possible to share a single tileset instance betweeen several maps. * Pre-allocate the tiles hash map for the expected number of tiles and use `or_default` instead of `or_insert_with(Default::default)`. * [nonbuilding] Move ownership of tilesets - Moves the ownership of tilesets from Map to an object implementing `TilesetCache` * Clean up * More cleanup * Organize layers into modules * Further modularization * Add layer wrappers * Implement `Clone + PartialEq + Debug` for wrappers * Fix example * Fix all tests except for test_infinite_tileset * Move layer utils to its own module * Better `Map::layers` documentation * `TilesetCache` -> `cache::ResourceCache` * Add `ResourcePath`, rename and add errors * Interface changes - Move embedded tilesets from cache to map - Store `Option<LayerTileData>` instead of `LayerTileData` * parser ->`&mut impl Iterator<Item=XmlEventResult>` * Document that tilesets are ordered by first GID * Fix the layer tiles using GIDs issue * Run `cargo fix` * Fix `test_infinite_tileset` tests * Implement a way to access object tile data * Rename `TiledWrapper` to `MapWrapper` * More efficient `get_or_try_insert_tileset_with` * Add `ResourcePathBuf`, use `Rc<Tileset>` in `Map` * Remove `MapTileset::first_gid` * Run `cargo fix` * Remove unrelated `Tileset` changes * Requested changes * Avoid reference counting when accessing tiles * Store tile data instead of (u32, u32)` in objects * Remove unneeded functions from `ResourceCache` * Address PR comments * Misc improvements in `layers::tile` * Improve example * Convert `LayerTile` properties to fields Co-authored-by:
Thorbjørn Lindeijer <bjorn@lindeijer.nl>
-
Alejandro Perea authored
* Fix #148 * Close #85 * Close #149 * Fix just one small issue * Update changelog
-
- Feb 03, 2022
-
-
Thorbjørn Lindeijer authored
* Added "game-development" to "categories" * Added "gamedev" to "keywords" * Updated repository URL * Updated dependencies * Removed broken "documentation" URL
-
- Jan 26, 2022
-
-
perlindgren authored
-