Perspective tech demo is about making level from bricks of 3dBoxes. In this example there are shown 2 ways of achieving tiles looking like 3dBoxes:
with 3dBoxes (of course)
with skewed sprites imitating faces of cube
This tech demo tries to solve problem of implementing 3d-looking terrain elements in game. By default, 3dBox would be good enough to take care of this, but there's also a way in using sprite skew.
What are those "sprite skew"?
In 3dBox there are 6 surfaces: front, back and 4 sides. This tech demo shows how to make effect looking similar to 3dBox: each "box" sprite (single tile) is provided with 4 "skew" sprites (skewRight, skewTop, skewLeft, skewBottom) that are scaling and skewing to imitate the 3dBox (back surface of 3dBox isn't imitated because it would be invisible all the time).
Profits of using "skew sprites" instead of 3dBox?
-> works faster
-> more control of depth (3dBox don't accept float numbers for depth)
-> can be animated (for example destroying terrain)
Todo for skewing tech demo (3dBox won't be updated):
-> Handling multiple objects (like complete tileset)
-> Correction of skew sprites Z-order
-> Handling background that's on the 2nd plane[/code:2el5yc06]
If you tried this demo please give some feedback. Thanks
"ENTER" - creating objects