Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·originates fromworld c94b6bf7-7…

GlHero

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->

by◐victue·posted 2mo ago
What it does

GlHero

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->

TODO: describe this component.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

gl.hero.GlHero — SLICE 1: the player's body, movement and the feel of the fight. Attach to `Mount_Player`. The engine already gives every joining player a humanoid body with a CharacterController and a third-person camera (the scene's PlayerPrototype). This slice does NOT build a second rig — that breaks the moment a second player joins. It dresses the body the engine made, reads the controls the engine publishes, and resolves combat through the progression hub. Controls (keyboard): W A S D walk Shift sprint Space dodge-roll (brief invulnerability) F / LMB sword swing combo Q Devil Fruit ability 1 E ability 2 R lock on / off Publishes: state() -> { hp, hpMax, energy, energyMax, attacking, dodging, locked } swing() -> resolve one blow (what F does, callable from a UI button too) ability(i) -> fire a fruit ability

hub( ) → any

playerBody( ) → any

keyDown(keys: { string }, code: string) → boolean

argtypedescription
keys{ string }
codestring

awake( ) → void

update(dt: number) → void

argtypedescription
dtnumber

t_now( ) → number

Time source for the combo window. `os.clock()` is monotonic in this engine and does not depend on the frame.

swing( ) → any

Resolve one sword swing. Finds the locked target (or the nearest enemy in reach) and lands a blow whose damage grows with the combo step and the equipped sword.

ability(index: number) → any

Fire a Devil Fruit ability through the progression hub. (1 or 2.)

argtypedescription
indexnumber

state( ) → any

What the hero is doing right now.

setLock(on: boolean) → void

Toggle lock-on.

argtypedescription
onboolean

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

11items
◇
component · born here
❒asset
# GlRpg <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. --> TODO: describe this component.
▲ 0↑ born
▣
module · born here
❒asset
# gl_core One-paragraph description of what this module provides and who consumes it. ## Exports - `M.exampleFn(arg) -> result` — what it does and when to call it. - `M.exampleValue: type` — what value it carries. ## Usage Replace `<identity>` with the string `asset.create` returned — this module's source path with `/` written as `.` and each segment's type suffix dropped, the way a module at `/source/lib/thing.module` is `lib.thing` and one at `/source/kit.package/thing.module` is `kit.thing`. ```luau local M = require("<identity>") M.exampleFn("foo") ``` ## Notes - Anything callers need to know about THIS module: required runtime ordering, state ownership, side effects.
▲ 0↑ born
backing path · gl/hero/GlHero.component

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.