Hello so I just started with raylib (and cpp) and wanted to do something ,,easy" at first. Ive done some little more advanced staff in pythons pygame but here I have that problem with drawing these rectangles, because the offset between them is so unequal, i believe the math is right, (but even with different math its just unequal so its harder to say) So I would be gratefull if someone can tell me how to do it. I post the code here https://pastebin.com/tsA4QX5k . I belive there must be a proper way of doing it right, because I dont want to just jump to another project or quit either...
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.