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).
Envolvimento ao longo do tempo
GS - Trails é um recurso de Godot. Tem 0 transferência, 21 visualizações e 0 favorito. Este item pertence a 4 etiquetas.
Avaliações
Inicie sessão para deixar uma avaliação.
Comentários (0)
Inicie sessão para comentar.
