Solarus-Games English Forum

Solarus => Development => Topic started by: xglichtrapx on May 11, 2023, 07:09:33 PM

Title: Removing the select player screen
Post by: xglichtrapx on May 11, 2023, 07:09:33 PM
Hi all is there a way to remove the select player screen? For instance in the sample quest it goes straight from the title screen and directly to the start of the game.
Title: Re: Removing the select player screen
Post by: PhoenixII54 on May 19, 2023, 06:40:47 PM
Yes. In fact, the bare minimum required to start a game is : open main.lua, and in the solarus starting function, create a game object, setup starting point/HP/whatever you need at game start, and start the game. hints : sol.game.load; game:start() --> More info in the documentation page here (https://doxygen.solarus-games.org/latest/lua_api_game.html). That's what file selection menus do, but in a more visual -and enhanced- way.