[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: woz' original "brick out" - source code , paddles
Thanks so much for posting that.
Incidentally, are there any good sites where you can find Apple II
BASIC program listings like this to learn from?
I have seen a lot of emulator sites and DSK images, but until I get
some floppy drives, I will be limited to typing in BASIC listings and
saving them to cassette. If there are any sites with MP3 recordings
of program cassettes, those might come in handy as well.
On Oct 22, 4:36 pm, aiiad...@gmail.com wrote:
> 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