www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - I Made A Game (Again)

reply Kapendev <alexandroskapretsos gmail.com> writes:
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
Aug 22
next sibling parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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
Since it has Gameboy vibe, İ automatically like it. Keep up with more projects like this.
Aug 23
parent Kapendev <alexandroskapretsos gmail.com> writes:
On Friday, 23 August 2024 at 15:18:18 UTC, Ferhat Kurtulmuş wrote:
 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
Since it has Gameboy vibe, İ automatically like it. Keep up with more projects like this.
Thanks.
Aug 24
prev sibling next sibling parent reply IchorDev <zxinsworld gmail.com> writes:
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. :)
Aug 24
parent reply Kapendev <alexandroskapretsos gmail.com> writes:
On Saturday, 24 August 2024 at 07:02:48 UTC, IchorDev wrote:
 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. :)
Yeah, it's a good idea to change the dub file a little bit. I will also try to register the game as a package. Sounds fun. Btw, you can play the game on a phone too. It's not perfect, but it works. You can read the page for how it works. Thanks anyway. If you get any weird errors while trying to compile, then make an issue. I will try to fix it.
Aug 24
parent IchorDev <zxinsworld gmail.com> writes:
On Saturday, 24 August 2024 at 09:16:49 UTC, Kapendev wrote:
 Btw, you can play the game on a phone too. It's not perfect, 
 but it works. You can read the page for how it works. Thanks 
 anyway.
Yes, my bad! I tried the game a couple of hours ago after I remembered it has a web version. It’s a cute game, and I can concur that the visuals are very GB-esque. On my device I do see some visual issues presumably caused by the player sprite’s coordinates not being rounded during the death animation, but other than that the game seems to run & render perfectly which is awesome.
 If you get any weird errors while trying to compile, then make 
 an issue. I will try to fix it.
Who knows, I might even submit a PR. It seems like a decently simple package so I can’t imagine fixing anything would be too crazy.
Aug 24
prev sibling next sibling parent reply solidstate1991 <laszloszeremi outlook.com> writes:
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
I really need to step up my game of actually making games for my game engine... I cannot be the same as rust devs with their game engines...
Aug 28
parent reply IchorDev <zxinsworld gmail.com> writes:
On Wednesday, 28 August 2024 at 19:33:29 UTC, solidstate1991 
wrote:
 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
I cannot be the same as rust devs with their game engines...
That’s a lesson we could all learn. Generally if I find myself making an actual game, then the engine is an afterthought built out from a while-loop. Often it just doesn’t need to be any more complicated than that.
Sep 02
parent reply Kapendev <alexandroskapretsos gmail.com> writes:
On Monday, 2 September 2024 at 23:11:49 UTC, IchorDev wrote:
 On Wednesday, 28 August 2024 at 19:33:29 UTC, solidstate1991 
 wrote:
 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
I cannot be the same as rust devs with their game engines...
That’s a lesson we could all learn. Generally if I find myself making an actual game, then the engine is an afterthought built out from a while-loop. Often it just doesn’t need to be any more complicated than that.
This did help me get started with making games without a big game engine like Godot. Before that I had no idea what I should do. I also had a language hoping phase where I tried Nim, Rust, Go, Dart, D and C. The transition from Godot to just code was hard, but now after almost 9 months I like it.
Sep 02
parent IchorDev <zxinsworld gmail.com> writes:
On Tuesday, 3 September 2024 at 06:13:30 UTC, Kapendev wrote:
 On Monday, 2 September 2024 at 23:11:49 UTC, IchorDev wrote:
 That’s a lesson we could all learn. Generally if I find myself 
 making an actual game, then the engine is an afterthought 
 built out from a while-loop. Often it just doesn’t need to be 
 any more complicated than that.
This did help me get started with making games without a big game engine like Godot. Before that I had no idea what I should do. I also had a language hoping phase where I tried Nim, Rust, Go, Dart, D and C. The transition from Godot to just code was hard, but now after almost 9 months I like it.
Honestly, I never had any luck getting things done in most game engines. Too many abstractions like node hierarchies and too much stupid behaviour that I couldn’t control or would have to work around.
Sep 03
prev sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
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
Well done
Aug 31