Search found 16 matches

by Lucas
Sat Jun 13, 2009 5:05 pm
Forum: Programming Discussion
Topic: [Solved] Calling a class function from another class
Replies: 21
Views: 1344

Re: Calling a class function from another class

In the bullet::createbullets() function could you not just get the x, y of the player as you normally would? For example, since you must have created an instance of the player somewhere, for the bullets x, y could you not just say something like: x = PlayerInstance.get_x(); y = PlayerInstance.get_y(...
by Lucas
Fri Jun 12, 2009 6:55 am
Forum: Programming Discussion
Topic: Development Topic: Text Game
Replies: 24
Views: 1555

Re: Development Topic: Text Game

I'm not quite sure which part of your code calls the functions to display this information anyway. The only thing I can think of is that you are expecting your function to check the x, y variables when you change them by typing N or North, but it just doesn't work like that. You need to do some addi...
by Lucas
Thu Jun 11, 2009 1:56 am
Forum: Programming Discussion
Topic: How To Handle Object/Item Collision
Replies: 18
Views: 1599

Re: How To Handle Object/Item Collision

Somewhere around here, I thought avansc posted about quadtrees.... Hrmm... Since it has been mentioned if anybody is too lazy to search for it, it's here http://elysianshadows.com/phpBB3/viewtopic.php?f=6&t=3516&p=39765#p39765 (I assume that's the post you were talking about) It definatly(s...
by Lucas
Wed Jun 10, 2009 3:42 am
Forum: Programming Discussion
Topic: Development Topic: Text Game
Replies: 24
Views: 1555

Re: Development Topic: Text Game

Martijn wrote:Still can't fix the map loading etc, can someone push me into the right direction... again?
What exactly is your problem with "map loading etc"?
by Lucas
Tue Jun 09, 2009 3:36 am
Forum: Programming Discussion
Topic: <vector> and <list>
Replies: 4
Views: 534

Re: <vector> and <list>

Thanks Marauder, it seems quite simple to me now :)
I guess part of being a noob means posting questions and realising how simple the answer is straight after lol.
Thanks :mrgreen:
by Lucas
Sun Jun 07, 2009 1:07 pm
Forum: Programming Discussion
Topic: Book Recommendation Needed
Replies: 14
Views: 872

Re: Book Recommendation Needed

It's definately the little things I like about this book. Totally agree with you there, when I bought this book it covered the majority of what I already knew but like you say there are so many little new bits of information in it that it all adds up in the end. I for example didn't even know what ...
by Lucas
Sun Jun 07, 2009 12:22 pm
Forum: Programming Discussion
Topic: Book Recommendation Needed
Replies: 14
Views: 872

Re: Book Recommendation Needed

C++: a beginners guide, by herbert schildt, this book is probably my favourite ;) I just love how this guy isnt afraid to use C/C++ to it's full potential, and he explains it very well too. This. Although it probably covers most things you already know. You can look through it's contents in the fol...
by Lucas
Sun Jun 07, 2009 9:06 am
Forum: Programming Discussion
Topic: Development Topic: Text Game
Replies: 24
Views: 1555

Re: Development Topic: Text Game

Edit: beaten to it xD The problem is that you aren't giving place_name a value until you call the cityHall() function, so you could either call the function before position() to set the place_name (But it will cout all of the other stuff in the function aswell) or you could always just try passing y...
by Lucas
Sun Jun 07, 2009 2:39 am
Forum: Programming Discussion
Topic: <vector> and <list>
Replies: 4
Views: 534

Re: <vector> and <list>

Thank you for your reply. I'm slowly getting used to how each one is used. Since I'm still just learning I guess I'm just not using large enough amounts of data to see any real advantage to using one over the other yet, which is why I was wondering whether it made much difference. I'm sure once I ge...
by Lucas
Sat Jun 06, 2009 2:21 pm
Forum: Programming Discussion
Topic: <vector> and <list>
Replies: 4
Views: 534

<vector> and <list>

So, I've been learning from the Lazy Foo' SDL tutorials and websites like cprogramming.com, I have pretty much read everything I can on both websites (Although there is so much information it hasn't all stuck with me yet) and have started to experiment with the new and delete keywords to create thin...
by Lucas
Sun May 31, 2009 5:31 am
Forum: Programming Discussion
Topic: [Solved] Frame rate cap and calculation of
Replies: 6
Views: 2241

Re: fps capping and viewing question

First of all I'm only learning from Lazy Foo' myself so don't take any of what I say as a definite solution. You need to start your fps.start(); before the main game loop. Every time you go back to the start of your loop you are resetting the startTicks variable which was defined in the class, so by...
by Lucas
Sat May 30, 2009 4:47 am
Forum: Game Development
Topic: Locked In
Replies: 17
Views: 2217

Re: Locked In

That was really fun to play but I found 2 problems within the first 5 minutes of trying it out, although once i knew how I caused these problems I could play without any bugs at all. You said there are some known bugs so I'm guessing you already know of them, but I'll tell you what my problems were ...
by Lucas
Fri May 29, 2009 1:28 am
Forum: General/Off-Topic
Topic: Ideas to make money.
Replies: 24
Views: 2429

Re: Ideas to make money.

That being said web development is very easy to do and you can charge a lot for it 8-) ... It's only real downside is that it can be bloody boring at times (Like most of the time) Web applications can be more interesting than just web sites (assuming it requires more than simple insert/update/delet...
by Lucas
Thu May 28, 2009 12:43 pm
Forum: General/Off-Topic
Topic: Ideas to make money.
Replies: 24
Views: 2429

Re: Ideas to make money.

he wanted the site to really catch peoples attention with flashing lights and ads all over it (not ads for his business... he just wanted ads... and not for money, just for looks). I then realized I was working with the most incompetent imbecile on earth and things quickly went down hill from there...
by Lucas
Sun May 24, 2009 5:12 pm
Forum: General Gaming
Topic: I dream in retro. FINISHED
Replies: 52
Views: 7748

Re: I dream in retro. FINISHED

That was really interesting to watch, very nice attention to detail, I especially liked the underwater part.
The hadouken at the end also made me smile :)