What is the logic behind when we use Tile and when we use Tile.prototype?
See original GitHub issueexport class Tile extends defineHex({
orientation: Orientation.POINTY, // pointy orientation
offset: -1, // odd rows are offset
}) {
// ...
}
When we do new Grid(Tile...
we just use Tile, but in some places like distance()
we use Tile.prototype
which seems to be the legacy approach. Is this by design and I’m missing some logic / motivation? Or is this “technical debt”?
Issue Analytics
- State:
- Created a year ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Tile Game One
The tile game is a word building game played with letter tiles on a grid. On each round of the game the player...
Read more >Memory game: Drawing a grid of tiles (article) | Khan Academy
The first step of playing the "Memory" game is to randomly shuffle all the tiles, and then lay them out in a rectangular...
Read more >Prototype tiles in a small Z-Tiles floorspace - ResearchGate
The wired connections between tiles allow high speed, directed communication from one node to another in the floorspace network, facilitating real-time data ...
Read more >Tile - Entity Prototype Definition Literal
Description. List of all entity types. Type of any entity is unique, e.g. iron sword, blueberry bush, ylandium crystal.
Read more >Evaluation Prototype of a Novel Tile-based Processor Array
Abstract— This paper presents the Tiled Computing Array. (TCA), a simple, uniform, 3D-mesh packaging at inter-board level, for massively parallel computers.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We agree on the semantics 🙃 I’ll need some time to think about this. I’ve experimented a lot in earlier versions with this and the current solution with the prototype was, then, the best of the worst. But I agree it’s still a bit meh.
🎉 This issue has been resolved in version 4.0.0-beta.8 🎉
The release is available on:
Your semantic-release bot 📦🚀