Best way to learn 2d games with D?

dwdv dwdv at posteo.de
Mon Mar 16 00:07:54 UTC 2020


On 2020-03-15 18:58, Steven Schveighoffer via Digitalmars-d-learn wrote:
> I'd prefer to do it with D.

How about raylib in conjunction with thin d bindings? I prefer it over sdl, sfml and the like.

https://www.raylib.com/examples.html (make sure to enable js for embedded examples)
https://code.dlang.org/packages/raylib-d
https://github.com/raysan5/raylib/blob/master/BINDINGS.md

> Should I just start with another language and then migrate to D later? 

If you can stomach lua(jit), check out love2d. Docs and provided game tutorials are super easy to 
follow:

https://love2d.org/
https://love2d.org/wiki/Category:Tutorials

Lastly, if you're more interested in the gamedev aspect, there's also the option to pick your poison 
from this curated mixed list of slim and fat 2d game engines:

https://thomasgervraud.com/best-2d-game-engine/


More information about the Digitalmars-d-learn mailing list