30 lines
1.4 KiB
Markdown
30 lines
1.4 KiB
Markdown
# Games
|
|
|
|
JumPHP games and apps get their own tools.
|
|
|
|
## Play
|
|
|
|
- **Play the Game** (the game button of the tool bar, `Shift+F10` on a game configuration): on the desktop the game opens in its
|
|
window; on the web it plays in the **Game** window (`Alt+5`, right or bottom).
|
|
- The green ▶ of a `src/Scene/*.php` starts the game in that scene; of a test file runs its tests.
|
|
- **⚡ Live** (web): each file saved goes into the running game without reloading (pictures and sounds in place, code by restarting PHP
|
|
in the scene that was playing). **Restart**. The game's PHP output in its console.
|
|
|
|
## Run configurations
|
|
|
|
`run`, `test`, `shot` (a screenshot, opened in a tab), `build` (browser), `webshot`, `serve`, `export` (executables), `lint`
|
|
([Run](run.md)). **Run > Create an Installer…**: installers for Windows, Linux and macOS ([Publishing](publish.md)).
|
|
|
|
## Assets
|
|
|
|
Sprites, sound effects, tunes, tilesets and levels open in the [resource editors](resource-editors.md); forms of graphic apps in the
|
|
[form designer](form-designer.md). Configuration files are completed ([PHP](php.md), [YAML](yaml.md)).
|
|
|
|
## Engine extensions
|
|
|
|
**Tools > Extensions**: the extensions of the marketplace, added to a game (`bin/jumphp extension:add`), their documentation and
|
|
samples (▶ Play a sample).
|
|
|
|
## Memory and speed
|
|
|
|
[Profiler](profiler.md), [Cryo](cryo.md) (save points, hot patches), [Debugger](debugger.md).
|