Re: A public domain game written in D

2017-02-04 Thread SimonN via Digitalmars-d

On Saturday, 4 February 2017 at 16:29:05 UTC, Dukc wrote:

On Saturday, 4 February 2017 at 04:03:08 UTC, SimonN wrote:
I've deferred my announcement to the D community because 
multiplayer is still WIP.


I hope I didn't spoil the surprise. I thought that because it's 
public on GH you don't mind someone mention it.


Anyway, interesting. My favorite language being used to remake 
one of my favorite games.


No hard feelings! It's deliberately public, I want Lix 
discoverable by explicit searches for Lemmings-related projects. 
I'm glad you found it mature enough for a posting here.


-- Simon


Re: A public domain game written in D

2017-02-04 Thread Dukc via Digitalmars-d

On Saturday, 4 February 2017 at 04:03:08 UTC, SimonN wrote:
I've deferred my announcement to the D community because 
multiplayer is still WIP.


I hope I didn't spoil the surprise. I thought that because it's 
public on GH you don't mind someone mention it.


Anyway, interesting. My favorite language being used to remake 
one of my favorite games.





Re: A public domain game written in D

2017-02-04 Thread SimonN via Digitalmars-d

On Saturday, 4 February 2017 at 08:50:42 UTC, Stefan Koch wrote:

you need to make enums into static immmutable.

If you ever worked for you when using enums you were living 
dangerously.


I've pushed a fix by moved the code to runtime, the static 
asserts to unittested asserts. Thanks for your hint still; will 
keep in mind for the future.


The problematic code was like this:

class A { /* ... */ }
struct B { A a; /* ... */ }

enum B errorsNowDuringCTFE = /* ... */;

I wrote this over a year ago, trying to find out just how much 
can be forced into CTFE. The compiler accepted it, and yeah, it 
worked cross-platform. I imagined that 'enum' and 'static 
immutable' were equivalent, even though that looked like a 
stretch.


Keep up the good, aggressive compiler development that finds such 
latent bugs!


-- Simon


Re: A public domain game written in D

2017-02-04 Thread Stefan Koch via Digitalmars-d

On Saturday, 4 February 2017 at 04:03:08 UTC, SimonN wrote:

On Friday, 3 February 2017 at 21:14:48 UTC, Dukc wrote:

http://lixgame.com/

A public domain game very much like Lemmings. I'm almost sure 
some of you here have played Lemmings.


NOTE: I have not made or even contributed to that project. I 
just stumbled upon it when surfing the net and thought you may 
be interested to hear.


Hi, I'm the author, ask me anything. :-)

Lix is a Lemmings-like game with working singleplayer, but I'm 
still porting the networked multiplayer. I've deferred my 
announcement to the D community because multiplayer is still 
WIP.


With dmd 2.073, Lix doesn't compile because CTFE can't 
initialize classes/struct pointers anymore. I'm working on 
this. Lix builds with 2.072 and earlier.


-- Simon


you need to make enums into static immmutable.

If you ever worked for you when using enums you were living 
dangerously.


Re: A public domain game written in D

2017-02-03 Thread SimonN via Digitalmars-d

On Friday, 3 February 2017 at 21:14:48 UTC, Dukc wrote:

http://lixgame.com/

A public domain game very much like Lemmings. I'm almost sure 
some of you here have played Lemmings.


NOTE: I have not made or even contributed to that project. I 
just stumbled upon it when surfing the net and thought you may 
be interested to hear.


Hi, I'm the author, ask me anything. :-)

Lix is a Lemmings-like game with working singleplayer, but I'm 
still porting the networked multiplayer. I've deferred my 
announcement to the D community because multiplayer is still WIP.


With dmd 2.073, Lix doesn't compile because CTFE can't initialize 
classes/struct pointers anymore. I'm working on this. Lix builds 
with 2.072 and earlier.


-- Simon


A public domain game written in D

2017-02-03 Thread Dukc via Digitalmars-d

http://lixgame.com/

A public domain game very much like Lemmings. I'm almost sure 
some of you here have played Lemmings.


NOTE: I have not made or even contributed to that project. I just 
stumbled upon it when surfing the net and thought you may be 
interested to hear.