Enhance bullet visuals and improve tower defense gameplay speed#136
Merged
Enhance bullet visuals and improve tower defense gameplay speed#136
Conversation
- 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
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Gameplay Improvements:
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