You are not logged in.
Hi everyone, here's is a 2 year long project of mine (not the whole thing but a part of it). I finally was able to add TRUE physics slopes to my game which is something I am really proud of. (by the way, do not release this engine anywhere else please.) First of all, notice the lack of comments (which I had no time to do really). I am posting this here to show a preview of what can be done. The goal is to optimize the engine. Ideally, I would like to make it faster (it is already fast thought).
Note that I am using vectors so it might be confusing for some of you...
I would also like to thanks Tepi, an excellent mathematician from the GMC who helped me out by giving me a few lines of code helping me handling vectors etc.
Here is the gmk: edm-games.com/PhysicsSlopes.gmk
UPDATE and GM7 version here: http://edm-games.com/PhysicsSlopes_Gm7.gmk
Have fun (use the mouse to jump around).
Post your thoughts and suggestions as well as your improvements and findings.
Thanks.
P.S.- I will be posting a version with more commented codes later on as well as an evolution of the engine and why I have made things as they are right now (some of the things might confuse you a little).
Last edited by Marchal_Mig12 (2010-06-10 00:42:17)
Offline
This is such an intriguing post, I really want to see your project. I don't yet have GM8 though. Can you post an executable that I can look at?
I guess I better register GM8 soon, I feel like I'm getting left behind. Next big pay day I'll do that, I'm just not sure when that will be.
Abusing forum power since 1986.
Offline
pretty nice. didn't really look at the code because I'm in no way qualified to figure it out but it worked nicely and ran at about 800 fps (capped at 999)
Offline
I attempted to convert it to GM7, but I'm not sure if it's working right. Is the Player/Ball supposed to roll or slide down slopes, or is it supposed to have enough friction to stop itself?
Abusing forum power since 1986.
Offline
I converted it. Here's the new version (gm7): http://edm-games.com/PhysicsSlopes_Gm7.gmk It willl work hopefully. And yes there is supposed to have enough friction to stop the ball.
This new version has slightly less codes (I deleted useless stuff in it).
EDIT:My code lacks comment. Please don't complain about something you don't understand but ask me .
Last edited by Marchal_Mig12 (2010-06-10 00:48:30)
Offline
Any thoughts?
Offline
This is such an intriguing post, I really want to see your project. I don't yet have GM8 though. Can you post an executable that I can look at?
I guess I better register GM8 soon, I feel like I'm getting left behind. Next big pay day I'll do that, I'm just not sure when that will be.
You should get it for free, just as any other moderator. Your work for YYG exceeds the costs of GM8 by several dozens of times.
Offline
I agree. I put that very point to YoYo, and they considered it, but ultimately made no decision on the matter. I think if I had broached the topic well before the release of GM8, they probably would have agreed. Their hesitation was due to other moderators having already made the purchase. I did eventually purchase GM8 as well. It's a bargain in any event.
Abusing forum power since 1986.
Offline