Releases: Cazka/diepAPI
Releases · Cazka/diepAPI
v3.2.0
v3.1.0
v3.0.0
Completely rewriten the api.
You should definitely try this command out:
diepAPI.extensions.debugTool.load()
diepAPI.extensions.debugTool.drawAll(true)
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
v.2.1.1
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 toarenaScaling.toCanvasPos()
arenaScaling.toScreenUnits()
got renamed toarenaScaling.toCanvasUnits()
v2.1.0
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
v2.0.3
Added:
- player.gamemode: returns current gamemode.
- player.isDead: returns
true
if player is dead otherwisefalse
- 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.