Forum Libraries, Components, and Plugins
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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.



  • 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

Sign In or Register to comment.