I found this issue talking about it, which seems to be fixed, but... how do I do it exactly?
-
How to change screen resolution / window size?
@robert Hmm, strange that there seems to be no Window available to me. Kode doesn't autocomplete when I type "import kha.Window;" (it only shows me kha.WindowMode and kha.WindowOptions) and I get a "type not found kha.Window" error.
| last edited by Skaruts Reputation: 1 | Posts: 20 -
How to change screen resolution / window size?
@robert Well I installed a new version of Kode yesterday. Is kha itself a separate installation? It's been a little while so I'm probably missing something...
EDIT: yea, I just noticed it in the Haxe Dependencies. It even says where I installed it. Will update it. Thanks.
| last edited by Skaruts Reputation: 1 | Posts: 20 -
How to change screen resolution / window size?
@robert Seems like I have everything up to date (followed the intructions from Lewis Lepton's recent video), but it seems like it's not implemented for HTML5 or flash yet, though.
The definition of Window.resize() is empty, and changing the width and height directly seems to not do anything either...
-
How to change screen resolution / window size?
No, it isn't and it's not planned. Canvas element resizing depends too much on how it is embedded in a website to put that functionality in Kha directly. Add a bit of JavaScript if you need it. Also the flash backend is purely in maintenance mode - I fix it when it breaks but I don't add new functionality.
-
How to change screen resolution / window size?
@Robert Yea, but isn't HTML5 what we all use for quick testing?
It's only useful for testing if we can implement things in it... My targets are desktop, but it's cumbersome to test for those by compiling everything, obviously.(I'm not worried about the flash backend, tbh. I just mentioned because I also peeked into its code. No big deal there, I think.)
I don't know any javascript though... Or how to mix it in.
| last edited by Skaruts Reputation: 1 | Posts: 20