[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: woz' original "brick out" - source code , paddles



On Oct 22, 1:28 pm, mad.scientist...@gmail.com wrote:

> Can anyone post any code that would make the game work with paddles?
>
> >  900  REM  MOVE PADDLES
> >  910  IF  PEEK ( - 16384) > 127 THEN  GET A$
> >  920  IF A$ = "A" THEN P1 = P1 - 1
> >  930  IF A$ = "Z" THEN P1 = P1 + 1
> >  940  IF A$ = "K" THEN P2 = P2 - 1
> >  950  IF A$ = "M" THEN P2 = P2 + 1


sure...

delete 910

920 if pdl(0)>200 then p1=p1+1
930 if pdl(0)<55 then p1=p1-1
940 if pdl(1)>200 then p2=p2+1
950 if pdl(1)<55 then p2=p2-1

that will give you control via paddle controllers.

There are better/faster ways to do it but the
other code would need to be changed a bit.

Rich