"rlDemos.js" (rlBoot.bootRefugeeLib does not load this script by default)
Methods
-
(static) insertHelloWorldDemo(containerId, engineName, engineWidth, engineHeight, helloText, paletteName, speedx, speedy, fgCycle, bgCycle, charJitter, activationDelay) → {rlEngine}
-
Instantiates and starts a simple Hello World
rlEnginewith moving, colorcycleing letters and an also colorcycleing background using the given palette and with the debug overlay turned off.Parameters:
Name Type Description containerIdstring as described in rlEngine constructor
engineNamestring as described in rlEngine constructor
engineWidthnumber as described in rlEngine constructor
engineHeightnumber as described in rlEngine constructor
helloTextstring the text to use for the moving letters
paletteNamestring the name of the well-known palette to use (
rlColors)speedxnumber the initial horizontal speed for the moving letters
speedynumber the initial vertical speed for the moving letters
fgCyclenumber the logic updates delay between cycleing colors for the letters
bgCyclenumber the logic updates delay between cycleing colors for the background
charJitternumber the maximum in pixels for a random letter displacement from its current position on each view update
activationDelaynumber the delay in logic updates before the next letter starts moving (they all start at the center of the view)
Returns:
- Type
- rlEngine