Learning CraftyJS and I'm missing some info about how does viewports work. What I need: large horizontal map (platformer) and camera, following the hero. Is there any hints where to read detailed information, explaining how does it work? Thanks a lot!
P.S. Official CraftyJS API documentation doesn't helped me in that case
It's all there in this case, although distributed over several pages. Be sure to skim through the whole API to get a good overview of the available functionality.
See last example in Getting started.
Camera is referred to as Viewport in Crafty. See Crafty.viewport.follow()
Let me know if you have further questions.
Putting it all together: