320 res coords have nothing to do with screen edges.
If you want to make sure the "tooltip" is always on screen, you have to get it to swap sides when it gets close to an edge that would make it go off-screen.
The sides are given by game.viewport_height and game.viewport_width, which is resolution-independent
If you want to make sure the "tooltip" is always on screen, you have to get it to swap sides when it gets close to an edge that would make it go off-screen.
The sides are given by game.viewport_height and game.viewport_width, which is resolution-independent