Bug fix


Hi!

MemoSquare v2 is out now and the only thing that's different is that the game does not crash anymore when you get a perfect score.

And if you're interested, here's what the problem was:

this was the old code that determined the rating:

if Score = 0 then
Rating = "BAD"
elseif Score > 0 and Score < 4 then
Rating = "NOT BAD"
elseif Score > 3 and Score < 7 then
Rating = "GOOD"
elseif Score > 6 and Score < 9 then
Rating = "VERY GOOD"
elseif Rating = 9 then    <------------- notice that it says "Rating = 9" instead of "Score = 9"
Rating = "PERFECT"
end if

And here's the new code:

if Score = 0 then
Rating = "BAD"
elseif Score > 0 and Score < 4 then
Rating = "NOT BAD"
elseif Score > 3 and Score < 7 then
Rating = "GOOD"
elseif Score > 6 and Score < 9 then
Rating = "VERY GOOD"
elseif Score = 9 then
Rating = "PERFECT"
end if
Btw, I do actually organize my code using the tab key but I don't know why, but itch.io removed them

Files

MemoSquare v2.zip 194 kB
Jul 13, 2022

Get MemoSquare

Leave a comment

Log in with itch.io to leave a comment.