Search found 1649 matches

by avansc
Thu Jul 14, 2011 10:46 pm
Forum: Programming Discussion
Topic: N.A.N value ---SOLVED---
Replies: 21
Views: 2069

Re: N.A.N value

#define Magn(x, y, Mag) Mag = ((x)*(x) + (y)*(y)) unless I am missing something important here .... ............. why not have your macro be this .... #define Magn(x, y, Mag) Mag = sqrt(((x)*(x) + (y)*(y))) or preferable ... inline float magn(const vector &v) { return sqrt((v.x)*(v.x) + (v.y)*(...
by avansc
Thu Jul 14, 2011 9:58 pm
Forum: Programming Discussion
Topic: Xcode 4 and SDL Templates
Replies: 10
Views: 7321

Re: Xcode 4 and SDL Templates

I'll make a genuine xcode4 SDL template for you tomorrow.
by avansc
Thu Jul 14, 2011 7:47 pm
Forum: Programming Discussion
Topic: Xcode 4 and SDL Templates
Replies: 10
Views: 7321

Re: Xcode 4 and SDL Templates

Guys, thanks for the fast response! I just tried the templates with Xcode4 for shits and giggles, and yeah they are broken, but you only have to change like 2 things. Could you point the things out or share your fixed templates? It's not obvious to me what needs to be changed but I'm glad you were ...
by avansc
Thu Jul 14, 2011 6:09 pm
Forum: Programming Discussion
Topic: Xcode 4 and SDL Templates
Replies: 10
Views: 7321

Re: Xcode 4 and SDL Templates

I just tried the templates with Xcode4 for shits and giggles, and yeah they are broken, but you only have to change like 2 things. I never liked how SDL works in OSX.
by avansc
Thu Jul 14, 2011 5:57 pm
Forum: Programming Discussion
Topic: Xcode 4 and SDL Templates
Replies: 10
Views: 7321

Re: Xcode 4 and SDL Templates

programmers are note suppose to fish, we are lazy, we dont reinvent the wheel... use the template. if its broken fix it, but reuse as much as you can. If you need a special setup like falco, then alter it.
by avansc
Tue Jul 12, 2011 7:07 pm
Forum: Programming Discussion
Topic: 2d Platform Slope Collision
Replies: 24
Views: 5467

Re: 2d Platform Slope Collision

yeah im not sweating it, but that is an crappy bit of code, but yeah, I think there might be something wrong with thecode. I'll check it out when I have some time. meanwhile this should work for you too. int side_of_line(Vec2 &a, Vec2 &b, Vec2 &p) { return (p.y - a.y) * (b.x - a.x) - (p....
by avansc
Tue Jul 12, 2011 4:52 pm
Forum: Programming Discussion
Topic: 2d Platform Slope Collision
Replies: 24
Views: 5467

Re: 2d Platform Slope Collision

at the time of writing that it was when everyone and there mom on here was interested in sat, and it was "sat" out quick. You can go look at pretty much any code i post on here, i dont do clean up, i dont care if it leaks, its just the idea, that being said, I still have no idea why i woul...
by avansc
Mon Jul 11, 2011 7:01 pm
Forum: Programming Discussion
Topic: 2d Platform Slope Collision
Replies: 24
Views: 5467

Re: 2d Platform Slope Collision

At the moment it isn't suppose to be any sort of fast, I just want to get it to work first lol. This isn't a matter of speed, optimization, or design. This is a matter of you're committing an unforgivable C/++ crime. You're leaking 256 bytes of memory every frame. How much harder would it be to cha...
by avansc
Thu Jul 07, 2011 8:25 pm
Forum: Programming Discussion
Topic: java game programming?
Replies: 16
Views: 2128

Re: java game programming?

Is java worth learning for game development? You mean for a career in game development? I have no idea. It couldn't hurt. But it's useful in some cases. For example, if you want to see your games on the Android OS, I believe you need to write them in Java. I know theres almost no game companys usin...
by avansc
Tue Jul 05, 2011 7:08 pm
Forum: Game Development
Topic: "nD" - Indie Game Development Handheld
Replies: 66
Views: 13456

Re: "nD" - Indie Game Development Handheld

They said it uses a SoC, so it could also have dedicated GPU.

but im pretty weary too, especially after finding this. http://www.youtube.com/user/robertpello ... QD9Lo78yH8

I think "representatives" from his forum once tried to get you to be affiliated with them.
by avansc
Tue Jul 05, 2011 3:14 pm
Forum: Programming Discussion
Topic: Signal/Slot Library Suggestion?
Replies: 19
Views: 3505

Re: Signal/Slot Library Suggestion?

For example, I push the up button. This is supposed to move my character around the screen. I have two options. I can perform a single if(input.keyDown(KEY_UP)) check in an appropriate subsystem (partySystem, movementSystem, whateverTheHell), OR I can emit a message through a generic message system...
by avansc
Sun Jul 03, 2011 10:33 pm
Forum: Programming Discussion
Topic: Signal/Slot Library Suggestion?
Replies: 19
Views: 3505

Re: Signal/Slot Library Suggestion?

Thank you :). I've been walking around through some of it, the only thing I don't understand is, why have a listener and handler? To me it seems like an unnecessary step, considering (from what I see at least), the only purpose of the listener, is to call the handler :o? Well I certainly wont claim...
by avansc
Sun Jul 03, 2011 8:32 pm
Forum: Programming Discussion
Topic: Signal/Slot Library Suggestion?
Replies: 19
Views: 3505

Re: Signal/Slot Library Suggestion?

anyways, could you show an alternative to a messaging system to make complex event triggers trivial like they are with a robust message system? Yeah... I'd like to see that too. I've been turning this over in my mind for quite some time and I really just couldn't think (or even find over the vast e...
by avansc
Thu Jun 30, 2011 9:10 pm
Forum: Programming Discussion
Topic: Signal/Slot Library Suggestion?
Replies: 19
Views: 3505

Re: Signal/Slot Library Suggestion?

Are you sure signals/slots are what you need? I have never used them, but I always thought they were designed for GUI things. Yeah. It's a design where a signal has any number of slots connected to it. The slots are essentially function pointers. So when you call the signal, those slots get called....
by avansc
Fri Jun 17, 2011 4:09 pm
Forum: General/Off-Topic
Topic: So... guess who is a software engineer?
Replies: 39
Views: 7292

Re: So... guess who is a software engineer?

I have a few student loans biting me face off each month. Once those are gone, I'll probably build myself a new computer. :P Being a well-paid engineer rocks. ^_^ Unfortunately I have some loans to pay off as well... fortunately my girlfriend makes as much as me, so... You would be a fool not to ma...