craft icon indicating copy to clipboard operation
craft copied to clipboard

Position instances still support array access fallback

Open Hamms opened this issue 7 years ago • 0 comments

For backwards compatibility during the transition from [x, y] to new Position(x, y).

As of https://github.com/code-dot-org/craft/pull/453, we should be able to exclusively use .x and .y rather than [0] and [1] to reference position values, so we can

  • [ ] Update static methods like Position.add to use .x rather than [0] access option
  • [ ] Remove [0] access option

Hamms avatar Jan 15 '18 19:01 Hamms