Page 1 of 1

Window size problem

Posted: Sun Sep 15, 2013 12:38 pm
by sznexus
I want to set a custom windowsize for my game, but when I call love.window.setMode(...) in love.load() I get the following error:

main:lua:5: attempt to index field 'window' a nil value

Do I have to initialize window first somewhere?

Thanks in advance.

Re: Window size problem

Posted: Sun Sep 15, 2013 12:51 pm
by Boolsheet
love.window.setMode will be the function used in LÖVE 0.9.0 to set the window properties. In LÖVE 0.8.0 use love.graphics.setMode

Re: Window size problem

Posted: Mon Sep 16, 2013 2:57 pm
by sznexus
It works!

Thanks for your quick help!