Upcoming Events
5th Australasian Conference on Interactive Entertainment
12/3 - 12/5 @ Brisbane, Australia

2K Bot Prize
12/15 - 12/18 @ Perth, Australia

IEEE Symposium on Computational Intelligence and Games
12/15 - 12/18 @ Perth, Australia

IEEE Consumer Communications & Networking Conference
1/10 - 1/13 @ Las Vegas, NV

More events...


Quick Stats
4405 people currently visiting GDNet.
2240 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!



Link to us

  search:   

A Postmortem of Game Programming with Digital Mars’ D Programming Language


Installing

Google is everyone’s best friend. “D Programming Language Download” drops you to a page with all the downloads. I was running Windows XP Pro in the hotel room, so I grabbed DMC.ZIP and DMD.ZIP. (The Linux people will want to grab the DMD.ZIP for Linux and must have GCC lying around. Presumably you’ll know where to find that. ) You might also want to find CandyDoc because it’s pretty.

It’s a quick download, which is nice because I’m on dialup at home.

I initially wanted to run the programs from the desktop, so that I could easily clean everything off when I left the hotel. That didn’t work out in the brief time I spent fighting, but the following files seem to be important if you want to bash D into running from a non-root location: DMD\bin\sc.ini and DMD\source\d\all.sh. There’s probably more to it, but I gave up. At least some of the tools don’t handle file paths with spaces in them.

I still didn’t want several folders littering my C: root, so I extracted the DMD.zip into c:\DMD and the DMC.ZIP into c:\DMD\DMC. This required modifying the LINKCMD in DMD\BIN\SC.INI to reflect the moved DMC folder. (On a second attempt at home, I extracted everything into c:\dmd\... \bin, \src, \include. You have to update sc.ini again to reflect D's settings, but it worked.)

I created a projects folder under c:\dmd\projects.



Getting work done


Contents
  Prologue
  Installing
  Getting work done
  My experiences
  Beginning work: Dir2
  DERELICT game library
  Various Notes on D
  Wrapup

  Source code
  Printable version
  Discuss this article