Lime for Corona SDK - Camera focus on layer

♀尐吖头ヾ 提交于 2020-01-06 03:41:26

问题


Is there any solution for setting up focus on layer in Lime framework. I would like to use this on game called "keepie uppie" with scrolling background (camera). When you hit the ball the entire frame together with a ball and tennis racket moves up.

The figure below shows how I would like to make it work:


回答1:


Check out the Camera from Lime. It basically creates a display group and moves everything relative to that. You can focus the camera on one of your game objects. The github repo includes an example of doing just that.

https://github.com/GrahamRanson/Camera



来源:https://stackoverflow.com/questions/8556105/lime-for-corona-sdk-camera-focus-on-layer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!