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, cross-platform, tiny, hot loaded. · By DragonRuby

Shader, canvases and any kind of debugging?

A topic by Fluttermind created May 08, 2019 Views: 684 Replies: 2
Viewing posts 1 to 2
(1 edit)

This looks awesome. The main 3 things I always worry about when picking up something new like this are:

- Can you draw to a texture?

- Is there any form of shader support?

- Any form of debugging available in any IDE? Does, say, VSCode play well with it?

Thanks for your time and all your efforts so far!

- Dene

Developer

Drawing to a texture is done via render passes. Basically you draw by specifying arrays of things you want to draw, but there's an (optional! Ignore if you don't need it!) array of these arrays, which we refer to as a render pass. Each of those specifies a name, which will end up rendering to a texture instead of the screen, and then later drawing (even later passes in the same frame) can draw from that name instead of an image that was loaded from disk.


Right now we don't offer shaders because we're trying to keep this simple, but we may lose that fight eventually.  :)


Debugging is extremely basic right now. A lot of puts() debugging right now. This is something we want to improve, though!

Thanks for the thorough reply. I'm comparing DR with Love2D (which I use almost exclusively these days) and shaders are about the only thing stopping me from jumping ship at this point. Many thanks again, and I look forward to seeing where this project goes in future!