lowagner / bitbox-16

an integrated game editor for the bitbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

holding up while running allows you to go faster than the camera

lowagner opened this issue · comments

don't jump, just run. and then it segfaults somewhere when you're offscreen.

fixed with b6e3cdf

it was rounding down the velocity from float to int, and wasn't keeping up enough with the player when moving to the right only. (going left rounds down, but it shook the camera disjointedly).

the smooth solution is to make camera a float, and convert to int at the end.