Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity Messaging System #2

Merged
merged 2 commits into from
Aug 25, 2024
Merged

Entity Messaging System #2

merged 2 commits into from
Aug 25, 2024

Conversation

meisekimiu
Copy link
Owner

No description provided.

Create a new component called "Velocity" to generalize things that move
in a specific velocity every frame, and create a system that applies
that velocity to an entity's position in an isolated, testable, and
framerate-independant way.

Also remove the speed/velocity calculations from the UserProjectile
component so we can use the new Velocity component instead.
Give entities a way to communicate with each other via the
MessageDispatchService. The `MessageInbox` component is used to receive
messages. Currently the MessageDispatchService is for entity-to-entity
communication. Global events will be handled by another service,
although will probably use the same `Message` object with `EventArg`
parameters.
@meisekimiu meisekimiu merged commit 9c05d98 into main Aug 25, 2024
1 check passed
@meisekimiu meisekimiu deleted the event-wip branch August 25, 2024 03:53
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.

1 participant