feat: Add animated blue player ship with thruster, bank, and bowwave sprites - #35
Draft
geraldHack wants to merge 1 commit into
Draft
feat: Add animated blue player ship with thruster, bank, and bowwave sprites#35geraldHack wants to merge 1 commit into
geraldHack wants to merge 1 commit into
Conversation
…sprites - Add PlayerAnimationComponent for sprite sheet animation (8 frames, 48x48, 120ms) - Update PlayerComponent with movement direction tracking for animation states - Update DeltaBladeFactory to spawn animated player with new sprite sheets - Add DeltaBladeApp integration to update idle animation state - Add three new sprite sheets: player_blue_thruster.png, player_blue_bank.png, player_blue_bowwave.png - Embed Base64 texture data in EmbeddedTextures using existing PNG decoder - Add BlueShipSpriteGenerator tool for generating placeholder sprites Animation states: - IDLE: thruster loop (yellow rear exhaust) - default - BANKING_LEFT/RIGHT: bank sheet (ship tilt when strafing) - MOVING_UP: bowwave sheet (cyan bow wave at nose) Note: Placeholder sprites generated programmatically. For production use, replace with Gerald's AssetForge-generated sprites by updating the Base64 data in EmbeddedTextures.java or replacing the PNG files in assets/textures/.
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 implements an animated blue player ship for DeltaBlade, replacing the static player texture with animated sprite sheets.
Changes
New Files
PlayerAnimationComponent.java- Component handling sprite sheet animation with 8 frames (48x48 each, 120ms per frame)BlueShipSpriteGenerator.java- Tool for generating placeholder sprite sheets programmaticallyplayer_blue_thruster.png- 8-frame thruster animation (yellow rear exhaust)player_blue_bank.png- 8-frame banking animation (ship tilt for strafing)player_blue_bowwave.png- 8-frame bowwave animation (cyan bow wave at nose)Modified Files
PlayerComponent.java- Added movement direction tracking to communicate animation statesDeltaBladeFactory.java- Updated player spawn to use animated sprite sheetsDeltaBladeApp.java- AddedupdateIdle()call to reset animation stateEmbeddedTextures.java- Added Base64-encoded texture data for new spritesAnimation States
Technical Details
Image(InputStream),ImageIO, or AWTNote on Placeholder Sprites
The included sprite sheets are programmatically generated placeholders. They demonstrate the animation system but should be replaced with Gerald's actual AssetForge-generated sprites.
To replace with production sprites:
EmbeddedTextures.java, orsrc/main/resources/assets/textures/The attached images from the task (player_thruster.png, player_bowwave.png, player_bank.png) were not directly accessible in the workspace environment, so placeholder sprites were generated to wire the animation code.
Testing
mvn compile✅