Skip to content

Feature/add children parent entities#30

Merged
Cazka merged 3 commits intomainfrom
feature/add-children-parent-entities
Mar 16, 2022
Merged

Feature/add children parent entities#30
Cazka merged 3 commits intomainfrom
feature/add-children-parent-entities

Conversation

@Cazka
Copy link
Owner

@Cazka Cazka commented Mar 16, 2022

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()
}

@Cazka Cazka merged commit ec5cc15 into main Mar 16, 2022
@Cazka Cazka deleted the feature/add-children-parent-entities branch March 16, 2022 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

link bullet entity with player entity that produced it

1 participant