LittleJS Engine Settings
- Source:
Members
# (static) cameraPos :Vector2
Position of camera in world space
Type:
- Source:
# (static) cameraScale
Scale of camera in world space
- Source:
# (static) canvasFixedSize :Vector2
Fixed size of the canvas, if enabled cavnvas size never changes
Type:
- Source:
# (static) canvasMaxSize :Vector2
The max size of the canvas, centered if window is larger
Type:
- Source:
# (static) cavasPixelated
Disables anti aliasing for pixel art if true
- Default Value:
- 1
- Source:
# (static) fontDefault
Default font used for text rendering
- Default Value:
- arial
- Source:
# (static) gamepadDirectionEmulateStick
If true, the dpad input is also routed to the left analog stick (for better accessability)
- Default Value:
- 1
- Source:
# (static) gamepadsEnable
Should gamepads be allowed
- Default Value:
- 1
- Source:
# (static) glEnable
Enable webgl rendering, webgl can be disabled and removed from build (with some features disabled)
- Default Value:
- 1
- Source:
# (static) glOverlay
Fixes slow rendering in some browsers by not compositing the WebGL canvas
- Default Value:
- 1
- Source:
# (static) gravity
How much gravity to apply to objects along the Y axis, negative is down
- Source:
# (static) inputWASDEmulateDirection
If true the WASD keys are also routed to the direction keys (for better accessability)
- Default Value:
- 1
- Source:
# (static) medalDisplayHeight
Height of medal display
- Default Value:
- 80
- Source:
# (static) medalDisplayIconSize
Size of icon in medal display
- Default Value:
- 50
- Source:
# (static) medalDisplaySlideTime
How quickly to slide on/off medals in seconds
- Default Value:
- 0.5
- Source:
# (static) medalDisplayTime
How long to show medals for in seconds
- Default Value:
- 5
- Source:
# (static) medalDisplayWidth
Width of medal display
- Default Value:
- 640
- Source:
# (static) objectDefaultAngleDamping
How much to slow angular velocity each frame (0-1)
- Default Value:
- 0.99
- Source:
# (static) objectDefaultDamping
How much to slow velocity by each frame (0-1)
- Default Value:
- 0.99
- Source:
# (static) objectDefaultElasticity
How much to bounce when a collision occurs (0-1)
- Source:
# (static) objectDefaultFriction
How much to slow when touching (0-1)
- Default Value:
- 0.8
- Source:
# (static) objectDefaultMass
Default object mass for collison calcuations (how heavy objects are)
- Default Value:
- 1
- Source:
# (static) objectDefaultSize :Vector2
Default size of objects
Type:
- Source:
# (static) objectMaxSpeed
Clamp max speed to avoid fast objects missing collisions
- Default Value:
- 1
- Source:
# (static) soundDefaultRange
Default range where sound no longer plays
- Default Value:
- 30
- Source:
# (static) soundDefaultTaper
Default range percent to start tapering off sound (0-1)
- Default Value:
- 0.7
- Source:
# (static) soundEnable
All audio code can be disabled and removed from build
- Default Value:
- 1
- Source:
# (static) soundVolume
Volume scale to apply to all sound, music and speech
- Default Value:
- 0.5
- Source:
# (static) tileBleedShrinkFix
Prevent tile bleeding from neighbors in pixels
- Default Value:
- 0.3
- Source:
# (static) tileSizeDefault :Vector2
Default size of tiles in pixels
Type:
- Source:
# (static) touchGamepadAlpha
Transparency of touch gamepad overlay
- Default Value:
- 0.3
- Source:
# (static) touchGamepadEnable
True if touch gamepad should appear on mobile devices
- Supports left analog stick, 4 face buttons and start button (button 9)
- Must be set by end of gameInit to be activated
- Supports left analog stick, 4 face buttons and start button (button 9)
- Must be set by end of gameInit to be activated
- Source:
# (static) touchGamepadSize
Size of virutal gamepad for touch devices in pixels
- Default Value:
- 80
- Source:
# (static) vibrateEnable
Allow vibration hardware if it exists
- Default Value:
- 1
- Source: