Sorry, the overlap function was actually written a bit before the other, and wasn't written with different sized rooms in mind... I should have made that clear in the original post.
I'll go ahead...
Type: Posts; User: timmeh
Sorry, the overlap function was actually written a bit before the other, and wasn't written with different sized rooms in mind... I should have made that clear in the original post.
I'll go ahead...
In a recent program of mine I make a fairly high number of over-lap checks at once. The checks take place between two 2D vectors of integers (well, a vector of vectors of ints). At the moment, it...
I can give Lua a shot, but I don't really need that kind of power, and didn't know if there might be a simpler option.
How well does Lua work with C++ classes and functions in them?
From a...
I'm looking at extending my current game project with some sort of scripting language, but most of the mainstream ones, like LUA, would be overkill for this. A script would have access to a single...
Thanks Sebastiani (and everyone else for that matter)! This actually just became relevant to my game as well, now that I know what all it can be used for.
Before I forget, what I meant in my...
I believe the arguments are for command-line arguments, and the integer holds the number of arguments, and the character arrays hold you arguments themselves, but I'm not sure.
Okay, so I'm guessing if I were to pass a function (1|3) it would look (in bits at least) something like this: 3010?
If I were to pass that (1|3) as an integer to a function, could I check if a 3...
I've been using PDCurses in a rogue-like project recently, and one of the functions (in PDCurses) allows me to enter an arbitrary number of arguments, separated by a |. I.E. I could call ...
I've tried following the instructions here, but I'm having some trouble loading the files. I think this may be because of the strings and vector I use in my structure, as I found a post while...
Hmmm.. I didn't even know about the \d escape sequence.... well, thank's for the heads up, if I have any problems with it I know how to fix it :)
I've been working on a game in which I want to display recent events in a sort of action log on the character's info screen. The log is a box on the right-hand side of the screen, with a fixed...
Game Title: Dwarf Caretaker
Version: 1.3
Operating System: Built for Windows XP, although it may work on others with minimal changes.
Compiler: Code::Blocks w/ Mingw
Graphics Library: PDCurses...
I think it is quoted, not replied too, cause I could have sworn I could edit the first post (if this topic) yesterday, even after kermit replied... not 100% sure though. I can't edit either one now,...
Hmmm... this could be a problem... anyone know for sure?
[EDIT]: Seems like it... I can edit this one (obviously)....
For some reason I can't seem to edit my posts... normally it wouldn't bother me all that much, but I really need to update my game's post in the "Post Your Games Here" topic, and I don't want to...
Game Title: Dwarf Caretaker
Version: 0.5
Operating System: XP
Compiler: Code::Blocks w/ Mingw
Graphics Library: Console
Description: A sort of sim game (very) loosely based on the world sim...
Okay, I understand now, thanks for your help!
Sorry, I worded that wrong. Perhaps it would be best if I came up with an example, since I don't know the correct terminology.
If the player pressed [L] would it return 76 or 4C or does it...
It isn't, and that works, thanks!
Just to make sure, getch() returns an int equal to the ASCII code for the key pressed, correct? Is that a decimal ASCII code, a hex ACSII code or am I completely...
I recently finished a tutorial for the creation of a CRAPS game. However, the finished game was hard to follow because the text in the console got longer and longer, and no matter how well...
Cool, thanks!
Oh! I understand now. Sorry about that laserlight, I completely missed what you were saying...
I moved it into the main loop and it works perfectly. Thanks, both of you!
Just for future...
What part of it?
The part designated in the errors are the lines 11 and 14, the ones using the push_back function.
From what I can tell, I am doing it exactly as shown here.
I've been working on my text adventure, and in storing all the rooms I've come across a problem. How to store them. I want to keep them all in a vector, so they can be accessed easily, but when I...
I'm currently borrowing a (slightly dated) copy of Sam's Teach Yourself C++ from the local library. However, it's a few years old, and some of the syntax is a bit off. Being one of the early...