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

Feat/boosts #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Feat/boosts #9

wants to merge 3 commits into from

Conversation

senicko
Copy link
Contributor

@senicko senicko commented Feb 5, 2023

Add boosts plugin and write simple movement and collision logic

if let Some((entity, _)) = rapier_context.cast_shape(
paddle_transform.translation.truncate(),
0.,
Vec2::new(0., -1.),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

castuj do miejsca w którym potem znajdzie się boost. proponuje dodać zmienną movement_vector o którą będziesz jednocześnie castował i poruszał boosta, tak jak to robimy w ball.rs

1.,
QueryFilter::default().predicate(&|entity| boost_query.get(entity).is_ok()),
) {
// TODO: apply boost effect or sth
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zrób to od razu w tym PR. możesz tu wywoływać event, który będzie potem łapać paletka.

src/boost.rs Show resolved Hide resolved
.get(&textures.boost)
.expect("Boost texture is not loaded");

commands.spawn(BoostBundle::new(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boosty mają się spawnić losowo po zniszczeniu bloczka

@imustend
Copy link
Contributor

imustend commented Feb 6, 2023

Lgtm

@imustend
Copy link
Contributor

lgtm

Copy link
Contributor

@imustend imustend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@imustend imustend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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.

3 participants