1. Making platform game
- Posted by Piotr Dubla <pman at IAFRICA.COM>
Jul 29, 1996
-
Last edited Jul 30, 1996
Hi if anybody out there could please help me with me collsion detection for
a mode 19 screen and virtual screen to get my game scrolling over my whole
level not as my guy gets to the edge of the screen wiping the screen and
puting in a new one i would REALLY appreciate it.
Piotr Dubla a.k.a Mr. Gibbles
2. Re: Making platform game
- Posted by Eduardo Uemura Okada <cool at ART.COM.BR>
Jul 29, 1997
-
Last edited Jul 30, 1997
Hi Piotr, I recently sent a routine to check colision to Charles, of
maillist, and he didn't try to kill me, then I'll send it to you here,
please, if it doesn't work, write me and I'll see what we can do.
I think that it will help you...
This routine will check the contact of two objects, it will return 1 if
occurs contact and return 0 if didn't.
If you need more advanced contact code, for attack and other actions,
write me.
--------- CODE starts here (without this line, obvious) ------------
function check_contact(atom a, atom b, atom x, atom y)
-- pay atention: a and b are coordinates of character, and x and y are of
item, for example
if a=x and b>y-10 or a=x and b<y+10 then
return 1
else
return 0
end if
end function
An amateur of programming always ready to help...
Eduardo Uemura Okada (or if you prefer, //_ERX)
e-mail: cool at art.com.br