Skip to content

Releases: Cazka/diepAPI

v3.2.0

17 Dec 23:33
5b68c69
Compare
Choose a tag to compare

What's Changed

Full Changelog: v.3.1.0...v.3.2.0

v3.1.0

15 Nov 22:17
5d2d3a3
Compare
Choose a tag to compare

What's Changed

  • fix regex to detect tank and level by @Cazka in #44
  • change reference to _window by @Cazka in #45
  • Feature/round vectors after scaling by @Cazka in #47
  • Feature/fix entity manager by @Cazka in #51
  • add game states to game.ts. by @Cazka in #52

Full Changelog: v.3.0.0...v.3.1.0

v3.0.0

02 Oct 19:28
723556b
Compare
Choose a tag to compare

Completely rewriten the api.

You should definitely try this command out:

diepAPI.extensions.debugTool.load()
diepAPI.extensions.debugTool.drawAll(true)

image

What's Changed

  • add support for solid background command by @Cazka in #28
  • added method that get player entity by @Cazka in #24
  • Making the entityManager an opt in option by @Cazka in #29
  • Feature/add children parent entities by @Cazka in #30
  • Feature/improve bullet linking by @Cazka in #33
  • version 3 by @Cazka in #40
  • Many more beautiful things 🌺

Full Changelog: v.2.1.1...v.3.0.0

v3.0.0-alpha.1

13 Mar 15:41
76369b7
Compare
Choose a tag to compare
v3.0.0-alpha.1 Pre-release
Pre-release

Added:

  • entityManager.initialize() needs to be called to start recording entities (#12)
  • entityManager.getPlayer() returns the own player entity (#24)

Bugfix:

  • Added support for ren_solid_background command (#28)

v.2.1.1

26 Feb 22:34
de16213
Compare
Choose a tag to compare

Added:

  • Support for retina displays or any displays with a window.devicePixelRatio != 1.
  • new method arenaScaling.screenToCanvasUnits() scale screen pixels to canvas pixels
  • new method arenaScaling.canvasToScreenUnits() unscale canvas pixels to screen pixels
  • new method arenaScaling.screenToCanvas() scale screen coordinates to canvas coordinates
  • new method arenaScaling.canvasToScreen() unscale canvas coordinates to screen coordinates

Breaking Changes:

  • arenaScaling.toScreenPos() got renamed to arenaScaling.toCanvasPos()
  • arenaScaling.toScreenUnits() got renamed to arenaScaling.toCanvasUnits()

v2.1.0

30 Jan 22:34
d0c6af7
Compare
Choose a tag to compare

Added:

  • player.level: returns the current player level.
  • player.tank: returns the current player tank.
  • player event: 'level': emitted when player level changes.
  • player event: 'tank': emitted when a player tank changes.

Breaking change:
Movement.predictPos now takes the time in ms as input,

Before:
Movement.predictPos(performance.now() + 1000)

Now:
Movement.predictPos(1000)

v2.0.4

24 Jan 11:53
5b2b063
Compare
Choose a tag to compare

Bugfix:

  • Fixed loading issue

v2.0.3

10 Oct 23:14
Compare
Choose a tag to compare

Added:

  • player.gamemode: returns current gamemode.
  • player.isDead: returns true if player is dead otherwise false
  • player event: 'keydown': emitted when player presses a key down.
  • player event: 'keyup': emitted when a player presses a key up.

Bugfix:

  • player.mouse didnt update properly when the player kept moving without moving the cursor.

v2.0.1

10 Oct 16:02
Compare
Choose a tag to compare

Added:

  • player.mouse: returns current mouse position in arena.

v2.0.0 entityManager is here!

23 Sep 01:57
Compare
Choose a tag to compare