revisant la seccio game: bales, items e inici

This commit is contained in:
2025-09-24 11:37:23 +02:00
parent 2977869ab5
commit c9a29e26dd
7 changed files with 165 additions and 21 deletions

View File

@@ -68,7 +68,7 @@ auto Bullet::update(float deltaTime) -> BulletMoveStatus {
// Implementación del movimiento usando BulletMoveStatus (time-based)
auto Bullet::move(float deltaTime) -> BulletMoveStatus {
// DeltaTime puro: velocidad (pixels/ms) * tiempo (ms)
// DeltaTime puro: velocidad (pixels/segundo) * tiempo (segundos)
pos_x_ += vel_x_ * deltaTime;
if (pos_x_ < param.game.play_area.rect.x - WIDTH || pos_x_ > param.game.play_area.rect.w) {
disable();