Forum Libraries, Components, and Plugins


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET 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.