March 16, 2020
On Monday, 16 March 2020 at 16:42:56 UTC, Mike Parker wrote:
> On Monday, 16 March 2020 at 16:19:26 UTC, Arine wrote:
>
>> There's no need for someone learning 2D games to even bother with SDL2 to begin with. If you use SDL2 you are going to be using something no one else uses, you'll be wasting your by using something that isn't that good and what you learn from it won't be that useful. I don't know anyone that uses SDL2 actual API for rendering. Using OpenGL and similar API, you'll learn how data actually needs to be processed. If you just want to mess around with making a game, using a game engine like Unity is going to be better for that. No one should waste their time with SDL2's rendering API, it is awful and doesn't actually teach you anything about how rendering actually works.
>>
>
> I just disagree completely. You'll find people in the SDL forums using it. I've used it. I've seen open source games using it. It's simple for someone just beginning to get started with. No need to muck about with the details of OpenGL, or with the complexities of a full-scale game engine. For Steve's purposes, it's just fine.

Yes, I see youtube tutorials that tend to use it and the quality of the tutorial usually reflects that. I didn't say no one uses, merely the individuals that tend to gravitate towards it. Just as I would say with smoking a cigarette. Not sure what you mean by complexities of a full-scale game engine. The complexity is almost entirely removed, to the point that you could use a visual scripted language like blueprint in UE4 if you wanted to.

Yah it's fine for his purposes, it's just a waste of time to use it. If you want to make a game, using something like Unity is going to be better for you. If you want to learn how game engines work, actually using OpenGl and such is going to be better for you. Just like not smoking a cigarette, there are better options.
March 16, 2020
On Sunday, 15 March 2020 at 17:58:58 UTC, Steven Schveighoffer wrote:
> I want to try and learn how to write 2d games. I'd prefer to do it with D.
>
> I've found a ton of tutorials on learning 2d gaming with other languages. Is there a place to look that uses D for learning? Should I just start with another language and then migrate to D later? Anyone recommend any specific tutorial/book?
>
> -Steve

Hi Steve, I have written a nice tutorial on that. Here is the link to it: https://themindofmurilomiranda.blogspot.com/2020/01/beginning-multimedia-with-arsd.html

I have also written a very elaborated Space Invaders game as an example of how to use what you will learn in the tutorial above, here is the link to it: https://themindofmurilomiranda.blogspot.com/2020/01/space-invaders-game-example-to-learn.html
March 17, 2020
On Sunday, 15 March 2020 at 17:58:58 UTC, Steven Schveighoffer wrote:
> I want to try and learn how to write 2d games. I'd prefer to do it with D.
>
> I've found a ton of tutorials on learning 2d gaming with other languages. Is there a place to look that uses D for learning? Should I just start with another language and then migrate to D later? Anyone recommend any specific tutorial/book?
>
> -Steve

Over the years, I've seen so many 2d game frameworks/engine get started and abandoned here. I would recommend DSFML if you can get it to work. I really like the SFML API design. With that said, here are some I looked at:

https://code.dlang.org/packages/d2dgame (based on SDL2 by WebFreak001, not sure how mature it is though, see a demo at https://github.com/WebFreak001/D2DGame/blob/master/example/source/app.d)


https://code.dlang.org/packages/dagon (Mostly 3d, but can do 3d/2d games too. The most advanced of any D game engine/framework. Tonne of work poured into it)

https://code.dlang.org/packages/pixelperfectengine (retro games, I have seen several YouTube demos by the dev)

https://code.dlang.org/packages/godot-d (Godot is quite popular..used in commercial game. Not sure how good and easy to use this binding is though)

https://themindofmurilomiranda.blogspot.com/2020/01/space-invaders-game-example-to-learn.html (Murilo Miranda has this tutorial he pulled together after working tirelessly and asking many question on using Adam's arsd package here, I like this guy's tenacity)

March 17, 2020
On Sunday, 15 March 2020 at 17:58:58 UTC, Steven Schveighoffer wrote:
> I want to try and learn how to write 2d games. I'd prefer to do it with D.
>
> I've found a ton of tutorials on learning 2d gaming with other languages. Is there a place to look that uses D for learning? Should I just start with another language and then migrate to D later? Anyone recommend any specific tutorial/book?
>
> -Steve

Its sad we still don't have a really great framework/engine for developing 2d games in D...even with many options in C available. It seems the casual game community/fan is missing here.
March 17, 2020
On Sunday, 15 March 2020 at 17:58:58 UTC, Steven Schveighoffer wrote:
> I want to try and learn how to write 2d games. I'd prefer to do it with D.
>
> I've found a ton of tutorials on learning 2d gaming with other languages. Is there a place to look that uses D for learning? Should I just start with another language and then migrate to D later? Anyone recommend any specific tutorial/book?
>
> -Steve

https://github.com/DerelictOrg/DerelictSFML2 is the most up to date D binding to SFML library. Now that the maintainer is saying bindbc is better, I'm not sure the way to go.

Will we ever get a bindbc-sfml?


By the way, the maintainer of DSFML went very far by creating a great website with docs and tutorials at http://www.dsfml.com/


March 17, 2020
On Tuesday, 17 March 2020 at 03:13:02 UTC, aberba wrote:
> On Sunday, 15 March 2020 at 17:58:58 UTC, Steven Schveighoffer wrote:
>> I want to try and learn how to write 2d games. I'd prefer to do it with D.
>>
>> I've found a ton of tutorials on learning 2d gaming with other languages. Is there a place to look that uses D for learning? Should I just start with another language and then migrate to D later? Anyone recommend any specific tutorial/book?
>>
>> -Steve
>
> https://github.com/DerelictOrg/DerelictSFML2 is the most up to date D binding to SFML library. Now that the maintainer is saying bindbc is better, I'm not sure the way to go.
>
> Will we ever get a bindbc-sfml?
>
>
> By the way, the maintainer of DSFML went very far by creating a great website with docs and tutorials at http://www.dsfml.com/

You can still use DSFML with an older compiler by installing and using with something like DVM (https://code.dlang.org/packages/dvm)
March 17, 2020
On Sunday, 15 March 2020 at 17:58:58 UTC, Steven Schveighoffer wrote:
> I want to try and learn how to write 2d games. I'd prefer to do it with D.
>
> I've found a ton of tutorials on learning 2d gaming with other languages. Is there a place to look that uses D for learning? Should I just start with another language and then migrate to D later? Anyone recommend any specific tutorial/book?
>
> -Steve

Years ago I wrote this unfinished 2D platformer engine on D:

https://github.com/denizzzka/Platformer

It ises SFML (graphics and sound), Spine (animation engine) and dchip (2d physics engine)
March 17, 2020
On Tuesday, 17 March 2020 at 04:17:41 UTC, Denis Feklushkin wrote:

> Years ago I wrote this unfinished 2D platformer engine on D:
>
> https://github.com/denizzzka/Platformer
>
> It ises SFML (graphics and sound), Spine (animation engine) and dchip (2d physics engine)

Physics engine used only for ragdoll animation. So, if you want to learn how to programm 2D platformer just look into main loop - It is really simple! https://github.com/denizzzka/Platformer/blob/master/source/app.d#L44

March 17, 2020
I made a similar search two months ago as well.

I recommend a simple library.
I landed with https://code.dlang.org/packages/raylib-d
It is supposed to be for learning how to do 2d games.
It is easy to work with, which was my main search parameter.
I need to figure out the logic, physics, client-server first, before I do some fancy-pants graphics.
March 17, 2020
On Sunday, 15 March 2020 at 17:58:58 UTC, Steven Schveighoffer wrote:
> I want to try and learn how to write 2d games. I'd prefer to do it with D.

I haven't seen anyone mention Dgame yet:

https://github.com/Dgame/Dgame

It's not maintained anymore since last November [1], but is seems pretty mature and it has a tutorial:

http://dgame-dev.de/index.php?controller=learn&mode=tutorial&version=0.6

[1] Searching for Dgame Maintainer - https://forum.dlang.org/post/mkobhebqxcfytkgaldis@forum.dlang.org