My son and I have used the features of Scratch v1.2 to make a decent pinball game.
http://scratch.mit.edu/projects/kevin_and_abe/54377
Try it and see how it works for you!
(Note: if you download it, you'll need the scratch v1.2 beta release to make it work.)
Offline
The version 1.2 scratch is in beta release. That means that a buggy version is available for people who want to test it and report bugs. I believe that there is a thread on the forum explaining how to get the beta release. The real release is expected later in November.
Offline
Your math is baffling. Can you please teach me?
I'm probably going to need to use trig for P( )rtal...
eyra
Last edited by AngelEyra (2007-11-13 00:57:14)
Offline
You can find a lot of the math I used in Canthiar's tutorial on ray tracing.
Actually, what I used is somewhat simpler, as there are only two main ideas:
1) moving 1 step in direction D is the same as moving sin(D) in x and cos(D) in y.
2) The dot-product of two vectors (x,y).(a,b) = a*x+b*y is positive if the vectors point in roughly the same direction, 0 if they are at right angles, and negative if they point in roughly opposite directions.
A good pre-calculus book should have most of this stuff.
Offline
Hi Kevin
I downloaded the project and for some reason it doesn't seem to work very smoothly - have you used some 10Ghz/quad processor machine to develop it on? :-)
regards
Simon
Offline
No, it was developed on a G5 Mac, far from state of the art (they haven't made them for a couple of years).
It does only run on v1.2 beta, so if you downloaded it, I'd be surprised if it runs at all.
Offline