Water
Moderators: Ice Cream Jonsey, joltcountry
- Ice Cream Jonsey
- Posts: 30191
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Water
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!
-
- Posts: 119
- Joined: Fri Jun 27, 2003 12:10 pm
Water ropes
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.
As for ropes, well, you get those for free in Hugo, of course.
- Ice Cream Jonsey
- Posts: 30191
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Re: Water ropes
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.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.
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!"
!! 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?As for ropes, well, you get those for free in Hugo, of course.
the dark and gritty...Ice Cream Jonsey!
-
- Posts: 2256
- Joined: Mon Apr 29, 2002 6:23 pm
- Location: Milwaukee
-
- Posts: 119
- Joined: Fri Jun 27, 2003 12:10 pm
Ropes again
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, you're just no good.
-
- Posts: 2256
- Joined: Mon Apr 29, 2002 6:23 pm
- Location: Milwaukee