Shared code for ludum dare