I will inspect the existing files in the project to understand the layout and dependencies.
I will read package.json to check existing dependencies and see what packages we need to install (such as icons or UI helpers).
I will install lucide-react so that we have icons for our generator controls, presets, weapon types, and code export tools.
I will update index.html with an appropriate title and styling metadata for our GameMaker Dimension Slash Shader & FX Generator.
I will read index.html to check its title tag and structure.
I will update index.html with our official title and meta tags.
I will read src/index.css to see the current styling setup.
I will update src/index.css to define our custom fonts (Orbitron, JetBrains Mono, Plus Jakarta Sans) and smooth UI styles.
I will create src/types/slash.ts to define all TypeScript interfaces for our Dimension Slash generator, including elemental types, weapon styles, screen slice/chromatic aberration parameters, ending shatter styles, and stage target modes.
I will create src/presets/slashPresets.ts with 6 detailed presets covering Classic Vergil Dark-Blue/Purple, Aqua Wave, Magma Blaze, Thunder Arc, Absolute Frost, and Clean Pure Cuts, as well as weapon variations.
I will create src/audio/SlashSoundEngine.ts using the Web Audio API to procedurally generate cinematic Judgment Cut sound effects (void suction charge, razor cuts, space distortion explosion, and shatter shards).
I will clean up the unused import in src/presets/slashPresets.ts.
I will create src/engine/DimensionSlashCanvas.ts containing our high-performance rendering engine that simulates cinematic Judgment Cut visuals: multi-layered HDR blade ribbons, chromatic aberration RGB split, screen space shear displacement, elemental particles (embers, bubbles, ice crystals, thunder arcs), and falling glass-like dimension shards.
I will fix the unused parameter warnings in src/engine/DimensionSlashCanvas.ts.
I will update DimensionSlashCanvas.ts to remove the unused assignments and add a screen slice shear & chromatic aberration post-processing effect during the explosion phase.
I will update the draw method signature in DimensionSlashCanvas.ts.
I will create src/generator/gmlGenerator.ts to convert any custom configuration into production-ready GameMaker Studio 2 Language (GML) code and GLSL ES Shader code (.fsh / .vsh), complete with comments, step events, screen slicing, chromatic aberration, and shard drop physics.
I will create src/engine/StageEnvironment.ts to draw high-fidelity stage backgrounds (Cyber Dojo, Vergil Abyss, Grid Calibration, Void Space) and interactive target dummies.
I will create src/components/Header.tsx for the navigation bar, featuring sound toggle, stage scene selector, and the GameMaker code export trigger button.
I will create src/components/PresetBar.tsx to let users quickly switch between the 6 elemental variations and 4 weapon trajectory types.
I will clean up the unused import in src/components/PresetBar.tsx.
I will create src/components/PreviewStage.tsx for the canvas preview stage, allowing users to click anywhere on screen to execute Judgment Cuts, trigger multi-cut combos, and view the training dummy.
I will create src/components/ControlsPanel.tsx with five categorized tabs (Core & Color, Spatial Slicing & Chromatic, Ending Phase & Shatter Shards, Elemental & Weapon, and Timing & Dynamics) allowing full customization of every shader and visual property.
I will clean up the unused imports in src/components/ControlsPanel.tsx.
I will create src/components/CodeExportModal.tsx for viewing, copying, and downloading the generated GameMaker Studio 2 GLSL ES shaders and GML scripts.
I will now update src/App.tsx to tie together our Header, PresetBar, PreviewStage, ControlsPanel, and CodeExportModal into a cohesive application.
I will update src/App.tsx to clean up unused imports and add keyboard shortcut support ([Space] for single cut, [E] for combo chain, [R] for Judgment Cut End).
I will use edit_file to remove the unused React import from src/App.tsx and add keyboard shortcut listeners for combo attacks and Judgment Cut End.
I will now test building the project with build_project to ensure all TypeScript types, GML generators, canvas effects, and Tailwind classes build without errors.
我为你制作了**《鬼泣5》维吉尔风格 —— 次元斩特效生成器 & GameMaker Studio 2 GLSL ES / GML 导出工具 (Dimension Slash FX Studio)**!
✨ 核心亮点与实现细节
-
顶级电影/3A游戏CG级 2D 特效渲染引擎
- 引力坍缩前摇(Vacuum Suction Core):出刀前瞬间产生空间坍缩内核与高对比能量圈,伴随着 Web Audio API 动态合成的低频次声波引力吸入音效。
- 极致高速连击刀光(Hyper Judgment Slashes):采用
lighter 叠加自发光模式、弧度参数与光路厚度混合渲染,极速重叠处产生 HDR 高亮溢色。
- 画面断裂与滑动错位(Screen Space Slice Shear Shift):可以开启/配置把整个背景与被斩物体沿横向切分为多道断层,向左右强力滑动错动!
- 空间色差/色散(RGB Chromatic Aberration):在每一道刀光锋缘模拟 RGB 色道物理分离,产生极具张力的色斑断口。
- 玻璃样空间破损碎落(Shattered Dimension Shards Falling):最酷炫的鬼泣5终结特效——当次元斩割裂完毕,斩切区域的空间随刀痕裂开为数颗多边形水晶碎片,受重力在空中旋转、碎响下坠并随时间消散。
-
6 大经典与自然差分 & 4 大武器形态体系
- 普通类(Vergil's Judgment Cut Classic):经典的暗紫蓝虚空内核 + 纯亮白银弧光快切 + 银白散乱星点。
- 水波类(Deep Sea Hydro Tide):深海碧蓝水纹折射 + 水沫气泡飞射与浮升。
- 火焰类(Crimson Hellfire Blaze):炙热橘赤红莲烈焰 + 高温上浮黑烬与星火。
- 闪电类(Voltage Storm Thunder):多路高压静电折线分支雷击 + 爆鸣白蓝跳火。
- 冻结类(Absolute Zero Glacial):蓝白急冻冷气晶霜 + 六角冰裂残痕。
- 纯剑痕(Pure Steel Physical Cut):极简锐利纯物理高速钢闪快刃,没有任何魔幻残留,凸显纯粹剑道斩击。
- 武器轨迹差分(Katana 太刀 / Claws 狂暴利爪 / Spear 笔直枪尖 / Greatsword 宽重刃):自由一键切换武器刀轨风格。
-
极其丰富的自由控制面板(5 大页签全部深度参数化)
- 【基础与调色】:连斩刀数 (3-30 刀)、攻击半径 (px)、线宽、曲率、主亮光/泛光/重点色调色盘、HDR Bloom 强度。
- 【空间切断】:画面错动开关、切片带数、最大像素错动偏移量、RGB Chromatic Aberration 强度。
- 【结尾与碎裂】:“空间碎开飞散并落下” / “空间逐渐平滑复原” / “永久保留剑痕”;碎块总数、重力落速度、停留时长。
- 【元素与粒子】:各种属性微粒浓度与尺寸。
- 【演出与时间】:前摇秒数、极速切削总时长、画面物理摇晃震荡幅度。
-
真正的 GameMaker Studio 2 代码导出与一键使用 (obj_dimension_slash.gml & shd_dimension_slash.fsh/vsh)
- 点击右上方 “GML & SHADER” 按钮,立即查看并获取一整套经过语法格式化的 GML 与 GLSL ES 2.0 源码。
- 支持将特效放置于任何位置:可以通过脚本中自动创建的
scr_spawn_dimension_slash(_x, _y) 将次元斩放置于鼠标指针、当前主角坐标、或在屏幕任何时刻展现或消失!
- 支持一键复制代码到剪贴板或下载打包好的
.gml.txt 完整源码包。
-
网页互动交互技巧
- 屏幕随点即斩:点击视口舞台任何位置即可立刻发动当前的次元斩!
- 背景测试场景切换:可以在 赛博武馆 (Cyber Dojo)、鬼泣暗渊 (Crimson Abyss)、 之间快速切换。
Files built: index.html, src/index.css, src/types/slash.ts, src/presets/slashPresets.ts, src/audio/SlashSoundEngine.ts, src/engine/DimensionSlashCanvas.ts, src/generator/gmlGenerator.ts, src/engine/StageEnvironment.ts, src/components/Header.tsx, src/components/PresetBar.tsx, src/components/PreviewStage.tsx, src/components/ControlsPanel.tsx, src/components/CodeExportModal.tsx, src/App.tsx