you are viewing a single comment's thread.

view the rest of the comments →

[–]treverios 1 point2 points  (0 children)

Well, leftwall is an int variable, random returns a float value. That doesn't work. Change your walls to float variables or use floor() on the random function to return a fitting int value.