Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Scramble, -(also interest for retro game comp)

Years of Service
User Offline
Joined: 4th Oct 2002
Posted: 2nd Mar 2003 16:49
Hi, I've been trying to make a game of scramble, the problem is I dont know how to do the collision bettween the ship and the ground.

I've found a link about the game, its got screen shots etc. It was a really good game!

ok thanks
Andy Igoe
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 3rd Mar 2003 02:21
It really does depend upon how you choose to display and store the 'map'.

I'd create either a memblock or an array with the cavern height information - probably at 20 pixel intervals or thereabouts and then use the line command to draw between the dots.


dim floor(100)
floor(0)=screen height()-200
for fl=1 to 100
next fl

function displayFloor(x)
for sx=x to x+10
line horPos,floor(sx),horPos+20,floor(sx+1)
next sx

That's a very rough piece of code, mostly because i'm a little 'tiddly' as I write this - but it should be enough to get the idea.

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.

Login to post a reply

Server time is: 2023-06-02 08:52:39
Your offset time is: 2023-06-02 08:52:39