It's been a while since I've encountered such an exciting game engine 🌟
Could you please add an option that when in full screen mode, the screen ratio does not change, for example by putting a black strip in the margins?
Retro game development tool · By
Glad to see someone is looking at it :-)
Fullscreen mode in SDL2 does seem a bit flaky - window borders change or disappear when switching back for example. And the documentation isn't very clear on how it selects the screen resolution. In my case it preserves the aspect ratio (I get black bars on the left/right), but that could just be on my monitor size/resolution.
SDL2 does have a "fake" fullscreen mode where it leaves the desktop resolution as is, and expands the window to cover the screen. From some basic experimentation this seems to work quite well. It fixes the window border issues and should leave the aspect ratio unchanged, as it doesn't actually change the screen resolution.
So I'll probably put out a patch to use this mode instead soon.
Yes❣️ It worked perfectly. This is exactly what I wanted. Thank you very much❣️ I would like to release games using this engine. I will enjoy it very much.🙂
By the way, I got an error when I run the export from the VSCodium, but I can successfully export exe by running the motc command directly from the DOS prompt🌟
💠 VSCodium
PS D:\myprog\motctest> cd "d:\myprog\motctest"
PS D:\myprog\motctest> "c:\Users\USERNAME\.vscode-oss\extensions\tommulgrew.motc-1.0.1\bin\motc.exe" -export win "myprogram.mot"
発生場所 行:1 文字:76 (Occurrence Location Line:1 Character:76)
+ ... de-oss\extensions\tommulgrew.motc-1.0.1\bin\motc.exe" -export win "my ...
+ ~~~~~~~
式またはステートメントのトークン '-export' を使用できません。 (Cannot use the token '-export' for expressions or statements.)
発生場所 行:1 文字:84 (Occurrence Location Line:1 Character:84)
+ ... ss\extensions\tommulgrew.motc-1.0.1\bin\motc.exe" -export win "myprog ...
+ ~~~
式またはステートメントのトークン 'win' を使用できません。 (Cannot use the token 'win' in an expression or statement.)
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx
ception
+ FullyQualifiedErrorId : UnexpectedToken
💠 DOSprompt (w/Path to motc added.)
D:\myprog\motctest>motc -export win myprogram.mot
Compiling myprogram.mot...
Creating export folder: D:\myprog\motctest\myprogram_export\windows
Exporting program to: D:\myprog\motctest\myprogram_export\windows\data.motc.bin
Copying runtime files...
Exported to: D:\myprog\motctest\myprogram_export\windows