Hi,

I am working on my first (very simple) game. I cannot seem to get it to

work. What I am trying to do is have it print "hit" when the yellow

pixel bumps into the white one.

Can anyone help??

SCREEN 7, 0, 1, 0

DO

DO

a$ = INKEY$

LOOP WHILE a$ = ""

xbef = x

ybef = y

IF a$ = "4" THEN x = x - 1

IF a$ = "6" THEN x = x + 1

IF a$ = "8" THEN y = y - 1

IF a$ = "2" THEN y = y + 1

IF a$ = CHR$(27) THEN END

IF x < 1 THEN x = 1

IF y < 1 THEN y = 1

IF x > 317 THEN x = 317

IF y > 197 THEN y = 197

IF a$ = "4" AND SCREEN(y, x - 1, 1) = 15 THEN PRINT "hit": END

IF a$ = "6" AND SCREEN(y, x + 1, 1) = 15 THEN PRINT "hit": END

IF a$ = "8" AND SCREEN(y - 1, x, 1) = 15 THEN PRINT "hit": END

IF a$ = "2" AND SCREEN(y + 1, x, 1) = 15 THEN PRINT "hit": END

CLS

PSET (10, 10), 15

PSET (x, y), 14

PCOPY 1, 0

LOOP