241
General Discussion / Re: Help me think of a name for my new cat!
« on: February 07, 2015, 02:59:57 pm »
Meowster Chief
March 6, 2024: Dwarf Fortress 50.12 has been released.
News: February 3, 2024: The February '24 Report is up.
News: February 4, 2021: Dwarf Fortress Talk #28 has been posted.
News: November 21, 2018: A new Threetoe story has been posted.
Forum Guidelines
Would it be possible to Descanize Mr. Strange's typing cat avatar?
Is anyone up for the challenge?
//not really code
GameObject:
Gamestates; //all the things, like if a level has already been generated, etc//
DungeonObjects[numberofdungeons];
InitializeDungeons()
{DungeonObjects[FirstLevel].loadlevel(FirstLevel); //first level is always static//
DungeonObjects[AllOtherObjects] = NULL; //so not a function, but starts off saying the other dungeon levels arent generated//
}
true/false: GenerateLevel(whichlevel)
{ if (Gamestates.whichlevel.notgenerated()) //generate level if its not loaded yet, return false if level exists //
{ GeneratelevelMethod(DungeonObjects[whichlevel], randomseed); return true;}
else return false;
}
true / false: LoadLevel(whichlevel)
{ if (GameStates.whichlevel.generated()) // if its generated we can load it from a file, call this when you enter the level//
{ LoadLevelMethod(DungeonObjects[whichlevel]); return true;}
else return false;
}
GenerateLevelMethod(DungeonObjects[whichlevel], randomseed) //you should already have something like this I'm guessing
{DungeonObjects[whichlevel] = generate(randomseed); }
LoadLevelMethod(DungeonObjects[whichlevel]) //and the load function, assume theres some save function too of course
{DungeonObjects[whichlevel] = load("filename");} //filename is whatever thingy you decide on for saving and loading of course, and can vary greatly or be static or whatever depending on how you save things.
It's like the clickbait ads aren't even trying.
Take a good, good look at it.
-Idiots think that evolution is incompatible with Christianity-I thought only Americans were that dumb.
Richard Dawkins.
But he just doesn't like religion, so... yeah.
It's an exercise that may be marked. I'll get in trouble if I use something we haven't covered in class.
Persistent pain behind my eye.
It's been a few days now. Very annoying, slightly worrying.
Too late at night to dr it anyway- not that I have the $$