IRCC, the animation software Blender has a game engine already built into it. Not sure what you can do with it, but if you wanted to try and make a lego game, that might a good place to start. I recall the guy who created the Space Troopers on Cuusoo was trying to make a FPS to go along with the line, if you can get in touch with him he might be able to help you out.