-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fire breath ability #69
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastico amigo, te dejo algunos comentarios.
src/game/player.rs
Outdated
{ | ||
info!("event received"); | ||
commands.spawn(ParticleSystemBundle { | ||
transform: Transform::from_translation(position.extend(1.0)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hay algunas particulas que se dibujan abajo de algunas tiles, no se por que. Tendriamos que ver bien los valores z de todos los transforms y quizas crear constantes f32
que representen "layers" de dibujado. 0 para el fondo/tiles, 1 para los edificios, 2 para las entidades que se mueven en la tierra, 3 para las que vuelan... etc. y ver si ese es el problema.
Hoy descubri como conseguir el "vector direccion" del Player en base a la rotacion del transform: let direction = transform.rotation.mul_vec3(Vec3::Y).truncate(); No hace falta hacer toda esa gilada de tener un componente Direction como te habia dicho. Creo que ya estaria normalizado, sino por las dudas podes hacer un |
570aa3a
to
5b1d43a
Compare
705bbbb
to
f9570f1
Compare
Issue:
Closes #36
What was done: