-
New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…
[QUOTE=Einar Saukas;259849]If you manage to keep the ... make much difference.
If you have to replace it ... generation routine, but before the INKEY$ statement.
Now, for ... -
New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…
... , as I have adjusted the INKEY$ statement for the map drawing ... a single loop.
If this is too much, then ... -
New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…
[QUOTE=Digital Prawn;260074]now at only 74 over the limit[/QUOTE]
I noticed the following possible optimizations:
1. Variable [B]v[/B] always gets back to value 8 at the end of the map display loop, so there's no need to ... -
New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…
... p:
LET k=CODE INKEY$:
LET d=(k=55 ... -PEEK 23673:
CLS :
IF q671 THEN
PRINT #0 ... -
New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…
I just got another version of [B]A-Maze[/B] that works better!
Instead of a countdown, this version shows the maze paths being generated, and afterwards draw the "full maze" (including the walls) on top of it, so it doesn't look weird anymore ... -
New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…
Here's a new version of [B]PathFinder[/B], now 26 under the limit:
[CODE]
1 BORDER USR 7766^0:
POKE 23693,7:
DIM m(999):
LET e=INT (RND*10)*64+95:
FOR r=0 TO 9:
PRINT r;"0%":
FOR c= ... -
BASIC Keyword ReferenceRealised that the Sinclair Basic section would be a better place for discussion of BASIC keywords, so for reference the old thread is in [thread=2005…
... [/i] available after a ":" symbol if there are no preceding open ... available during program runtime via INKEY$. During an INPUT prompt, only ... -
How to use standard Joystick on a +2Hello, I know that the two joystick ports that can be found on any Spectrum +2 are Sinclair II proticol. Where can i find clear directions on how t…
... (here's the "II" reason), if game tells "Sinclair Joystick 1 ... />
10 LET k$=INKEY$
20 IF k$="" THEN GO TO ... will show "6" to "0" if you press fire and pull ... -
Wrong File Type, 0:1Ive gone thru an entire transform box full (20) of cartridges containing spectrum games that i wrestled off bay last year, yet not a single one will …
... LET z=CODE INKEY$#4
40 IF z 243 THEN ... /> 60 LET z=CODE INKEY$#4:LET p=p+2 ... IF z 49 THEN GOTO 30
80 LET z=CODE INKEY ... $#4:LET p=p+1
90 IF z ... 254 THEN GOTO 30
100 LET z=CODE INKEY ... $#4:LET p=p+1
110 IF z ... -
New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…
... =Digital Prawn;266901]No doubt if Einar logs in and looks ... -
48K games that don't work on a +2Not sure if there is already a thread about this but recently I've noticed some old 48K games will not run on my +2 - even in 48K mode. Examples are…
... of ROM (around $3900 if memory serves me right). Developers ... side-note, I wonder if setting bit 4 of ... IM1 routine, key-scan and INKEY$ routines (not an exhaustive ... t affect games, but if they jump into the ROM ... />
9) Not sure if this affects any game, but ... -
A BASIC compiler projectHi, I started my own BASIC compiler for the ZX Spectrum (and Z80 machines) 3 months ago. It's still in ALPHA stage (when it is mature, I will write …
Here's a simple 'Catch the bricks' game...
[code]
10 LET A$=">_ -
Handling RST8 on a +3Well, I've come to that bit of my project that I wasn't really looking forward to (because I don't understand enough about the ZX BASIC ROM) - extend…
...
[quote]
Also, while INKEY$ # does poll, it only works ...
And also INKEY$# removes the first byte (if there's anything ... to concatenate the result from INKEY$# and the subsequent INPUT# ... only a single byte, if you use INKEY$# to find out ... -
Fastest way to decide which pixel to paint in order to draw a straight line(after I saw "Bresenhams circle algorithm" in development forum, I decided to ask this in here) in fact, I want to accelerate a car towards a direct…
... it draws jagged lines if I make 1 pixel ... decisions. if I let for..next ... /> 11 LET z$=INKEY$
12 IF z$="q" THEN ... d+8
13 IF z$="a" THEN LET ... d-8
14 IF z$="o" THEN LET ... c-8
15 IF z$="p" THEN LET ... ABS V
1080 IF M>N THEN ... -
BEEP conundrumFor the "CSSCGC 2008 Tape Magazine" December edition, I have decided to use a BASIC sound routine I wrote last year which plays a festive tune using …
BEEP conundrumFor the "CSSCGC 2008 Tape Magazine" December edition, I have decided to use a BASIC sound routine I wrote last year which plays a festive tune using …
BEEP conundrumFor the "CSSCGC 2008 Tape Magazine" December edition, I have decided to use a BASIC sound routine I wrote last year which plays a festive tune using …
BASin r14c - maintenance releaseAfter the recent discussions, BASin has been released as version 14c. It's only a maintenance release, and some of the really big new features are un…
... already does it, for INPUT/INKEY$.
[quote]
Basin ... /> [quote]
And another one (if this is in the manual ...CSSCGC 2008 has now officially begunFor coming last in the 2007 crap game compo, I have the honour and privilege of hosting CSSCGC 2008! I have now put up the CSSCGC 2008 website at …
... ,l./'"
20 LET k$=INKEY$: IF k$="" THEN GO TO 20 ... n=1 TO LEN a$: IF k$=a$(n) THEN GO ... ;f,,,,,: LET p=p+1: IF p>18 THEN LET ...What Poke?Hi all, I'm looking for a POKE that stops Sinclair BASIC reading the space bar as BREAK for a small INKEY$ sub routine, if one exists? Or is it a li…
... BREAK for a small INKEY$ sub routine, if one exists? Or is ...Announcing the 2009 CSSCGCas Digital Prawn has already said, the 2009 compo page went live today, so there's a small overlap between the competitions. obviously you can't subm…
... allow for a quick response INKEY$ command.
I have ... clearly a powerful program, even if I haven't mastered it ...Announcing the 2009 CSSCGCas Digital Prawn has already said, the 2009 compo page went live today, so there's a small overlap between the competitions. obviously you can't subm…
... allow for a quick response INKEY$ command.
I have ... clearly a powerful program, even if I haven't mastered it ...Keyboard routinesI'll ask here first - since this must be a long-ago solved problem, and hopefully I can avoid re-inventing the wheel... I need a keyboard routine th…
... :input[/url]
[B]INKEY$:[/B]
[url]http ... is unrolled and terminates early if a keypress is found, then ... [/url]
Uses the INKEY$ code to do the keyboard ... to a function to determine if that key combination is currently ...Announcing the 2009 CSSCGCas Digital Prawn has already said, the 2009 compo page went live today, so there's a small overlap between the competitions. obviously you can't subm…
... allow for a quick response INKEY$ command.[/quote]
But ... clearly a powerful program, even if I haven't mastered it ...Couple of questions...Howdy, 1. Is there a decent way to get a random number in BASIC/MC? I've been using LET a=INT(RND*2)+1 but the numbers tend to stay at 1 or 2 most …
... ;342667]2. If I have a PAUSE statement after an INKEY$ statement ... is pressed it passes the INKEY$ (as expected), but also shortcuts ... pause eats up the keypress if one exists (and lasts only ... 50th of a sec if no key queued up). The ...Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …
... />
10 LET A=CODE INKEY$: IF A = 0 THEN GO TO ... intrupt)
jr z,readkey ; if no change, then read again ...Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …
... />
10 LET A=CODE INKEY$: IF A = 0 THEN GO TO ... intrupt)
jr z,readkey ; if no change, then read again ...Reading from the 128 Serial PortDon't shout at me if this is a silly question. I have Googled extensively, and searched the forums, but I can't find anything discussing what seems t…
... with the PC.
Using INKEY$ and LPRINT I've got ... vice-versa, but obviously using INKEY$ in a loop is far ...
50 LET N$=INKEY$
60 IF LEN M$>0 ... M$;:LPRINT M$;
70 IF LEN N$>0 THEN ... properly at all.
If I type [CODE] INPUT #4 ...Reading from the 128 Serial PortDon't shout at me if this is a silly question. I have Googled extensively, and searched the forums, but I can't find anything discussing what seems t…
... the usual steps.
If error checking isn't part ... that using INPUT instead of INKEY$ might enable me to pull ...
