Gamasutra is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Gamasutra: The Art & Business of Making Gamesspacer
Interview: The Making Of Dwarf Fortress
arrowPress Releases
September 23, 2019
Games Press
View All     RSS







If you enjoy reading this site, you might also want to check out these UBM Tech sites:


 

Interview: The Making Of Dwarf Fortress


February 27, 2008 Article Start Previous Page 10 of 10
 

So what happens to, say, a tower of 7 water? I don't know if a tower of water can happen in game.

TA: Yeah, you could do it. Pour water into a tube walled off by floodgates in a stack. Then pull a lever and open them all at once. There would be intervening floors I guess, on the sides, but it's close.

For the tower stack, if it started updating at the bottom, then it would do what happened in the first case, and the water above would just be able to fall down, then repeat. So you get a nice blob spreading out. If you start at the top, it sees the square below isn't static so it goes down, then it goes whatever direction, down, to the side, whatever, and puts a 7 there once it gets to an open spot. So your 7s would teleport and the end result is a blob, but it has moved a bit faster.

Some people will purposely open a water reservoir that is more than one deep. The water shoots out fast because the entire second layer suddenly searches for an opening. You can get super fast flooding that way. Somebody had a goblin trap where they'd drop water on the gobs, and it happened to be outside in the arctic so it would immediately freeze and the gobs would die.

It also tracks which direction the water flows in a few ways so it can push objects and show flow animations.

So then, how does this cause water to flow up the right-hand side of that U pipe?

TA: When a water is doing a search for an outlet, it is allowed to go anywhere up to one below its original Z level, including up the pipe.



I don't let it go the last step, or you'd end up with a three-quarter split that doesn't know how to stop. I have a dev item to improve that, but that involves expanding the static flag to a byte size counter.

And it respects physics, because it can't rise above its original height!

TA: Yeah, I was happy with it. It's crude, but it works, like the rest of the game. It would be nice to have a local model, but those are hard to come by.


Article Start Previous Page 10 of 10

Related Jobs

Disbelief
Disbelief — Cambridge, Massachusetts, United States
[09.23.19]

Senior Programmer, Cambridge, MA
HB Studios
HB Studios — Lunenburg/Halifax, Nova Scotia, Canada
[09.23.19]

Experienced Software Engineer
University of Exeter
University of Exeter — Exeter, England, United Kingdom
[09.20.19]

Serious Games Developer
innogames
innogames — Hamburg, Germany
[09.20.19]

PHP Developer - Tribal Wars





Loading Comments

loader image