28 lines
697 B
Markdown
28 lines
697 B
Markdown
# Tutorial: {{id}} step by step
|
|
|
|
Write here, in order, how a game author uses this extension from nothing to a working result. One `## Step` per action, short
|
|
text, the code to type, and what they should see. This file is the Tutorial button of the extension's page on jumphp.net
|
|
(without it, the page builds a tutorial from the samples).
|
|
|
|
## Step 1 - Add the extension
|
|
|
|
```bash
|
|
bin/jumphp extension:add <game> <vendor>/{{id}}
|
|
```
|
|
|
|
## Step 2 - Ask for the service in a scene
|
|
|
|
```php
|
|
public function __construct(private Flash $flash) {}
|
|
```
|
|
|
|
## Step 3 - Use it
|
|
|
|
Explain the call, then say what appears on the screen.
|
|
|
|
## Step 4 - Check it
|
|
|
|
```bash
|
|
bin/jumphp test <game>
|
|
bin/jumphp shot <game>
|
|
```
|