Cazka / diepAPI

An API for https://diep.io
MIT License
15 stars 8 forks source link

Feature/add children parent entities #30

Closed Cazka closed 2 years ago

Cazka commented 2 years ago

This PR closes #10

This is a long wished feature of myself. Finally it's here.

You can now find your own bullet velocity.

Example:


function isBulletFromMe(bullet: Entity) {
    return bullet.parent == entityManager.getPlayer()
}