A new game (Bosskoneun)

Endea notknown at none.com
Fri Nov 10 01:42:23 PST 2006


Will DeVore kirjoitti:
> Kyle Furlong wrote:
>> Will DeVore wrote:
>>> Hello fellow D programmers,
>>>
>>> I thought I would announce the completion of the next game in my series
>>> written in D called bosskoneun. :)
>>>
>>> It is a 2D top-down shootem-up. Pictures, binaries and source are
>>> available at:
>>>
>>> http://distanthumans.info/programming/D/bosconian/bosconian.php
>>>
>>> D is so efficient that the game sleeps 98% of the time even under the
>>> most
>>> graphically intensense levels.
>>>
>>> Thanks Walter for creating an easy and powerful language. Hint: Look
>>> at the
>>> default high scores. ;) The credits list DigitalMars.com
>>> If you like the game, could it be posted to the "dlinks" section?
>>>
>>> My next assignment, on the horizon, is evaluating how D can be
>>> utilized on the
>>> PS3 for games. Gee Walter what do you think those chances are, wink
>>> wink. :)
>>>
>>> P.S. Posting this message didn't like the fact that I have a .info
>>> TLD. Hmmm...
>>> -Will.
>> Windows binary silently fails on loading a new 1 player game. (Windows
>> XP SP2, Athlon64)
> 
>> Hmmm, works now. Strange.
> 
> Hi Kyle,
> 
> That silent error you got is one of the bugs I think can be fixed if I upgrade
> from 0.160 to the lastest dmd compiler. If you had run it from a console it would
> have said something like "can't load... explosion.png$%?". The garbage tacked on
> the end of the string is something I can't figure out what D/phobos is doing. I
> have rewritten that section of code a few different ways but it does the same
> thing each time. The problem occurs each time the game is first loaded onto a 3D
> card, after that it loads fine. It happens both on windows and linux. I am
> guessing it is something to do with phobos (I think). Anyway I am hoping the issue
> goes away when I upgrade to the latest dmd compiler and phobos. Of course it could
> be something else entirely. I haven't investigated to deep yet, there are so many
> variations to consider.
> 
> -Will

Hi,

In opengldiplay.d, line 300:

surface = IMG_Load(filename.ptr);

mayby use toStringz form std.string to make the filename zero ending:
surface = IMG_Load(string.toStringz(filename));



More information about the Digitalmars-d-announce mailing list