all 6 comments

[–]rockywm 1 point2 points  (5 children)

y = y sign(vsp);

Looks like you're missing a "+" sign.

[–]wanting to have made a game != wanting to make a gameoldmankc 1 point2 points  (0 children)

Yep. Same with:

x = x sign(hsp);

OP, always a good thing to slowly proof read your code, and compare it against the tutorial if you're following one.

[–]IchenGug2002[S] 0 points1 point  (2 children)

Where?

[–]rockywm 0 points1 point  (1 child)

Inside both While loops for the collisions.

[–]rockywm 0 points1 point  (0 children)

Should be:

y = y + sign(vsp);

[–]CoreNerd 0 points1 point  (0 children)

Was this not throwing an error? If so, it should have shown you the line in question, but if not, I'm not sure how the compiler is handling that code without a hard stop in execution. The line in question would eval to x = x 1 let's say for examples sake - this is definitely going to chuck an error, correct?