Search found 3 matches

by entua
Tue Feb 01, 2022 11:10 pm
Forum: General
Topic: A simple number incrementation logic isn't working.
Replies: 8
Views: 4050

Re: A simple number incrementation logic isn't working.

I'd still advice to use ">=" in place of "==" when dealing with these sorts of situations. Yep, that's what I usually do. However, I noticed that the game behaviour doesn't add up and decided to investigate. That's when I noticed that "if d >= 2" reverses incrementatio...
by entua
Tue Feb 01, 2022 9:43 pm
Forum: General
Topic: A simple number incrementation logic isn't working.
Replies: 8
Views: 4050

A simple number incrementation logic isn't working.

Here's the piece of code: local d = 0 local z = 0.2 function love.load() return nil end function love.update() d = d + z if d == 2 then z = -0.2 end print(d) end function love.draw() return nil end The program is supposed to increase the variable d by 0.2 every frame, and as soon as it reaches 2, it...
by entua
Sun Oct 17, 2021 6:37 pm
Forum: Support and Development
Topic: Running Love2D debugging consile inside VScode
Replies: 1
Views: 5182

Running Love2D debugging consile inside VScode

Hey, I've installed Visual Studio Code and the Love2D support plugin. In the plugin settings, it's possible to enable a debugging console to open in a separate window every time the game is run from VScode. However, I was wondering: is it possible to run Love2D debugging console inside VScode, in th...