Count number of vertices instead of faces, added formatted_number to CommonMethods

This commit is contained in:
2018-12-11 12:27:23 -06:00
parent 82265394eb
commit 5843a9b0ae
7 changed files with 25 additions and 14 deletions

View File

@@ -17,6 +17,14 @@ class IMICFPS
end
end
def formatted_number(number)
string = number.to_s.reverse.scan(/\d{1,3}/).join(",").reverse
string.insert(0, "-") if number < 0
return string
end
def draw_rect(*args)
$window.draw_rect(*args)
end