World of Spectrum
  • Categories
  • Discussions
  • FAQ
  • Sign In
Home › Search
Title Search
@title beer Word 'beer' in title
User Search
  • @user admin Only posts by Admin
Text Search
  • @body beer Word 'beer' in the text
Phrase Search
"Hello World" Exact phrase match
Exclude Terms
  • car -red Search cars that are not red
"Or" Searches
  • honda | bmw 'honda' or 'bmw' results
Multi-Field
@(title,body) hello Both contain 'hello'
WildCard
  • hond* civ* Match all with an astrix
Combination
  • @title bmw @user admin
See more supported syntax examples
Search Again :: Adv Search 1000 results in 0.073s
<1234567…34>
  • Oh so BRIGHT!What is the SLOWEST way to change the attribute area to BRIGHT? It has to be legit! No meaningless instructions or doing stuff for the sake of it. …

    [CODE]
    10 FOR y = 0 TO 23
    20 FOR x = 0 TO 31
    30 LET b = ATTR (y,x)
    40 IF b>127 THEN LET b=b-127
    50 IF b>63 THEN GOTO 80
    60 IF y>21 THEN PRINT #0; AT y-22,x; PAPER 8; INK 8; BRIGHT 1; OVER 1; " "
    70 IF y
    monty.mole monty.mole November 2006 Development
  • Oh so BRIGHT!What is the SLOWEST way to change the attribute area to BRIGHT? It has to be legit! No meaningless instructions or doing stuff for the sake of it. …

    ... syntax (AND 64 will always return TRUE) it will still work ... /> 20 FOR x = 0 TO 31
    30 LET b = ATTR (y,x)
    40 ... THEN LET b=b-127
    50 IF b>63 ... THEN GOTO 80
    60 IF y>21 ... PRINT #0; AT y-22,x; PAPER 8; INK 8; FLASH 8; BRIGHT 1; OVER ...
    Matt_B Matt_B November 2006 Development
  • Oh so BRIGHT!What is the SLOWEST way to change the attribute area to BRIGHT? It has to be legit! No meaningless instructions or doing stuff for the sake of it. …

    ... GO TO 110
    50 LET b = ATTR (y,x)
    60 IF b ... >127 THEN LET b=b-127 ...
    70 IF b>63 THEN ... GOTO 130
    80 IF y>21 ... PRINT #0; AT y-22,x; PAPER 8; INK 8; FLASH 8; BRIGHT 1; OVER ...
    monty.mole monty.mole November 2006 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... /> FOR b=-9 TO -RND*8:
    PRINT INK 2*(b ... x=1 TO 25+4*(y0)*(j"")*(j=0)*y:
    LET i ... =i+(x+1-i)*(j=0):
    LET c=ATTR (y,x ... x=1 TO 25+
    4*(y0)*(j"")*(j=0)*y: LET i ... =i+
    (x+1-i)*(j=0): LET c=ATTR (y,x+3 ...
    Einar Saukas Einar Saukas August 2007 Development
  • Comp.Sys.Sinclair Crap Games Competition 2017As the creator of the second-least crap game in last year's competition (and the only mug stupid enough to agree to host it this year) I am proud/ash…

    ... 9150 POKE just the first 8 bytes of the UDGs ... CLS
    100 REM Define 8 (of 32) strips of colour ... s>0 THEN LET c=64+(s*8)+s: POKE a ... 1
    220 LET x=15: LET y=17
    230 LET c=-8
    240 ... If stalled:
    530 LET a=ATTR (y,x): IF a0 AND a66 THEN ...
    joefish joefish January 2017 Games
  • Is there a limit to the numberof variables you can have in BASIC..... Reason I ask is I've got an idea....but using my "lowest common denominator" approach to code I fear that I'…

    Let a=ATTR (Y,X) will do the same thing.

    Set the walls and grass to different colours then you can use ATTR to determine what's at each screen position.
    Rebelstar without a cause Rebelstar without a cause January 2012 Sinclair Basic
  • Is there a limit to the numberof variables you can have in BASIC..... Reason I ask is I've got an idea....but using my "lowest common denominator" approach to code I fear that I'…

    ... =Rebelstar without a cause;598103]Let a=ATTR (Y,X) will do the same ... colours then you can use ATTR to determine what's at ...
    Wookiee Wookiee January 2012 Sinclair Basic
  • Ways to use double buffering in basicI was meddling with woody's print stream code where you can print characters at any pixel location on screen. I was playing with 12 sprites, very ann…

    ... let inci=1+(int(rnd0 then goto 3300
    3130 if attr(y,x)=48 ... then let ... points=points+10
    3140 let y=-1:goto ...
    NotFound NotFound November 2006 Sinclair Basic
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... ]
    10 LET x=16: LET y=10: LET u=1: LET v=0: LET sc=0 ... AT 0,8;sc;" ";AT y,x; PAPER 2;" ": LET i$=INKEY$: LET r=(i ...
    BloodBaz BloodBaz May 2007 Development
  • Frank N SteinThis one > [url]http://www.worldofspectrum.org/infoseekid.cgi?id=0001849[/url] Always seems to crash about level 7 (maybe a bit more) or so with an …

    ... LET p=1
    1105 IF dir=0 THEN GOSUB 2000 ... PRINT AT y,x;" /144"; AT y,x+1;" /145": LET r=1: LET y=y+1: GOSUB ... br /> [CODE]1400 GOSUB 3710: RETURN
    1410 POKE 59197,1 ... ]8010 PAPER 8: BRIGHT 1: LET p1=PEEK 23675: LET p2=PEEK ... /> 8420 IF (r=1 AND ATTR(x,y)
    Jimmy Jimmy June 2011 Games
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... DATA 0,0,1,25,63,254,188,0: DATA 96 ... : LET x=3: LET y=3: LET xo=3: LET yo=3: LET d=0: LET hp=8: LET w ... =1: PRINT AT y,x;CHR ... /> 2000 GO TO 2210-200*w
    2010 PRINT AT y,x; INK ...
    bigjon bigjon February 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... : pc death by hp not attr, bumping into npc wakes them ... DATA 0,0,1,25,63,254,188,0: DATA 96 ... : LET x=3: LET y=3: LET xo=3: LET yo=3: LET d=0: LET hp=8: LET w ... /> 2000 GO TO 2210-200*w
    2010 PRINT AT y,x; INK ...
    bigjon bigjon February 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... DATA 0,0,1,25,63,254,188,0: DATA 96 ... : LET x=3: LET y=3: LET xo=3: LET yo=3: LET d=0: LET hp=8: LET w ... =1: PRINT AT y,x;CHR ... /> 2000 GO TO 2210-200*w
    2010 PRINT AT y,x; INK ...
    bigjon bigjon February 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... DATA 0,0,1,25,63,254,188,0: DATA 96 ... : LET x=3: LET y=3: LET xo=3: LET yo=3: LET d=0: LET hp=8: LET w ... =1: PRINT AT y,x;CHR ... /> 2000 GO TO 2210-200*w
    2010 PRINT AT y,x; INK ...
    bigjon bigjon February 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... DATA 0,0,1,25,63,254,188,0: DATA 96 ... : LET x=3: LET y=3: LET xo=3: LET yo=3: LET d=0: LET hp=8: LET w ... =1: PRINT AT y,x;CHR ... LET ny=5: LET nxo=3: LET nxy=5: LET nd=0: LET nhp=2: LET ... 5;CHR$ (144+nd)
    2000 GO TO 2210-200*w ...
    bigjon bigjon February 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... DATA 0,0,1,25,63,254,188,0: DATA 96 ... : LET x=3: LET y=3: LET xo=3: LET yo=3: LET d=0: LET hp=8: LET w ... =1: PRINT AT y,x;CHR ... LET ny=5: LET nxo=3: LET nyo=5: LET nd=0: LET nhp=2: LET ... 5;CHR$ (144+nd)
    2000 GO TO 2210-200*w ...
    bigjon bigjon February 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... DATA 0,0,1,25,63,254,188,0: DATA 96 ... : LET x=3: LET y=3: LET xo=3: LET yo=3: LET d=0: LET hp=100: LET ... w=1: LET st=100: PRINT AT y,x ... 5;CHR$ (144+nd)
    2000 GO TO 2210-200*w ...
    bigjon bigjon February 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... /> 1040 GO SUB 9300
    2000 GO TO 2210-200*w ...
    bigjon bigjon March 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... /> 1040 GO SUB 9300
    2000 GO TO 2210-200*w ...
    bigjon bigjon March 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... /> 1040 GO SUB 9000
    2000 GO TO 2210-200*w ...
    bigjon bigjon March 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... THEN GO SUB 9900
    2000 GO TO 2210-200*w ...
    bigjon bigjon March 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... THEN GO SUB 9900
    2000 GO TO 2210-200*w ...
    bigjon bigjon March 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... /> 1040 GO SUB 9000
    2000 GO TO 2210-200*w ...
    bigjon bigjon March 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    First development in 8 months on this project - changed ... /> 1040 GO SUB 9000
    2000 GO TO 2210-200*w ...
    bigjon bigjon December 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... $(5)=1)*((j=7)+(j=8))[/I] or similar before each ... /> 1040 GO SUB 9000
    2000 GO TO 2210-200*w ...
    bigjon bigjon December 2013 Sinclair Basic
  • BLOG- ZXSporgBasic RPG development thread- Inspired by the Spectrum 30 show, and after a six-month wait while I was busy playing loads of gigs, I have decided to do a spot of Spectrum coding…

    ... /> 1040 GO SUB 9000
    2000 GO TO 2210-200*w ...
    bigjon bigjon September 2014 Sinclair Basic
  • New Compo IdeaI've had this idea and would like to know what do you think about it. I think that most of us here know how to code in BASIC. The problem with Specc…

    ... it with ATTR(y,x) for collission.

    1 LET Y=10: LET X=10:< ... ATTR(y,X) 56 THEN GOTO 1000: REM COLLISION
    20 PRINT AT Y,X;"*": LET ... OY=Y: LET OX=X
    30 PAUSE ... 5" THEN X=X-(X>0)
    50 IF K$="8" THEN X=<…
    Dr BEEP Dr BEEP April 2005 Development
  • New Compo IdeaI've had this idea and would like to know what do you think about it. I think that most of us here know how to code in BASIC. The problem with Specc…

    ... :

    POKE 23658,8: REM CAPS ON
    POKE ... it with ATTR(y,x) for collission.

    1 LET Y=10: LET X=10
    X=X-(X>0)
    50 IF K$="8" THEN X=X+(XCHR$ 164 THEN LET ... machine stack where the appropriate return data lies. Try calling ...
    na_th_an na_th_an April 2005 Development
  • Basic Programming Routine Needed . . . HELP!Hello there, I though i would try and redo an old classic (pacman) in basic . . . BUT . . . I can't remember how to write the code to see what chara…

    ... there are POKEs that will let you redefine the entire ... $ will work.

    ATTR(y,x) will give you the attribute ... value at location y,x, encoded as (128 * ... flash setting) + (64 * bright setting) + (8 * paper colour) + (ink colour). Testing ...
    gasman gasman June 2006 Sinclair Basic
  • Oh so BRIGHT!What is the SLOWEST way to change the attribute area to BRIGHT? It has to be legit! No meaningless instructions or doing stuff for the sake of it. …

    ... /> [code]
    10 LET y=INT(RND*24)
    20 LET x=INT(RND*32)
    30 IF y>21 THEN ... 8; FLASH 8; BRIGHT 1; OVER 1;" ";
    40 IF y64 OR (ATTR(y,x ... )>127 AND ATTR(y,x)
    gasman gasman November 2006 Development
<1234567…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Fixed Speccy Software. And which games remained unfixed?
    John Elliott on April 21
  • Happy 40th Birthday to the Amstrad CPC464!
    rich_chandler on April 21
  • Another Birthday! The Game Boy Is 35!
    mel the bell on April 21
  • European Software Titles with an English version
    harriusherbartio on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21
  • 1992 Spectrum Software
    harriusherbartio on April 21
  • +3 Disk drive motor
    AndyC on April 21
  • Celebrity deaths...
    mel the bell on April 20

HitBox

Word Docs Hits
2000 2.9K 3.5K
let 29.3K 51.6K
atr 25 35
attr 692 1.3K
y 6.2K 15.7K
x 14K 31.7K
tinta 2 2
8 30.2K 46.2K
int 2.2K 6K
papel 5 6
63 920 1.8K
return 7K 10.6K

Related Threads

  • Let it Slow Let it Snow let it SnowWell, It's snowing here hard in the top left Corner of North Carolina.<br /> <br /> I heard that is it snowing hard in the UK also. My parents were s…
  • Famous 8 x 8 graphicsHi All,<br /> <br /> Part of a game I'm writing involves collecting falling 8x8 graphics, one level will be fonts (got this bit sorted) and another w…
  • Spectaculator 5.x/6.x And Multiface 3Hi there, anyone had any trouble with this at all? The instructions say that it will auto-switch between a Multiface 128 and a Multiface 3 when choos…
  • Convert x,y to Attribute Address in AssemblyWhat is the fastest way, given x,y (in hl) to return the attribute address?
  • Getting attribute location from a screen coordinates (x,y)I am having trouble figuring out how to convert an x,y coordinate pair (pointing to a specific pixel) to the location of the attribute for the block …
  • X-10 or X-20 schematics wantedDoes anyone have schematics for the Sinclair X-10 or X-20 amplifiers ?<br /> <br /> These amp-kits were sold back in 1964/65, and when I read about t…
  • Fuse for Mac OS X 0.8.0-pre1A new public preview of the next version of Fuse for Mac OS X has been released at the dedicated sourceforge project:<br /> <br /> [url]http://source…
  • Let is snow let it snowFor those of use in the south and west of the country including those in Northern Ireland its going to be a snowy one tonight and tomorow.<br /> <br …
  • Fuse for Mac OS X 0.8.0-pre2A new public preview of the next version of Fuse for Mac OS X has been released at the dedicated sourceforge project:<br /> <br /> [url]http://source…

Related Searches

  • y first project
  • x files
  • x y z
  • x y
  • flash 128 bright 64 paper 8 ink attr
  • attr y x
  • screen address to x and y
  • screen x y r tape
  • screen x y
  • 8 int
  • draw x y a algorithm
  • attr int flash
  • calculate pixel position from x y
  • 8 x sprite sheet
  • 8 x sprite sheet zx
  • 8 x udg sheet zx
  • 8 x udgs zx graphics
  • draw x y z
  • let bk3 peek val x 18
  • x y to screen position

Copyright © 2024 World of Spectrum