Skip to content

Releases: sbj42/warp-field

v2.0.2

23 Aug 01:29
856278b
Compare
Choose a tag to compare

Rebuilt with latest dev dependencies

v2.0.0

25 Jan 01:14
Compare
Choose a tag to compare

This brings in many changes, some breaking, to clean up the code and make it easier to maintain and use. It also improves the algorithm for several edge cases.

  • Geometry code extracted into a separate package at (tiled-geometry)
  • Clean up repository and npm package (no need for npm-build code to be in repo, and no need for TypeScript source to be in the package)
  • Stricter linting
  • Demo code is now included in this repo
  • API changes (see below)
  • Algorithm changes (see below)

API: Some exposed type names have changed, computeFieldOfView is now a non-member function, and the return type is now FieldOfView instead, with clearer method names.

Algorithm:

  • FieldOfView puts the player at 0,0, because offsets in the field do not necessarily correspond to offsets in a map
  • The shadowcasting now tracks sight-lines even beyond vision obstacles, so that even tiles that are in shadow can be located on some map. This is necessary to enable games to display the player's "memory", i.e. what a tile looked like last time the player could see it. Overall that looks much better on screen than a bunch of blank tiles.
  • Better resolution of tiles that can be seen through multiple warps.

v1.0.6

18 Jan 19:04
Compare
Choose a tag to compare

Updated dependencies

v1.0.5

10 Aug 02:49
Compare
Choose a tag to compare

Updated devDependencies, rebuilt and published. No important changes.

v1.0.4

28 Apr 04:32
Compare
Choose a tag to compare
update dependencies

v1.0.2

05 Sep 03:21
Compare
Choose a tag to compare
  • Fix minified build (it wasn't being minified)

v1.0.1

24 Jul 02:35
Compare
Choose a tag to compare

v1.0.0

13 Jul 01:35
Compare
Choose a tag to compare

Time to call this stable.

v0.1.3

31 Jan 02:19
Compare
Choose a tag to compare

Fix infinite loop when given a negative view radius, and add some test cases for out-of-bounds behavior.

v0.1.2

31 Jan 02:13
Compare
Choose a tag to compare
0.1.2