Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recall - a memory - test game
#2
It plays well. I scored a 30 on grid #2. Played fast. Mouse might be nice, but I liked running patterns with the arrow keys.

Structure wise with keyboard routines I like to use...

Code: (Select All)
DO
    GOSUB keybrd
    SELECT CASE b$
        CASE CHR$(13)
        CASE CHR$(32)
        CASE CHR$(0) + "H" 'Arrow Up.
        CASE CHR$(0) + "P" 'Arrow Down.
        CASE CHR$(0) + "M" 'Arrow Right.
        CASE CHR$(0) + "K" 'Arrow Left.
        CASE CHR$(27): SYSTEM
        CASE ELSE: flag = -1
    END SELECT
    IF flag THEN flag = 0 ELSE EXIT DO
LOOP
END

keybrd:
DO
    _LIMIT 30 ' Cuts down on CPU usage.
    b$ = INKEY$
    ' A mouse routine can be added here.
    IF LEN(b$) THEN EXIT DO
LOOP
RETURN


It allows one use of INKEY$ in a central location. Mouse can be added.

Pete
Fake News + Phony Politicians = Real Problems

Reply


Messages In This Thread
Recall - a memory - test game - by PhilOfPerth - 05-05-2022, 06:18 AM
RE: Recall - a memory - test game - by Pete - 05-05-2022, 07:13 AM
RE: Recall - a memory - test game - by bplus - 05-05-2022, 03:41 PM
RE: Recall - a memory - test game - by bplus - 05-05-2022, 04:15 PM
RE: Recall - a memory - test game - by Pete - 05-05-2022, 04:26 PM



Users browsing this thread: 4 Guest(s)