Function setBackground

 setBackground(idx)

Sets the current background

This function changes the background of the game mode to the specified index. If the index is out of bounds, an error message is printed.

Parameters

- idx The index of the background to set

Returns

nothing