Lite Brite: One for the kids

Discussion, Reviews & High-scores

Moderator: Moderators

PaulQ
undead vic
Posts: 1967
Joined: Sun Jan 14, 2007 2:57 pm

Post by PaulQ »

It's my first ever joystick game, so I don't know why the joystick might not work. A couple of times, I started my program and the joystick seemed not to work, but a "Run/stop-restore" and a re-run seemed to fix it. Any suggestions?

This endeavor reminded me of a time before my first Vic 20 where I had "Borrowed" my sister's Lite Brite (she was no longer playing with it), and used the green pegs to simulate the start-up screen of the Commodore PET. I then set it in behind an old typewriter we had, and pretended it was my computer.
User avatar
Mike
Herr VC
Posts: 4816
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

A better way to read the joystick is:

Code: Select all

S=PEEK(37151):POKE37154,127:T=PEEK(37152):POKE37154,255
IF(128ANDT)=0THENright
IF(4ANDS)=0THENup
IF(8ANDS)=0THENdown
IF(16ANDS)=0THENleft
IF(32ANDS)=0THENfire
This way, only the relevant bits are checked. Floppy access alters bit 0 (value 1), so comparing with the complete register value fails.

You might also take a look at:

http://sleepingelephant.com/ipw-web/bul ... 02&start=4

Greetings,

Michael
PaulQ
undead vic
Posts: 1967
Joined: Sun Jan 14, 2007 2:57 pm

Post by PaulQ »

Thanks for the tip, Mike. I guess that explains why a run-stop/restore "Fixes" it.
Vicman *1970
Vic 20 Devotee
Posts: 247
Joined: Sat Jun 30, 2007 5:48 am

Re: Lite Brite: One for the kids

Post by Vicman *1970 »

is this game still available somewhere ?
DL-Link is dead, also not in GB20...

EDIT..
O.K. - found it here :

btw. joystick still not working , right ?
Post Reply