Can I make code for PC and HTML5 in one script? (html5.set_interaction_listener)

You can use sys.get_sys_info() to find out if the program is running as HTML5 or not. It returns a table, you’re looking for the value of key “system_name” to find out what kind of device is running the game.

2 Likes