GS - Trails

Nutzt KI
MIT

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/trails for players, /api/integration/v1/trails for the game server).

Engagement im Zeitverlauf

Wird geladen…
Intervall

GS - Trails ist ein Asset für Godot. Es hat 0 Downloads, 21 Aufrufe und 0 Favoriten. Dieser Eintrag gehört zu 4 Tags.

Rezensionen

Melden Sie sich an, um eine Rezension zu schreiben.

Wird geladen…

Kommentare (0)

Melden Sie sich an, um zu kommentieren.

Wird geladen…

Mehr entdecken

Sieh dir an, was in der Community los ist