Draw lines in 2D game?

JohanDanforthJohanDanforth SEMember

I'm fiddling with a simple 2D game and need to draw lines between sprites. Any tips on how to do this with an Urho Application? I guess I could put rotated sprites there, but I'd like to draw if possible.

Tagged:

Answers

  • EgorBoEgorBo BYXamarin Team ✭✭✭

    There are several ways to do it, the simplest - is to use DebugRenderer component (it has DrawLine methods), take a look at samples (i.e. 15_Navigation). But it's kind of "debug" component :smile:
    I recommend CustomGeometry - you can find some snippets in Urho3D forum like this or any of those.
    PS: let me know in case of unsurfaced API
    Thanks.

Sign In or Register to comment.