Skip to content

Enhance bullet visuals and improve tower defense gameplay speed#136

Merged
Azuretier merged 3 commits intomainfrom
claude/improve-bullet-animation-JJetA
Feb 8, 2026
Merged

Enhance bullet visuals and improve tower defense gameplay speed#136
Azuretier merged 3 commits intomainfrom
claude/improve-bullet-animation-JJetA

Conversation

@Azuretier
Copy link
Owner

Summary

This PR improves the visual quality and gameplay feel of the tower defense bullet system by enhancing bullet rendering and increasing projectile speed for more dynamic combat.

Key Changes

Bullet Visual Enhancements:

  • Increased sphere geometry segments from (8, 6) to (12, 8) for smoother bullet appearance
  • Reduced roughness from 0.05 to 0.02 for a more polished, reflective surface
  • Increased metalness from 0.4 to 0.5 for enhanced metallic properties
  • Boosted emissive intensity from 2.5 to 3.5 for brighter glow effect
  • Refined pulse animation: reduced amplitude (0.3 → 0.12) and frequency (0.02 → 0.008) for a subtler, cleaner effect
  • Increased rotation speed (2x faster) for more dynamic spinning motion

Gameplay Improvements:

  • Increased bullet speed from 2.0 to 4.5 per frame for faster-paced combat
  • Doubled turret rotation speed (0.06 → 0.12) for more responsive tower tracking

Implementation Details

The changes maintain backward compatibility while significantly improving visual fidelity and gameplay responsiveness. The bullet pulse animation is now more subtle to avoid visual noise at higher speeds, while the increased rotation speed creates a more engaging visual effect. The faster bullet travel speed creates a more dynamic tower defense experience without affecting hit detection mechanics.

https://claude.ai/code/session_01EkeqXCCSzub6kg7rK2BYnr

- Increase BULLET_SPEED from 2.0 to 4.5 for faster projectiles
- Smoother pulse animation (subtler 0.95±0.12 vs choppy 0.8±0.3)
- Higher sphere geometry segments (12x8 vs 8x6) for smoother mesh
- Brighter emissive glow (3.5 vs 2.5) for better visibility at speed
- Faster turret tracking (0.12 vs 0.06 damping) to match bullet speed
- Faster projectile spin for more dynamic visual

https://claude.ai/code/session_01EkeqXCCSzub6kg7rK2BYnr
@vercel
Copy link
Contributor

vercel bot commented Feb 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
azuretier.net Ready Ready Preview, Comment Feb 8, 2026 5:01pm

Request Review

Bullets previously only updated positions on beat ticks, causing
stuttery 2fps-like movement. Now the render loop independently
interpolates each bullet toward its target every frame using
BULLET_SPEED * delta, giving silky smooth continuous motion regardless
of game tick rate.

- Add interpBulletPos map for per-frame position interpolation
- Move interpolated positions toward target each render frame
- Use interpolated positions for rendering and impact particle spawning
- Clean up interpolation state when bullets are removed

https://claude.ai/code/session_01EkeqXCCSzub6kg7rK2BYnr
- Remove mana concept entirely (state, UI, constants, logic)
- Move HP bar from center column to right sidebar
- Enemies now have HP (default 3) with maxHealth tracking
- Bullets deal damage (1 per hit) instead of instant-killing
- Enemy HP bars drawn as 2D overlay above damaged enemies
  (green → yellow → red color gradient based on remaining %)
- Bullets fire consistently every 1 second (independent timer)
  instead of being gated by mana on beat ticks
- Slower bullet trail interpolation (70% of logic speed) for
  smoother visual movement
- Improved shoot sound: layered sawtooth sweep + sine thump
- Improved kill sound: square crunch + triangle confirmation chime

https://claude.ai/code/session_01EkeqXCCSzub6kg7rK2BYnr
@Azuretier Azuretier merged commit dca3b96 into main Feb 8, 2026
2 checks passed
@Azuretier Azuretier deleted the claude/improve-bullet-animation-JJetA branch February 8, 2026 17:10
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.

2 participants