Code update..by UnseenMachine (no login)The code was full of errors, now it is better.... DIM TC AS INTEGER, TANK AS STRING, OLDTC AS INTEGER, LSR AS INTEGER, TCX AS INTEGER TANK$ = "L20 U10 R10 E10 F10 R10 D10 L20" TC = 320: LSR = 0 SCREEN 12: CLS : PSET (TC, 478): DRAW "C14" + TANK$: TCX = 456 DO IF LSR = 1 THEN PSET (OLDTC, TCX + 5), 0: DRAW "D5": PSET (OLDTC, TCX), 12: DRAW "U5": TCX = TCX - 10 IF LSR = 1 AND TCX <= 1 THEN PSET (OLDTC, TCX + 5), 0: DRAW "D5": TCX = 456: LSR = 0: ARROW$ = INKEY$ SELECT CASE ARROW$ CASE CHR$(0) + CHR$(75): IF TC > 20 THEN PSET (TC, 478), 0: DRAW TANK$: TC = TC - 10: PSET (TC, 478), 14: DRAW TANK$ CASE CHR$(0) + CHR$(77): IF TC < 620 THEN PSET (TC, 478), 0: DRAW TANK$: TC = TC + 10: PSET (TC, 478), 14: DRAW TANK$ CASE CHR$(0) + CHR$(72): OLDTC = TC: PSET (OLDTC, 456), 12: DRAW "U5": LSR = 1 CASE CHR$(27): SYSTEM END SELECT LOOP ....UNSEEN |
| Response Title | Author and Date |
| It doesn't matter what screen you use... | Pete on Dec 1 |
| Nice Pete, but I fear the next hurdle will be multiple shots. | on Dec 1 |
| Hip, hip, array! | Pete on Dec 1 |
| What multiple firing ability would look like in SCREEN 0 | Pete on Dec 2 |
| *Nice job with the bullet timing! | on Dec 2 |
| Thanks, but handwriting is on the wall... And it's a Brick one! | Pete on Dec 2 |
| * use mouse its smooth and you can move while shooting | Ben on Dec 2 |
| Ben, you're a genius! Mouse + alien movement added... | Pete on Dec 2 |
| Cool Pete! | on Dec 2 |
| Use INP(96) in a timer tick loop for multiple presses. LINK | on Dec 2 |
| Pete hates INP(96)... | Pete on Dec 3 |
| The read loop does cancel the keypress when not used. | on Dec 3 |
| Ah, the num lock is screwing up the results... | Pete on Dec 3 |
| The number pad does not send two press codes like the arrow keys do. | on Dec 3 |