-
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
Adds score system #86
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.
Te dejo dos comments opcionales, a ver que pensas. LGTB! (?
src/game/combat.rs
Outdated
@@ -146,16 +147,22 @@ fn spawn_projectiles( | |||
|
|||
fn projectile_collision_with_player( | |||
mut commands: Commands, | |||
mut player_query: Query<(Entity, &mut ResourcePool<Health>), With<Player>>, | |||
mut player_query: Query< | |||
(Entity, &mut ResourcePool<Health>, &mut ScoreSystem<Score>), |
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.
Creo que ya no hace falta que traigas el ScoreSystem aca no? Si es asi aprovecha y borralo asi querias menos cosas.
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.
Solved!
score_system.add_with_multiplier(*points); | ||
score_system.increase_multiplier_by_one(); |
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.
No se que opinas pero quizas estaria bueno desacoplar la suba del multiplicador de la suma de puntos. Por ej, se me ocurre que solo los edificios te den multiplicador, que son mas dificiles de romper, a que cada enemigo te sume el X. Me suena que si empezamos a spawnear bichos a lo loco con el pasar del tiempo, los numeros se van a ir al re choto. 😆
Issue:
Closes #35
What was done:
Checklist: