Thinking about viewWidth/viewHeight

Discuss suggestions to improve the Axel library.

Thinking about viewWidth/viewHeight

Postby isidoro » Wed Oct 10, 2012 1:09 am

This is a thinking about viewWidth and viewHeight. Why don't you use and instead of those two new properties? This way the camera position/size-bottom/right can determine if one sprite is into visible area (or directly use It would be like using AxRect logic to deal with the visible area.
The only change you have to do is AxCamera.calculateZoomMatrix:
width = Ax.width / Ax.zoom;
height = Ax.height / Ax.zoom;
And maybe zoom property also can be put into AxCamera, if you plan to add multiple camera management in your engine it would be useful.
Posts: 7
Joined: Fri Jun 15, 2012 10:17 am

Return to Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest