Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast as hell, cross-platform, tiny, hot loaded, and royalty free. · By DragonRuby

Is it possible to draw polygons?

A topic by Papel created 16 days ago Views: 31 Replies: 1
Viewing posts 1 to 2

I searched and found nothing on drawing polygons. I see that it's possible to draw rectangles and lines, ideally with args.outputs.sprites, so they are all batched for the render update, but is there anything for drawing polygons with 5+ vertices?

I didn't manage to find on the docs what are all the accepted path symbols (:pixel, :solid, :line) for the sprites primitive either, is it only those 3?

Developer(+1)

Triangles api can be used to creat polygons. Example of creating a circle: https://docs.dragonruby.org/#/samples/ui-controls?id=radial-menu-mainrb