new Menu(p_init, p_controller)
Parameters:
| Name | Type | Description |
|---|---|---|
p_init |
Object | Should contain the attributes
buttonStartID (the id of the start button element),
buttonPauseID (the id of the pause button element), and
buttonStopID (the id of the stop button element). |
p_controller |
$app$.game.snake.Controller | The controller of the app. |