question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the logic behind when we use Tile and when we use Tile.prototype?

See original GitHub issue
export 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:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
flauwekeulcommented, Sep 1, 2022

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.

0reactions
github-actions[bot]commented, Sep 3, 2022

🎉 This issue has been resolved in version 4.0.0-beta.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found