Noah Petherbridge
8965a7d86a
Add new doodads: * Start Flag: place this in a level to set the spawn point of the player character. If no flag is found, the player spawns at 0,0 in the top corner of the map. Only use one Start Flag per level, otherwise the player will randomly spawn at one of them. * Crumbly Floor: a solid floor that begins to shake and then fall apart after a moment when a mobile character steps on it. The floor respawns after 5 seconds. * State Blocks: blue and orange blocks that toggle between solid and pass-thru whenever a State Button is activated. * State Button: a solid "ON/OFF" block that toggles State Blocks back and forth when touched. Only activates if touched on the side or bottom; acts as a solid floor when walked on from the top. New features for doodad scripts: * Actor scripts: call SetMobile(true) to mark an actor as a mobile mob (i.e. player character or enemy). Other doodads can check if the actor colliding with them IsMobile so they don't activate if placed too close to other (non-mobile) doodads in a level. The Blue and Red Azulians are the only mobile characters so far. * Message.Broadcast allows sending a pub/sub message out to ALL doodads in the level, instead of only to linked doodads as Message.Publish does. This is used for the State Blocks to globally communicate on/off status without needing to link them all together manually.
48 lines
1.8 KiB
Markdown
48 lines
1.8 KiB
Markdown
# Developer Console
|
|
|
|
## Cheats
|
|
|
|
* `unleash the beast` - disable frame rate throttling.
|
|
* `don't edit and drive` - enable editing while playing a level.
|
|
* `scroll scroll scroll your boat` - enable scrolling the level with arrow keys
|
|
while playing a level.
|
|
* `import antigravity` - during Play Mode, disables gravity for the player
|
|
character and allows free movement in all directions with the arrow keys.
|
|
Enter the cheat again to restore gravity to normal.
|
|
|
|
## Bool Props
|
|
|
|
Some boolean switches can be toggled in the command shell.
|
|
|
|
Usage: `boolProp <name> <value>`
|
|
|
|
The value is truthy if its first character is the letter T or the number 1.
|
|
All other values are false. Examples: True, true, T, t, 1.
|
|
|
|
* `Debug` or `D`: toggle debug mode within the app.
|
|
* `DebugOverlay` or `DO`: toggle the debug text overlay.
|
|
* `DebugCollision` or `DC`: toggle collision hitbox lines.
|
|
|
|
## Interesting Tricks
|
|
|
|
### Editable Map While Playing
|
|
|
|
In Play Mode run the command:
|
|
|
|
| Command | Effect |
|
|
|--------------------------------------------|----------------------------------------------------------------|
|
|
| `$ d.Scene.Drawing().Editable = true` | Can click and drag new pixels onto the level while playing it. |
|
|
| `$ d.Scene.Drawing().Scrollable = true` | Arrow keys scroll the map, like in editor mode. |
|
|
| `$ d.Scene.Drawing().NoLimitScroll = true` | Allow map to scroll beyond bounded limits. |
|
|
|
|
The equivalent Canvas in the Edit Mode is at `d.Scene.UI.Canvas`
|
|
|
|
### Edit Out-of-Bounds in Editor Mode
|
|
|
|
In Edit Mode run the command:
|
|
|
|
`$ d.Scene.UI.Canvas.NoLimitScroll = true`
|
|
|
|
and you can scroll the map freely outside of the normal scroll boundaries. For
|
|
example, to see/edit pixels outside the top-left edges of bounded levels.
|