@emile/engine / rendering/sprite-creators/cursorSpriteCreator / CursorSpriteCreatorOptions
Interface: CursorSpriteCreatorOptions
Defined in: src/rendering/sprite-creators/cursorSpriteCreator.ts:10
The options for the cursor sprite creator.
Properties
height?
optionalheight:number
Defined in: src/rendering/sprite-creators/cursorSpriteCreator.ts:46
The height of the rendered cursor.
In world units.
Default
0.5offset?
optionaloffset:Vec2
Defined in: src/rendering/sprite-creators/cursorSpriteCreator.ts:55
The offset of the cursor sprite from the mouse position.
In world units.
Default
new Vec2(0, 0)pixelated?
optionalpixelated:boolean
Defined in: src/rendering/sprite-creators/cursorSpriteCreator.ts:28
Whether to use pixelated rendering for the cursor.
Default
falsesmoothing?
optionalsmoothing:number
Defined in: src/rendering/sprite-creators/cursorSpriteCreator.ts:65
The smoothing (1 - lerp rate) of the cursor's position to the mouse position.
0 = no smoothing 1 = full smoothing
Default
0src
src:
string
Defined in: src/rendering/sprite-creators/cursorSpriteCreator.ts:14
The path to the cursor image.
width?
optionalwidth:number
Defined in: src/rendering/sprite-creators/cursorSpriteCreator.ts:37
The width of the rendered cursor.
In world units.
Default
0.5zIndex?
optionalzIndex:number
Defined in: src/rendering/sprite-creators/cursorSpriteCreator.ts:21
The z-index of the cursor sprite.
Default
9999