8Observer8 Posted November 3, 2017 Share Posted November 3, 2017 Hello, I like this game in Phaser: https://stba.io/ My first question. Is it 2D or 3D game? Link to comment Share on other sites More sharing options...
Skeptron Posted November 3, 2017 Share Posted November 3, 2017 It's 2D. Phaser only allows to do 2D. 8Observer8 1 Link to comment Share on other sites More sharing options...
8Observer8 Posted November 3, 2017 Author Share Posted November 3, 2017 But how is it possible in 2D? I mean landing. Link to comment Share on other sites More sharing options...
Skeptron Posted November 3, 2017 Share Posted November 3, 2017 Just a tween on the shadow might do. Check closely, you'll notice that the spaceship sprite doesn't change at all (not even in size I think). It's a very cool effect btw! 8Observer8 1 Link to comment Share on other sites More sharing options...
samid737 Posted November 3, 2017 Share Posted November 3, 2017 As @Skeptron said, the shadows can make it look 3D. I didn't notice the sprite size not changing , but adjusting the scale could add an extra height effect. the shadow could be A duplicate sprite (black tint, alpha <1) attached as A child, or it could be A custom lighting system. 8Observer8 1 Link to comment Share on other sites More sharing options...
ForgeableSum Posted November 22, 2017 Share Posted November 22, 2017 Correct, it is simply a shadow tween. I used to adjust scale as well, but got rid of that effect (can't remember why). All of the shadows in STBA are created from a single render texture underneath which is the dimension of the window size. If a sprite goes in camera, it is tinted, drawn to the render texture and then untinted again. This is why the sprite shadows also animate along with the sprite. They are not duplicate tinted child sprites (as is a common technique). Another thing that contributes to the illusion of 3D is the fact that all my 2d sprites were created as 3D models. 3D models exported as 2D sprite sheets and animated as 2D sprite sheets. samid737 and 8Observer8 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts