优化精灵资源与调整玩法参数#8
Merged
Merged
Conversation
Deploying owproject with
|
| Latest commit: |
cab9a79
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4c162fa0.owproject.pages.dev |
| Branch Preview URL: | https://tweak-player-and-sprites.owproject.pages.dev |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (18)
🚧 Files skipped from review as they are similar to previous changes (14)
📝 WalkthroughWalkthrough本次更新替换多项 AVIF 资源,保留透明 PNG 的 alpha 通道,并调整游戏伤害、清场半径、绘制顺序、贴图复用及构建版本号。 Changes游戏资源与运行时更新
Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
js/config.js (1)
82-82: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win为
editClearRadius补充回归断言。本次修改了清屏半径,但
test/cases-config.js当前未校验该字段,后续数值回退时测试不会失败。请断言BALANCE.editClearRadius等于新的预期值150。建议补充
assert(BALANCE.resource?.extendThresholds?.length > 0); + assertEqual(BALANCE.editClearRadius, 150); assertEqual(BALANCE.playerShotDamage, 3.3);🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@js/config.js` at line 82, 在 test/cases-config.js 的配置断言中补充 BALANCE.editClearRadius 的回归断言,期望值设为 150,确保 editClearRadius 后续回退时测试能够失败。
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@js/config.js`:
- Line 82: 在 test/cases-config.js 的配置断言中补充 BALANCE.editClearRadius 的回归断言,期望值设为
150,确保 editClearRadius 后续回退时测试能够失败。
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 49cd6372-4735-4e71-8251-406dbc5152ae
📒 Files selected for processing (3)
js/config.jsjs/version.jstest/cases-config.js
🚧 Files skipped from review as they are similar to previous changes (1)
- js/version.js
added 2 commits
July 24, 2026 20:41
- 统一自机贴图为 player.avif(单帧),删除 player_yinquan / player_shama 独立文件 - boss_rival 引用同步指向 player.avif - 重编码 boss / enemy / title_banner 等 avif 以减小体积 - tools/to-avif 脚本更新 - 弹幕图层绘制在自机之上 - 自机攻击力提升至 1.18 倍(playerShotDamage: 2.8→3.304, playerOptionDamage: 1.35→1.593) - 擦弹清屏范围 3 倍(editClearRadius: 50→150)
- playerShotDamage: 3.304 → 3.3 - playerOptionDamage: 1.593 → 1.6 - 更新 test/cases-config.js 断言
fldlqu
force-pushed
the
tweak/player-and-sprites
branch
from
July 24, 2026 12:42
70e5ec9 to
cab9a79
Compare
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.
变更内容
精灵资源优化
player.avif(单帧)player_shama.avif/player_yinquan.avif独立文件to-avif脚本玩法调整
closes #N/A
本 PR 统一自机相关贴图为单帧
player.avif,取消对player_shama.avif/player_yinquan.avif的专用引用,并对部分 AVIF 素材进行重编码以减小体积,同时更新to-avif:在使用 ImageMagick 兜底编码时不再强制-alpha off,从而保留带透明通道的 PNG 的 alpha。玩法上调整画面绘制顺序为先画自机、后画敌方弹幕以保证弹幕覆盖自机;并将自机伤害倍率与擦弹清屏范围提高:
playerShotDamage调整为3.3、playerOptionDamage调整为1.6,擦弹清屏半径从50扩大到150(约 3 倍)。构建版本号同步更新至127。