Archived

This topic is now archived and is closed to further replies.

What would be the best way to do this.....

This topic is 6591 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i know the book is really dated, but this topic is covered in the book "spells of fury". not sure if it's still worth it's price (it covers directX 2 i believe), but if you see it on sale for $10 or a friend can lend it to you, might contain some good reading material..

btw. if you do get it, the sloping tile part is located in the bubonic the warthog section.

------------------

"can't waste the day when the night brings a hearse"

Share this post


Link to post
Share on other sites
If you head over to http://www.crack.com, you can download the complete source code for 'abuse'. I believe that you may also be able to download the original binaries as well.

Abuse is a good side scroller with nice action. I wouldn't call it the best side scroller, but it is pretty cool. Anyways, my point being, abuse has slopes in it and but researching the source code, you can learn alot about implementing them into your game.

Hope this helps!

Share this post


Link to post
Share on other sites
Im working on a 2D side scroller, and want to have "sloped" surfaces. not curved, just like hills and ramps. I cant just use tiles, because that would give me stairs. What would be the best way to store/handle these?

Thanks
Ratman

Share this post


Link to post
Share on other sites
I don't know how many times this has been said - just because the graphics are tiled does NOT mean you have to have a collision map of the same resolution/tile size.

You can have 32x32 tiles, and for collision checking, you can use 8x8, 4x4, 64x64, whatever. You don't even have to use tiles to check for collision detection.

I haven't read that spells of fury, but your best bet is to use a generic solid tile, and ones that allow slopes of different sizes. Generic tiles are fast checks, while a more advanced one will do pixel by pixel checking or something.

Jim Adams

Share this post


Link to post
Share on other sites