Re: Less verbose or at least "higher level" 2D game engines for Dlang.

2023-12-29 Thread evilrat via Digitalmars-d-learn
On Saturday, 30 December 2023 at 00:47:04 UTC, Agent P. wrote: Hello everyone, I'm looking for a 2D game engine for Dlang that offers flexibility but has a high-level interface, preferably less verbose. Although I've explored options on GitHub and in general, I haven't found something that

Re: Less verbose or at least "higher level" 2D game engines for Dlang.

2023-12-29 Thread monkyyy via Digitalmars-d-learn
On Saturday, 30 December 2023 at 00:47:04 UTC, Agent P. wrote: Hello everyone, I'm looking for a 2D game engine for Dlang that offers flexibility but has a high-level interface, preferably less verbose. Although I've explored options on GitHub and in general, I haven't found something that

Less verbose or at least "higher level" 2D game engines for Dlang, again.

2023-12-29 Thread Agent P. via Digitalmars-d-learn
Hello everyone, I'm looking for a 2D game engine for Dlang that offers flexibility but has a high-level API, preferably less verbose. Although I've explored options on GitHub and in general, I haven't found something that exactly fits what I need. Often the recommendations mention SFML, SDL

Re: jsoniopipe - exaples?

2023-12-29 Thread Steven Schveighoffer via Digitalmars-d-learn
On Friday, 29 December 2023 at 08:09:58 UTC, Zz wrote: Hi, Here are some samples from the std.json documentation. Any idea on how to do something similar using jsoniopipe? Directly copied from https://dlang.org/phobos/std_json.html import std.conv : to; // parse a file or string of json into

Re: How to implement filterMap

2023-12-29 Thread Siarhei Siamashka via Digitalmars-d-learn
On Friday, 29 December 2023 at 23:10:47 UTC, Christian Köstlin wrote: Is there a way to implement filterMap (meaning do mapping of a range, but if something happens during the map, leave this element out of the resulting range). It's probably not a good idea to do this in general. Expecting a

Blues require to road for match versus Kings

2023-12-29 Thread JaimeShelby via Digitalmars-d-learn
The way the St Louis Blues have actually been carrying out when traveling this period, they need to be eagerly anticipating the begin of a six-game journey versus the Los Angeles Kings on Monday night. Whether the Kings make it back to Los Angeles in time for the video game is an additional

Re: Less verbose or at least "higher level" 2D game engines for Dlang.

2023-12-29 Thread Agent P. via Digitalmars-d-learn
On Saturday, 30 December 2023 at 00:47:04 UTC, Agent P. wrote: Hello everyone, I'm looking for a 2D game engine for Dlang that offers flexibility but has a high-level interface, preferably less verbose. Although I've explored options on GitHub and in general, I haven't found something that

Less verbose or at least "higher level" 2D game engines for Dlang.

2023-12-29 Thread Agent P. via Digitalmars-d-learn
Hello everyone, I'm looking for a 2D game engine for Dlang that offers flexibility but has a high-level interface, preferably less verbose. Although I've explored options on GitHub and in general, I haven't found something that exactly fits what I need. Often the recommendations mention

How to implement filterMap

2023-12-29 Thread Christian Köstlin via Digitalmars-d-learn
Is there a way to implement filterMap (meaning do mapping of a range, but if something happens during the map, leave this element out of the resulting range). I have two solutions (one is with evaluating the mapping function several times), and one tries to store the result for the next front

Re: Indirect access to variables.

2023-12-29 Thread user1234 via Digitalmars-d-learn
On Friday, 29 December 2023 at 17:11:49 UTC, DLearner wrote: Compile-time: [...] Is there a 'foo1' that yields 1 from the snippet below? [...] Similarly, execution-time, is there a foo2 that wields 2 from the snippet below: [...] **compile-tome** ```d void main() { import std.stdio;

Indirect access to variables.

2023-12-29 Thread DLearner via Digitalmars-d-learn
Compile-time: Is there a 'foo1' that yields 1 from the snippet below? ``` void main() { import std.stdio; size_t var1 = 1; char[4] Txt = cast(char[4])("var1"); writeln(foo1(Txt)); } ``` Similarly, execution-time, is there a foo2 that wields 2 from the snippet below: ``` void

jsoniopipe - exaples?

2023-12-29 Thread Zz via Digitalmars-d-learn
Hi, Here are some samples from the std.json documentation. Any idea on how to do something similar using jsoniopipe? Directly copied from https://dlang.org/phobos/std_json.html import std.conv : to; // parse a file or string of json into a usable structure string s = `{ "language": "D",