You are welcome and thank you. Same demo without Matrix1Utils.
#constant KERNEL32 1
#constant ERROR_ACCESS_DENIED 5
#constant ERROR_ALREADY_EXISTS 183
hMutex as integer
Error as dword
hide window
load dll "kernel32.dll", KERNEL32
hMutex = call dll(KERNEL32, "CreateMutexA", 0, 1, "SpinCube")
Error = call dll(KERNEL32, "GetLastError")
delete dll KERNEL32
if (hMutex=0 or Error=ERROR_ALREADY_EXISTS or Error=ERROR_ACCESS_DENIED)
end
endif
show window
disable escapekey
autocam off
make object cube 1, 20.0
sync on
sync rate 60
backdrop on
color backdrop 0
move camera -50.0
do
sync
yrotate object 1, wrapvalue(object angle y(1)+1.0)
if (escapekey())
exit
endif
loop