TheGameCreators / AGK-Studio

3 stars 1 forks source link

AppGameKit Studio HTML5 rendering bug V2021.02.09 not resized to full screen. #809

Open heliuse opened 3 years ago

heliuse commented 3 years ago

AppGameKit Studio HTML5 rendering bug V2021.02.09 not resized to full screen. Tested on: Brave, Firefox, Edge, Chrome AppGameKit Classic does not have this bug

bug1 bug

VirtualNomad19 commented 3 years ago

from over a year ago: https://github.com/TheGameCreators/AGK-Studio/issues/663

bluesentinelsec commented 2 years ago

Just adding that this is still a problem, as of AGK 2021.12.06.

I made a game with this problem here: https://bluesentinelsoftware.itch.io/math-meteor-defense

VirtualNomad19 commented 1 year ago

from discussion on AGK Discord (user Ranietz):

confirmed work-around = SetWindowSize(x, y, 1)

SetWindowSize(640,360,0)
SetVirtualResolution( 640, 360 ) 

For x = 30 to 360 Step 30
    ThisS = CreateObjectSphere(20,20,20)
    SetObjectPosition(ThisS, SIN(x)*100,0,COS(x)*100)
next x

SetCameraRotation( 1, 0.0, 0.0, 0.0 )
SetCameraPosition( 1, 0.0, 0.0, 0.0 )

GLOBAL FS = -1

Do
    If GetPointerPressed()
        FS = -FS
        If FS = 1 then SetWindowSize(640,360,1) Else SetWindowSize(640,360,0)
    EndIf
    RotateCameraLocalY(1, 1)
    Print("Click to Toggle FS")
    Sync()
loop