Window size problem

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
sznexus
Prole
Posts: 2
Joined: Sun Sep 15, 2013 12:29 pm

Window size problem

Post 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.
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: Window size problem

Post 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
Shallow indentations.
sznexus
Prole
Posts: 2
Joined: Sun Sep 15, 2013 12:29 pm

Re: Window size problem

Post by sznexus »

It works!

Thanks for your quick help!
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 4 guests