Re: Titanion 0.4 + Phobos2 bug

2009-04-28 Thread bearophile
bearophile: struct Vec(T=float, size_t N=3) { static assert(N 0); Sorry. Better to use: struct Vec(T=float, int N=3) { static assert(N 0); From experience using D I have seen that using unsigned types is very unsafe in the current D language. In Delphi using unsigned types

Re: Titanion 0.4

2009-04-28 Thread Christopher Wright
Moritz Warning wrote: Titanion is a 2.5D shooter game for Windows, *nix and MacOSX. The original code by Kenta Cho was ported to use Tango and Derelict. This made it possible to create binaries for different platforms and is what this 0.4 release is about. The code was also put on

Re: Titanion 0.4 + Phobos2 bug

2009-04-28 Thread bearophile
Robert Jacques: struct Vec(T = float,size_t N = 3) { T[N] _data; alias _data this; string toString() { std.conv.return text(_data); } } Very nice. plus functions as array properties which apparently got upgraded at some point to the extra () isn't needed anymore. ( i.e.

Re: Titanion 0.4 + Phobos2 bug

2009-04-28 Thread Robert Jacques
On Tue, 28 Apr 2009 05:06:23 -0400, bearophile bearophileh...@lycos.com wrote: bearophile: struct Vec(T=float, size_t N=3) { static assert(N 0); Sorry. Better to use: struct Vec(T=float, int N=3) { static assert(N 0); From experience using D I have seen that using unsigned

Re: Titanion 0.4

2009-04-28 Thread Steven Schveighoffer
On Mon, 27 Apr 2009 16:14:40 -0400, Moritz Warning moritzwarn...@web.de wrote: Titanion is a 2.5D shooter game for Windows, *nix and MacOSX. The original code by Kenta Cho was ported to use Tango and Derelict. This made it possible to create binaries for different platforms and is what this

Re: Titanion 0.4

2009-04-28 Thread Moritz Warning
On Tue, 28 Apr 2009 12:44:48 -0400, Steven Schveighoffer wrote: On Mon, 27 Apr 2009 16:14:40 -0400, Moritz Warning moritzwarn...@web.de wrote: Titanion is a 2.5D shooter game for Windows, *nix and MacOSX. The original code by Kenta Cho was ported to use Tango and Derelict. This made it

Titanion 0.4

2009-04-27 Thread Moritz Warning
Titanion is a 2.5D shooter game for Windows, *nix and MacOSX. The original code by Kenta Cho was ported to use Tango and Derelict. This made it possible to create binaries for different platforms and is what this 0.4 release is about. The code was also put on sourceforge.net to make it easier

Re: Titanion 0.4

2009-04-27 Thread bearophile
Moritz Warning: Titanion is a 2.5D shooter game for Windows, *nix and MacOSX. The original code by Kenta Cho was ported to use Tango and Derelict. Lot of fireworks and the code looks clean. Most D games I see have inside a 2D and/or 3D vector struct, and the code is generally essentially the

Re: Titanion 0.4

2009-04-27 Thread Robert Jacques
On Mon, 27 Apr 2009 17:29:49 -0400, bearophile bearophileh...@lycos.com wrote: Moritz Warning: Titanion is a 2.5D shooter game for Windows, *nix and MacOSX. The original code by Kenta Cho was ported to use Tango and Derelict. Lot of fireworks and the code looks clean. Most D games I see