Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Dec 8, 2023
1 parent ccc729b commit 2c842c4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/game_data/spel2.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions docs/src/includes/_globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -1708,6 +1708,24 @@ Reverse of some random hash function

Access the [PauseAPI](#PauseAPI), or directly call `pause(true)` to enable current `pause.pause_type`

### play_adventure


> Search script examples for [play_adventure](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=play_adventure)
#### nil play_adventure()

Initializes some adventure run related values and loads the character select screen, as if starting a new adventure run from the Play menu. Character select can be skipped by changing `state.screen_next` right after calling this function, maybe with `warp()`. If player isn't already selected, make sure to set `state.items.player_select` and `state.items.player_count` appropriately too.

### play_seeded


> Search script examples for [play_seeded](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=play_seeded)
#### nil play_seeded(optional<int> seed)

Initializes some seedeed run related values and loads the character select screen, as if starting a new seeded run after entering the seed.

### register_console_command


Expand Down
3 changes: 3 additions & 0 deletions docs/src/includes/_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Used in [ArenaState](#ArenaState)

Type | Name | Description
---- | ---- | -----------
array&lt;bool, 40&gt; | [list](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=list) |
bool | [dwelling_1](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=dwelling_1) |
bool | [dwelling_2](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=dwelling_2) |
bool | [dwelling_3](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=dwelling_3) |
Expand Down Expand Up @@ -809,6 +810,8 @@ vector&lt;int&gt; | [selected_uids](https://github.com/spelunky-fyi/overlunky/se
int | [hovered_uid](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=hovered_uid) | Currently hovered entity uid or -1 if nothing is hovered.
optional&lt;int&gt; | [set_selected_uid](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=set_selected_uid) | Set currently selected uid in the entity picker or -1 to clear selection.
optional&lt;vector&lt;int&gt;&gt; | [set_selected_uids](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=set_selected_uids) | Set currently selected uids in the entity finder.
int | [held_modifiers](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=held_modifiers) | Bitmask of modifier KEYs that are currently held
int | [block_modifiers](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=block_modifiers) | Bitmask of modifier KEYs that will block all game input

### PRNG

Expand Down

0 comments on commit 2c842c4

Please sign in to comment.