The old games did it a variety of ways. Two sprites like you're already 
doing, or overlaying a second sprite overtop of the bottom half of your 
character sprite, that is basically a duplicate of the water sprites + 
ripple, etc.  Either way, you're stuck with two sprites like you already 
have. 

If you follow Greg's advice, you're also going to open up the possibility 
of doing other cool effects down the line, like zooming in or tilting the 
screen, etc. 




On Thursday, June 2, 2016 at 3:32:30 PM UTC+9, Greg Ewing wrote:
>
> 'Charles' via pyglet-users wrote: 
> > The game is a top down view, so I'm not sure the horizontal surface 
> > still applies. 
>
> If you're wanting to render your sprites half in and half 
> out of the water, then it's not really top-down. If it were 
> truly top-down, all you would see is the tops of your 
> character's head and shoulders, whether it was in the 
> water or not. 
>
> What you're really doing is faking an oblique view. Since 
> you have a 3D engine available, you might as well make it 
> a real oblique view. 
>
>                                 / 
>     Sprite                    / 
>       |                     /    View direction 
>       |                 | / 
>       |                 L___ 
>       | 
>       | 
> -----|---------------------------------------- 
>       |     Water surface 
>       | 
>       | 
>       | 
>       | 
>
> -- 
> Greg 
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to