GS - Trails
A Godot asset that allows players to equip a trail which is an image that follows a player. May be integrated with in-game store as well!
dot-trail
Players equip a trail, an image ribbon that follows them as they move. Operators upload trails and choose who may wear them: everyone, or only some groups (donators, say). The server decides what a player may wear; clients download every trail as one pack before joining. See docs/design.md.
Licensing: this addon provides upload and display only. It ships no art; whoever uploads an image is responsible for having the right to distribute it.
var trails := DotTrailRegistry.new()
trails.install() # DotRegistry, no autoload
trails.load_index(index_json, files) # the downloaded pack
var equip := DotTrailEquip.new(trails)
var res := equip.equip(peer_id, "spark", groups, entitlements) # DotResult; server only
var emitter := DotTrailEmitter.new() # child of the player, or set `target`
emitter.registry = trails
player.add_child(emitter)
emitter.set_trail(trails.get_def(equip.worn(peer_id)))
Settings are DotTrailConfig (DOT_TRAIL_* environment, --trail-* command line): enabled, min_step, max_points, equip_cooldown, max_upload_bytes, max_dimension, max_trails, cull_distance.
The self-tests are examples/trail_selftest.tscn, ui_selftest.tscn and http_selftest.tscn (the site routes against a mocked HTTP layer), run headless.
Credits
- The addon ships no art. Every trail carries
credit(author, licence and source URL, required by the upload form and shown in the store), so the artist is named wherever the trail is. - The store page, ribbon previews and the screenshots in
docs/are drawn by the addon's own code from generated noise and flat colours; no third-party image is bundled. - Built on Godot Engine (MIT) and the dot-core, dot-game, dot-net, dot-menu, dot-ui and dot-cloud addons of this family.
- The store talks to the TMC site's trail routes (
/api/app/v1/trailsfor players,/api/integration/v1/trailsfor the game server).
互动趋势
GS - Trails 是一个 Godot 资源。它拥有 0 次下载、21 次浏览和 0 次收藏。 此条目属于 4 个标签。
评价
登录后即可发表评价。
评论 (0)
登录后即可评论。
