I Made A Game (Again)

IchorDev zxinsworld at gmail.com
Sat Aug 24 07:02:48 UTC 2024


On Friday, 23 August 2024 at 02:57:53 UTC, Kapendev wrote:
> The game I made this time with D is an endless runner where you 
> help cute animals collect cute flowers. It's playable in the 
> browser, which means you don't need to download anything.
> Give it a try!
>
> * Game: https://kapendev.itch.io/runani
> * Source: https://github.com/Kapendev/runani

Oh my gosh someone finished a game! I’ve seen a million D game 
engines and 0 finished games in D until now—except for one of my 
own projects.

A little tip about your dub recipe: instead of having different 
platform configurations that are locked to specific platforms, 
you can use the platform name as a suffix to the directives in 
the recipe. For example:
```json
   "libs-osx": ["raylib.500"],
```
Also if you use the same `targetType` & `dflags` for all but 1 
configuration, so you could actually place them in the top level 
of the file to make them the default.

I haven’t played the game yet because I haven’t set up my 
computer at my accommodation, but I’ll definitely have a look at 
the source code later and try to build it for macOS & Debian.
Also maybe consider registering the game on the [dub package 
repository](https://code.dlang.org/?category=application)? I’ve 
found a lot of cool projects through there before by just 
browsing. :)


More information about the Digitalmars-d-announce mailing list