Sts Video Core 预览图

杀戮尖塔 (Slay the Spire)

Sts Video Core

模组简介

Video playback library for Slay the Spire mods. Scenes: dungeon, character select screen. ## Video Format Only `.webm` is supported. Video: VP8, audio: Vorbis ## Basic Playback ```java import sts.video.api.VideoApi; VideoApi.path("examplemod/videos/intro.webm") .fullscreen() .play(); ``` Fullscreen playback blocks input in dungeon scenes by default. It does not block input on the character select screen by default. ## Common Options ```java VideoPlayback playback = VideoApi.path("examplemod/videos/intro.webm") .fullscreen() .background(Color.BLACK) .allowEscToStop() .loop(6.0f) .play(); playback.stop(); ``` ```java VideoApi.path("examplemod/videos/intro.webm") .region(x, y, width, height) .blockInput() .play(); ``` `region` uses game coordinates. `x/y` are the lower-left corner. ## Prewarm ```java VideoApi.prewarm("examplemod/videos/intro.webm"); ``` Use this to reduce first-play delay. Do not call it every frame. ## API Quick Reference | API | Description | | --- | --- | | `VideoApi.path(path).fullscreen().play()` | Fullscreen playback | | `VideoApi.path(path).region(x, y, w, h).play()` | Region playback | | `.background(color)` | Draw background color | | `.allowEscToStop()` | Allow ESC stop | | `.blockInput()` | Block original game input | | `.loop(duration)` | Loop for seconds | | `VideoApi.prewarm(path)` | Prewarm video | | `VideoApi.isPlaying()` | Check active playback |

条目信息

所属游戏
杀戮尖塔 (Slay the Spire)
创意工坊 ID
3769585454
文件名
3769585454.bin
文件大小
14.3 MB
最后更新
2026/07/25
内容版本
v1784995106-98080585ce0d271b
作者与来源
由原作者发布于 Steam 创意工坊。本站不改变署名,作者信息与原始内容请以 Steam 原始页面 为准。

版权与举报

本条目的著作权归其原作者所有。尖塔补给站仅提供索引与下载中转,不存储、不修改、不二次分发其著作权内容, 也不对其内容作任何担保。详见 版权声明免责声明

若你是该内容的权利人并希望下架此条目,或发现该条目含有违法违规内容,请通过 侵权删除申请 提交材料,我们会在核实后处理并在本页标注状态。

Steam 社区评论

以下评论来自 Steam 创意工坊原始页面,由 Steam 用户发表,不代表本站立场。