Search found 4 matches

by drfractal
Sun Jan 26, 2020 5:33 pm
Forum: Support and Development
Topic: event.quit() [solved]
Replies: 5
Views: 3406

Re: event.quit()

well quit() is only in those two places in the entire project... I have to look for something else.
by drfractal
Sun Jan 26, 2020 5:01 pm
Forum: Support and Development
Topic: event.quit() [solved]
Replies: 5
Views: 3406

Re: event.quit()

i only use that quit in a menu button that i copied from someone else tutorial (in this case it works):

Code: Select all

  table.insert( buttons, newButton(
    "close game",
    function()
      love.event.quit(0)
    end  ))
is it that the overwrite you are talking about?
by drfractal
Sun Jan 26, 2020 4:27 pm
Forum: Support and Development
Topic: event.quit() [solved]
Replies: 5
Views: 3406

event.quit() [solved]

OK I am maybe dumb but in my code: love.update() stage.update() .... ...... function stage.update() if love.keyboard.isDown("z") print("goodbye") love.event.quit() end ... why if i click z key I get the message "goodbye" BUT love not exit the game? Is something about th...
by drfractal
Sat Jan 18, 2020 4:08 pm
Forum: Support and Development
Topic: beginner OOP problem with rxi classic
Replies: 1
Views: 2002

beginner OOP problem with rxi classic

I am studing an OOP approach to develop my löve game so I included this library in my code: https://github.com/rxi/classic/blob/master/classic.lua my basic code is like this: Object = require 'libraries/classic-master/classic' function love.load() Stage = Object:extend() function Stage:new(name) sel...