Adapt codebase to run it with LÖVE