Red Locomotive is very flexible, but it was intended for building 2D browser games.
Here are some key features of "Red Locomotive":
· Module system
· Collision detection
· Sprite animation
· Movement animation
· Calculate coordinates via vectors
· Multiple independent viewports
· Viewport scrolling
· Partial key bindings
· Improved trigonometric functions
· Framerate of 120 with 2000 animated elements
Requirements:
· JavaScript enabled on client side
Limitations:
· Red Locomotive is still in development. It may change drastically from version to version.