Comments (2)
Really interesting post -- I was literally just thinking about this problem and wondering about why we can't easily impl a trait on the tiled::Object that would provide methods to provide what we want to use.
I don't see how mirroring more properties represents a breaking change? That seems to be in keeping with the current library design, and I'm happy to include that commit if you need it.
I've been racking my brain to figure out how to retain the structure and API for tiled:: objects but add our own methods and extend them. Unfortunately, it seems like that approach isn't very Rusty. The only idea I had for a while is to clone the whole tiled::object, but it seems inefficient. Also, now I need the Tile/Tileset data, too, and that approach would start giving us multiple copies of those objects, which is even worse!
I'm starting to think the the best solution is a set of methods through the toplevel Map object that composes the tiled:: and crate:: objects in a convenient way...
from bevy_tiled.
For anyone else observing or landing here, the previously mentioned change set was merged (#57) as a bandaid while larger api changes are considered.
from bevy_tiled.
Related Issues (20)
- iso example broken with rs-tiled upgrade v0.9.3
- Individual Tiles HOT 1
- bevy tiled must declare indice types HOT 1
- Hexagonal map support ? HOT 4
- Update to bevy 0.3
- Tile alpha channel HOT 1
- Changin rendered maps HOT 2
- Update for bevy 0.4 HOT 2
- Support for animated tiles and collision
- Support for animated tiles and collision HOT 1
- allow specifying which stage process_loaded_tile_maps runs in
- Object support for Isometric maps
- Investigate: Integration with bevy_tilemap HOT 1
- Map scaling introduces artifacts HOT 11
- "Index out of bounds" when TMX data is missing newlines HOT 4
- Incomplete path passed to tiled::parse_with_path HOT 3
- wasm builds fail on get_root_path HOT 4
- Support Image Collection-based Tilesets
- winit error: Please select a feature to build for unix: `x11`, `wayland` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy_tiled.