Search found 6 matches

by Fabrizio Caruso
Sun Mar 24, 2019 12:46 am
Forum: Programming
Topic: [BASIC] How to read from the keyboard buffer?
Replies: 5
Views: 461

Re: [BASIC] How to read from the keyboard buffer?

THANKS A LOT!

I solved the problem by reading from 23560 and resetting it once I consume the input.
by Fabrizio Caruso
Sat Mar 23, 2019 11:56 pm
Forum: Programming
Topic: [BASIC] How to read from the keyboard buffer?
Replies: 5
Views: 461

Re: [BASIC] How to read from the keyboard buffer?

Maybe I could do something like:
let c=peek(23560): if c<>13 then print c: POKE 23560,13
by Fabrizio Caruso
Sat Mar 23, 2019 11:47 pm
Forum: Programming
Topic: [BASIC] How to read from the keyboard buffer?
Replies: 5
Views: 461

Re: [BASIC] How to read from the keyboard buffer?

How do I detect no ket pressed with 23560. I want to get the last key pressed only once and not forever. It is for an interactive non-stopping action game. So if a key is pressed I need to detect it and not miss it but I need to detect it just once. In principle INKEY seems to do that but it does no...
by Fabrizio Caruso
Sat Mar 23, 2019 8:33 pm
Forum: Programming
Topic: [BASIC] How to read from the keyboard buffer?
Replies: 5
Views: 461

[BASIC] How to read from the keyboard buffer?

Hi! I am struggling with the input in the Spectrum version of my BASIC game "Mines": https://github.com/Fabrizio-Caruso/Sinclair-BASIC-10-liners I need to read the last key-pressed in a loop without stopping if no key is pressed. I don't want to miss key-presses. I currently use "LET S = CODE INKEY$...
by Fabrizio Caruso
Sat Mar 02, 2019 1:29 pm
Forum: Programming
Topic: Responsive input with inkey$? How?
Replies: 1
Views: 263

Responsive input with inkey$? How?

Hi everyone! I am struggling to get my little BASIC 10-liner game to detect key-presses in a more responsive way: https://github.com/Fabrizio-Caruso/Sinclair-BASIC-10-liners/blob/master/MinesSpectrum.bas In my code I am doing something like: LET s=CODE INKEY$ LET lr = (s=108)-(s=106): LET ud = (s=10...
by Fabrizio Caruso
Sat Mar 02, 2019 1:23 pm
Forum: Announcements
Topic: Introduce yourself!
Replies: 338
Views: 50385

Fabrizio Caruso

Hi everyone! I am a retro-enthusiast, collector and retro-coder. I like coding massively multi-target games. I am the developer of Cross Chase (a universal 8-bit game for all 8-bit platforms coded in C and compiled with tons of different compilers): https://github.com/Fabrizio-Caruso/CROSS-CHASE CRO...