This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-11-12 15:40:42

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

pinball game

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

 

#2 2007-11-12 19:57:20

nicolasx
Scratcher
Registered: 2007-07-30
Posts: 500+

Re: pinball game

The 1.2 version has came out alredy???? I hit the download button and it said i was downloading 1.1?

Last edited by nicolasx (2007-11-12 20:00:35)

Offline

 

#3 2007-11-12 23:58:13

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: pinball game

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

 

#4 2007-11-13 00:48:19

AngelEyra
Scratcher
Registered: 2007-07-19
Posts: 100+

Re: pinball game

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)


AngelEyra's . MyScratchR . Blog
Think with portals
Sorry, Companion Cube... I didn't mean to...

Offline

 

#5 2007-11-14 01:24:02

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: pinball game

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

 

#6 2007-11-14 02:21:00

SimpleScratch
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: pinball game

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

 

#7 2007-11-14 12:16:11

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: pinball game

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

 

Board footer