Ultimate Amiga

Network Boards => AMOS Factory => AMOS Program Submissions => Topic started by: KevG on January 29, 2017, 09:18:47 AM

Title: Curved Platform Engine Test v2
Post by: KevG on January 29, 2017, 09:18:47 AM
Hi folks.

I had a bit of time this weekend so I did a bit more on my platform engine (attatched .adf).
There are more improvements and speed ups....

1. Added wall checks
2. Added roof checks
3. Added Ladders
4. Removed old collision checks
5. Improved Jumping
6. Improved Inertia
7. Added a completely new curved platform algorithm.

The new curved platform checks are now NOT collision checks at all! This is a new
technique that I experimented with and is much much faster. Instead of checking
for an Axis-Aligned Bounding Box (AABB) I use mappings instead. In fact I use this method for ALL collisions now. It was a bit tricky to impliment as there is much more memory overhead but the result is that the algorithm now runs 20 (twenty) times faster than the previous algorithm. I can even use a EHB screen or even a HAM screen and there is no time difference!

Please download the attatched .ADF and have a play with it if you have the time. If you can report back here with any bugs I would be grateful.

Many Thanks

Kev G

p.s. Next: Hardware Scrolling (when I've got the time)
Title: Re: Curved Platform Engine Test v2
Post by: Hungry Horace on January 30, 2017, 03:18:08 PM
this sounds stupidly promising!!

Really interested to see, as I couldnt even work out how to do decent collision detection with a flip-screen platform game (like Bruce Lee on the ZX/C64)
Title: Re: Curved Platform Engine Test v2
Post by: KevG on February 01, 2017, 09:55:53 PM
Hi folks.

I did a bit more today. Now implemented....

1. Moving platforms.
2. Rotating platforms.

It appears to work quite well. Although I have removed the inertia when you are on
a moving platform because it was too easy to fall off :/

Anyway, download the new attachment (.ADF) and give it a go if you have the time.

Regards, Kev G
Title: Re: Curved Platform Engine Test v2
Post by: Lonewolf10 on February 07, 2017, 08:18:11 PM
I did a bit more today. Now implemented....

1. Moving platforms.
2. Rotating platforms.

Excellent work.

I don't recall if the ladder was in the early version or not. It's the start to making great platform games ;)
Title: Re: Curved Platform Engine Test v2
Post by: KevG on February 07, 2017, 08:52:21 PM
Hi Lonewolf10.

There are a couple of bugs in it still but its getting there. The problem for me is finding the time to have a good lengthy coding session to get more done. I will try and get the hardware scrolling working this weekend if I can.

Regards, Kev G.