Hello!
I want to use the scene editor for the game. Mobile devices. But whatever code I tried, it still sets the dimensions according to the ratio that is specified in the scene editor (base resolution)
There are black stripes on the device
#include "Menu.scene"
m_deviceW = GetMaxDeviceWidth()
m_deviceH = GetMaxDeviceHeight()
SetErrorMode(2)
// set window properties
SetWindowTitle( "Saw Master" )
SetWindowSize( m_deviceW, m_deviceH, 1 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetScreenResolution( m_deviceW, m_deviceH )
SetResolutionMode( 1 )
SetVirtualResolution( m_deviceW, m_deviceH ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 0, 0 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
//SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 )
Menu_setup()
do
Menu_sync()
Print( ScreenFPS() )
Print( m_deviceH )
Print( m_deviceW )
Sync()
loop