Search found 3 matches

by WhoppaGamer
Sat Apr 01, 2023 8:11 pm
Forum: Support and Development
Topic: Bug found with math.rad
Replies: 3
Views: 735

Re: Bug found with math.rad

thanks for your answer, I discovered that I wanted to rotate by 270 instead of 180, seems my math knowledge is optimizable.
by WhoppaGamer
Fri Mar 31, 2023 1:42 pm
Forum: Support and Development
Topic: Bug found with math.rad
Replies: 3
Views: 735

Re: Bug found with math.rad

Got it working perfectly with the following code, but there seems to be a problem with 180 degree rotation local wall_width = wall:getWidth() local wall_height = wall:getHeight() for i=0,(windowWidth/wall_height)+1 do love.graphics.draw(wall, 0-wall_width+10, i*wall_height) love.graphics.draw(wall, ...
by WhoppaGamer
Fri Mar 31, 2023 1:16 pm
Forum: Support and Development
Topic: Bug found with math.rad
Replies: 3
Views: 735

Bug found with math.rad

Found a bug with math.rad: If I want to rotate by 180 instead of 90 in the following code snippet, the last line seems to rotate not by 180 but by 45 or something local wall_width = wall:getWidth() for i=0,(windowWidth/wall_width)+1 do love.graphics.draw(wall, 0-wall_width+10, i*wall_width) love.gra...