Bevy ECS skill for 2D sprite animation. Keywords: Bevy, sprite, animation, AnimationPlayer, AnimationClip, 2D.
日本語の概要は準備中です。原文の説明を表示しています。
Expert blueprint for HTML5/web export on Compatibility (WebGL 2.0): JavaScriptBridge, localStorage wrapper, custom loading shells, COOP/COEP hosts, relative paths, beforeunload, visibility pause, and size optimization. WebGPU is out of scope. Keywords: web, HTML5, WebGL, Compatibility, JavaScriptBridge, localStorage, COOP, COEP, canvas, browser API.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
localStorage / IndexedDB via JavaScriptBridge).await / threaded workers where available.SharedArrayBuffer need cross-origin isolation.visibilitychange.SharedArrayBuffer (see exporting-for-web docs).index.html / PCK/WASM URLs must be relative so /game/ subpaths work.beforeunload — Wire web_navigation_guard.gd when unsaved progress exists.MANDATORY: For saves, load web_local_storage_wrapper.gd — do not paste
JavaScriptBridge.eval("localStorage.setItem...")string recipes.
Quota-safe localStorage via get_interface + JSON (no eval string interpolation).
Two-way JS↔GD with create_callback (keep callback refs alive).
Canvas resize to browser viewport.
Suppress context menu / spacebar scroll defaults.
Remote PCK/resource fetch patterns.
Async clipboard via Navigator API.
Pause engine/audio on tab hide.
beforeunload unsaved-progress guard.
window.open with noopener.
VRAM/draw stats to JS console.
scripts/create_callback bridge (keep refs alive).CAUTION: Never persist via
JavaScriptBridge.eval("localStorage.setItem('%s')" % data)— injection/escaping bugs. Use web_local_storage_wrapper.gd.
pwa_update_available → pwa_update() when pwa_needs_update().PWA lifecycle, JSON-RPC bridge, localStorage anti-patterns, size knobs — references/web-elite-patterns.md.
<!-- index.html custom loading — keep asset URLs relative -->
<div id="loading-screen">
<div class="progress-bar"><div id="progress" style="width: 0%"></div></div>
<p id="status-text">Loading...</p>
</div>
<script>
const engine = new Engine(CONFIG);
engine.startGame({
onProgress: function(current, total) {
const percent = Math.floor((current / total) * 100);
document.getElementById('progress').style.width = percent + '%';
document.getElementById('status-text').innerText = `Loading ${percent}%`;
}
}).then(() => {
document.getElementById('loading-screen').style.display = 'none';
});
</script>
if OS.has_feature("web"):
# Web-only: storage wrapper, visibility pause, navigation guard
pass
[rendering]
textures/vram_compression/import_s3tc_bptc=true
textures/vram_compression/import_etc2_astc=true
func _ready() -> void:
if OS.has_feature("web"):
JavaScriptBridge.pwa_update_available.connect(_on_pwa_update)
func _on_pwa_update() -> void:
if JavaScriptBridge.pwa_needs_update():
JavaScriptBridge.pwa_update()
Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing work to a peer domain — do not preload the whole lattice.
SharedArrayBuffer.eval, get_interface, and create_callback contracts for two-way GD↔JS bridges.Engine/startGame progress callbacks used by custom loading screens.user:///FileAccess persistence is unreliable in browser sandboxes versus localStorage/IndexedDB.visibilitychange and beforeunload guards.web), Compatibility renderer defaults, and display stretch settings every HTML5 export branch depends on.localStorage wrappers must not invent ad hoc.まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Bevy ECS skill for 2D sprite animation. Keywords: Bevy, sprite, animation, AnimationPlayer, AnimationClip, 2D.
日本語の概要は準備中です。原文の説明を表示しています。
Bevy ECS skill for 3D lights. Keywords: Bevy, lighting, directional, point, spot, bevy_light, PBR.
日本語の概要は準備中です。原文の説明を表示しています。
Bevy ECS skill for PBR materials. Keywords: Bevy, StandardMaterial, PBR, material, ExtendedMaterial.
日本語の概要は準備中です。原文の説明を表示しています。
Bevy ECS skill for 3D level assembly. Keywords: Bevy, level, scene, mesh, world, ECS.
日本語の概要は準備中です。原文の説明を表示しています。
Bevy ECS skill for abilities. Keywords: Bevy, ability, cooldown, ECS, gameplay.
日本語の概要は準備中です。原文の説明を表示しています。
Bevy ECS skill for moving a Bevy game from 2D to 3D. Keywords: Bevy, 2D, 3D, adapt, camera, sprite.
日本語の概要は準備中です。原文の説明を表示しています。