Search found 101 matches
- Mon Jul 11, 2011 7:41 pm
- Forum: Programming Discussion
- Topic: 2d Platform Slope Collision
- Replies: 24
- Views: 5470
Re: 2d Platform Slope Collision
I know I know, i'll change it! I got the code almost directly from avansc so that's why it's like that. I'd just make it 4 not call new!
- Mon Jul 11, 2011 6:08 pm
- Forum: Programming Discussion
- Topic: 2d Platform Slope Collision
- Replies: 24
- Views: 5470
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.
- Sun Jul 10, 2011 9:52 pm
- Forum: Programming Discussion
- Topic: 2d Platform Slope Collision
- Replies: 24
- Views: 5470
Re: 2d Platform Slope Collision
What is the method for doing it without SAT, I'd like to know both.
- Sat Jul 09, 2011 5:17 pm
- Forum: Programming Discussion
- Topic: 2d Platform Slope Collision
- Replies: 24
- Views: 5470
Re: 2d Platform Slope Collision
I'm using avansc's method for separating axis but something isn't working right. I implemented it like this, but it seems to always return true. bool Entity::CollisionCheckSAT( int check_x, int check_y, Entity* other ) { if (other != this) { GetBBox()->WorldCoordinates(); other->GetBBox()->WorldCoor...
- Sat Jul 09, 2011 3:00 pm
- Forum: Programming Discussion
- Topic: 2d Platform Slope Collision
- Replies: 24
- Views: 5470
Re: 2d Platform Slope Collision
I agree with N64, I'm using the Separating Axis method.
- Sat Jul 09, 2011 11:01 am
- Forum: Programming Discussion
- Topic: 2d Platform Slope Collision
- Replies: 24
- Views: 5470
Re: 2d Platform Slope Collision
Thank you! Both of these links are VERY helpful.
- Sat Jul 09, 2011 12:43 am
- Forum: Programming Discussion
- Topic: 2d Platform Slope Collision
- Replies: 24
- Views: 5470
2d Platform Slope Collision
Hey, can someone help me figure out how to calculate collisions for platform slopes, I have basic rect vs rect collision in my game, and i just want some 45 degree slopes. I've been trying to program it, and have been searching Google non-stop and can't get it to work smoothly enough for my game. I'...
- Mon Jul 04, 2011 4:53 pm
- Forum: Programming Discussion
- Topic: How do YOU structure your game engine(s)?
- Replies: 16
- Views: 3766
Re: How do YOU structure your game engine(s)?
Edited the first post to make it as clear as possible, now maybe we can get on topic!
Also Rolland, I'm not looking for ideas really, just to start a discussion and see how other people structure their games.
Also Rolland, I'm not looking for ideas really, just to start a discussion and see how other people structure their games.
- Mon Jul 04, 2011 3:24 pm
- Forum: Programming Discussion
- Topic: How do YOU structure your game engine(s)?
- Replies: 16
- Views: 3766
Re: How do YOU structure your game engine(s)?
Again, this post was for discussion, I'm not looking for help with a game engine, nor advice. Most of you seem to be missing the point of this topic.
- Mon Jul 04, 2011 1:38 pm
- Forum: Programming Discussion
- Topic: How do YOU structure your game engine(s)?
- Replies: 16
- Views: 3766
Re: How do YOU structure your game engine(s)?
To the first two posters, thanks for the advice, but this was mainly for discussion. I'd still like to hear how YOU do things, not how you'd prefer me to stick to my own methods. Also, I didn't actually mean update my engine with your ideas, I just meant update my brain catalog with different ideas ...
- Mon Jul 04, 2011 12:20 am
- Forum: Programming Discussion
- Topic: How do YOU structure your game engine(s)?
- Replies: 16
- Views: 3766
How do YOU structure your game engine(s)?
I'd like to start a discussion about how each of us choose to structure our game engines. What sort of systems/managers do you use? How do you go about updating your games objects? How do you prefer to structure sections of your engine? I personally have been using an Engine class and letting that d...
- Tue May 24, 2011 10:49 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Loading a map crashing the game.
- Replies: 2
- Views: 532
Re: Loading a map crashing the game.
Thanks for the reply, I already solved the problem though. As for calling new, those are the blocks that make up my map in game. They are put into the SolidTile vector by their constructor.
- Mon May 23, 2011 9:36 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Loading a map crashing the game.
- Replies: 2
- Views: 532
[SOLVED]Loading a map crashing the game.
Okay so I have a function that loads a map, and it basically clears three vectors, and then loads things back into those vectors. Now, if it loads the same map over and over, it clears and loads them fine, but if I change it to load a different map than the start map it crashes at the ThinkAll funct...
- Wed May 18, 2011 6:24 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Deleting Objects
- Replies: 9
- Views: 841
Re: Deleting Objects
I figured it out using what you guys have told me so far, thanks guys!
- Wed May 18, 2011 5:28 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Deleting Objects
- Replies: 9
- Views: 841
Re: Deleting Objects
Thanks for all the replies! I'd like to clarify that it is a vector of pointers to an Entity class, and that I do check if things aren't NULL before doing things with them, but for some reason when I use delete or call a destructor it still crashes. Now, I think that calling erase is the way I'd lik...