Water

This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.

Hugo download links: https://www.generalcoffee.com/hugo
Roody Yogurt's Hugo Blog: https://notdeadhugo.blogspot.com
The Hugor interpreter by RealNC: http://ifwiki.org/index.php/Hugor

Moderators: Ice Cream Jonsey, joltcountry

User avatar
Ice Cream Jonsey
Posts: 30193
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Water

Post by Ice Cream Jonsey »

Has anyone been working on a Hugo library file to model water? Does anyone know if such a thing is finished or in development by anyone?
the dark and gritty...Ice Cream Jonsey!

bruce
Posts: 2544
Joined: Tue Jun 04, 2002 10:43 pm

Post by bruce »

Shit, why don't you model a <i>rope</i> and <i>burning</i> while you're at it?

Actually, that sounds like a Superfriends thing:

"Shape of a hawk!"
"Form of a burning water rope!"

Bruce

Kent
Posts: 119
Joined: Fri Jun 27, 2003 12:10 pm

Water ropes

Post by Kent »

I got a little ways into coding a general quantity/liquid class but never needed it so never really developed it to the point where it was useful.

As for ropes, well, you get those for free in Hugo, of course.

User avatar
Ice Cream Jonsey
Posts: 30193
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Water ropes

Post by Ice Cream Jonsey »

Kent wrote:I got a little ways into coding a general quantity/liquid class but never needed it so never really developed it to the point where it was useful.
My solution, which is really just a quick little thing, is as follows: there's one amount of water, and a slowly dribbling fountain for it to come from. Should the water be tossed to the floor or at someone, well, hahaha, that water is removed from the game and the fountain will dribble some more water into the game a couple turns later.

It does become a problem when the water is in a container, because the game doesn't see it affected by a "remove water" command.

But I'm sort of banking that the rest of the game won't inspire someone to say, 3/4ths the way through it, "Come on! This is HORSESHIT! This is so unrealistic!"

As for ropes, well, you get those for free in Hugo, of course.
!! You do? I didn't know that. Do you mean there's a class for ropes already in the libraries, or that other class definitions and such handle this nicely?
the dark and gritty...Ice Cream Jonsey!

Roody_Yogurt
Posts: 2256
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt »

I figured he meant "free ropes to hang oneself with" or something.

Kent
Posts: 119
Joined: Fri Jun 27, 2003 12:10 pm

Ropes again

Post by Kent »

Yeah, the attachable class in objlib.h. I've used this several times, including in my current thing. There's a hopefully pretty clear example in the sample game, where the attachable class is used for both the rope and the dart/dartboard.

Roody, you're just no good.

Roody_Yogurt
Posts: 2256
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt »

Er, well, that's the other thing I thought you might mean.

Post Reply