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.161s
<1…78910111213…34>
  • Better arrangement for video memory?While doing some documentation work for the ZX-Uno project, I compared the advantages of the weird layout of the ZX Spectrum against a linear layout.…

    ... need to use it very often, except maybe for the PLOT, DRAW ... and CIRCLE routines, which compute the address of every pixel to ... X3 X2 X1 X0
    Y coordinate: Y7 Y6 Y5 Y4 Y3 Y2 Y1 ... .

    To the software, the routine to display a character ...
    mcleod_ideafix mcleod_ideafix September 2014 Development
  • URGENT programming question !I've gotta draw a line from machine code using the standard routine at 24B7, which expects the delta-X and delta-Y values on the BASIC stack. I put t…

    Hey, mystery solved !!! I know how to do it - I push X1 and X2 on the stack, call RST #28 to subtract them, push Y1 and Y2 on the stack, call RST #28 to subtract, and call the DRAW routine.]

    Can't believe it was so easy. :)
    GOC GOC July 2003 Sinclair Miscellaneous
  • Pixel LimitIF Y3&lt;192 THEN : LET x2=INT (128+X*A*SIN A): LET y2=INT (Y3): DRAW INK

    ... />
    1720 FOR A=0 TO INT ((50*3.14)-38 ...
    Alcoholics Anonymous Alcoholics Anonymous November 2004 Sinclair Basic
  • Bouncing BallsPfrrt, I am back from lunch, playing the first raw version of BOUNCING BALLS It is very addictive! As stated here [URL]http://www.worldofspectru…

    ... need to be able to handle 60 balls. Due to ... to determine if a ball lies inside the circle, or draw ... might get tricky due to the explosions overlapping. It ... /> For collision I want to use our friend Pythagoras.
    D = SQR ( (X1-X2)^2+(Y1-Y2)^2 )
    When D
    Dr BEEP Dr BEEP September 2008 Games
  • 1k Chess (was the 924 bytes thing!)Hi, I've decided to do a major rewrite of large parts of the code for the isometric Chess thing that I've been messing with. It got to the point, …

    ... on how to increase in-game speed to "playable"? ... Introduce simple clipping rectangle. Then test every figure you draw ... intersect test. And only draw it if intersection is ... RectA.X2 > RectB.X1 &&
    RectA.Y1 > RectB.Y2 ...
    tstih tstih September 2017 Development
  • Short unattended type-in'sThis follows a similar topic on the BBC/Acorn forum (said topic can be found [url="https://stardot.org.uk/forums/viewtopic.php?f=2&t=14919"]here[/url…

    ... LET X1=0: LET Y1=0
    30 FOR C=0 TO 7 ... STEP .1
    40 LET X2=INT (RND*256) : LET Y2 ... DRAW INK C,X2-X1,Y2-Y1: GOTO 70
    60 DRAW OVER 1; INK 0;X2-X1,Y2-Y1 ...
    70 LET X1=X2: LET Y1=Y2: NEXT ...
    spider spider August 2018 Sinclair Miscellaneous
  • Repton ManiaHi all, I am the creator, and look after, the Repton Resource Page ([url]www.reptonresourcepage.co.uk[/url]). For the site, I have written a freely …

    ... the screen memory (0x4000 to 0x57FF & 0x5800 to 0x5AFF)
    0x08772 ... the screen memory (0x4000 to 0x57FF & 0x5800 to 0x5AFF)
    0x1199C ... /> 0x13ED8 0xD1D4 Sequence of colours to animate Repton 2 banner
    Y2 Y1 Y0 Y5 Y4 Y3 X4 X3 X2 X1 X0
    geraldholdsworth geraldholdsworth June 2014 Games
  • Quickest Assembly to find if point in rectangleWhat is the fastest way to see if a point is in a rectangle. e.g rectangle is 10,10 100,10 100,40 10,40 how do i know if a point (e.g 20,20) is in…

    This seems to work

    [code]
    ... /> ; h=x1 , l=y1 (Rect top left)
    ; d=x2 , e=y2 (Rect bottom ... to test)

    ; if x>=x1 then
    ; if x=y1 ...
    robpearmain robpearmain March 2005 Development
  • Quickest Assembly to find if point in rectangleWhat is the fastest way to see if a point is in a rectangle. e.g rectangle is 10,10 100,10 100,40 10,40 how do i know if a point (e.g 20,20) is in…

    ... , robpearmain wrote:
    This seems to work

    [code]< ... /> ; h=x1 , l=y1 (Rect top left)
    ; d=x2 , e=y2 (Rect bottom ... , c=y (x,y point to test)

    ld ... 0, you can set COL to 0 faster with
    ...
    Dr BEEP Dr BEEP March 2005 Development
  • Looking for 'Your Computer' gravity simulation type inHi, In one of the old Your Computer mags, in the type in progs section near the back, there was a Speccy program which simulated interaction between…

    ... : LET a1=30: LET x1=20: LET y1=20: LET m2=10 ... : LET a2=250: LET x2=100: LET y2=100: LET g=15 ... . Some of the bodies seems to push themselves instead of pulling ... test it on visual basic to see it on a larger ...
    Arda Arda November 2006 Sinclair Basic
  • Game OptimisationBelow is a section of code Im using for movement enermy display and collision detect. What happens is that you move the sight with ,.qa and space do…

    ... )

    I want to have multiple bad guys on ... are not always the way to go.

    ... For speed is it correct to use an array like that ... let x1 = 10 : rem enermy 1 x position
    let y1 = 10 ... let x2 = 11 : rem enermy 1 x position
    let y2 = 12 ...
    Toxitalk Toxitalk May 2007 Sinclair Basic
  • Optimize this: Distance CalculationBased on a taylor series expansion, suggested by NA_TH_AN, I've got this so far, which is far far faster than SQR(X^2+y^2) Formula is: in a right an…

    That's an interesting idea.


    It's certainly as feasible to say

    if SQR((x1-x2)^2+(y1-y2)^2)
    Gedlion Gedlion April 2012 Development
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ... /> 160 REM DRAW LINES
    170 FOR N=1 TO 50
    190 LET X2=INT (RND*64)
    200 LET Y1=INT (RND ... br /> 210 LET XS=SGN (X2-X1)
    215 REM SET NUMBER ... NS=ABS (X2-X1)
    230 FOR S=1 TO NS
    240 ... LET X=X1+S*XS
    250 LET Y=Y1
    ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ... /> 160 REM DRAW LINES
    170 FOR N=1 TO 50
    180 LET X1=INT (RND*64)
    190 LET Y1=INT (RND ...
    210 LET YS=SGN (Y2-Y1)
    215 REM SET NUMBER ... (Y2-Y1)
    230 FOR S=1 TO NS
    240 LET X=X1 ...
    250 LET Y=Y1 ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • Trigonometric find angleHi guys, anyone knows a formula to calculate an angle between two coordinates, using basic?s function ATN , recent programming tools have ATAN2(dy,dx…

    ... fixed rem range -32767.9999847 to 32767.9999847

    cls ... /> function getangle (x1 as ubyte,y1 as ubyte,x2 as ubyte,y2 as ubyte ... ) as fixed
    dx=x2-x1
    dy=y2-y1 ...
    Valz Valz July 2013 Development
  • Trigonometric find angleHi guys, anyone knows a formula to calculate an angle between two coordinates, using basic?s function ATN , recent programming tools have ATAN2(dy,dx…

    ... there, changed all to fixed and added 90 to final result, and ... it seem to work :D ... /> function getangle (x1 as fixed,y1 as fixed,x2 as fixed,y2 as fixed ... ) as fixed
    dx=x2-x1
    dy=y2-y1 ...
    Valz Valz July 2013 Development
  • Help needed with calculating screen addressesCan anyone help me finally crack Jonathan Cauldwell's screen addressing calculator and, more to the point, is the reason I'm struggling because this …

    ... |x4|x3|x2|x1|x0 & y7|y6|y5|y4|y3|y2|y1|y0 ... /> 0|1|0|y7|y6|y2|y1|y0|y5|y4|y3|x7 ... in there that used calculation to figure a screen address...it ...
    melkig1967 melkig1967 April 2014 Development
  • Drawing a dotted line...Hi Folks, I cannot be the first person to want this (?) so here goes! Does anyone have a MC routine that does the same as the BASIC DRAW command bu…

    To be honest I feel like ... /> FOR f = 0 to 100: PLOT x1+(x2-x1)*(f/100), y1+(y2-y1)*(f/100): NEXT ...
    Timmy Timmy July 2014 Sinclair Basic
  • Drawing a dotted line...Hi Folks, I cannot be the first person to want this (?) so here goes! Does anyone have a MC routine that does the same as the BASIC DRAW command bu…

    [QUOTE=Timmy;777950]To be honest I feel like ... /> FOR f = 0 to 100: PLOT x1+(x2-x1)*(f/100), y1+(y2-y1)*(f/100): NEXT ...
    Paddy Coleman Paddy Coleman July 2014 Sinclair Basic
  • Grammar-based data compressionI'm working on a game for the 48k Spectrum but want a way to compress a lot of screens into a small space, so I'm looking into data compression. Each…

    ... repeated the most. Something similar to your 'grammar' idea may be ... another template could follow that to block up different combinations of ... maybe there's a template to place common multi-block features ... ,X1,X2,Y for horizontal rows of character N and N,X,Y1,Y2 ...
    joefish joefish May 2015 Development
  • Calculate if two segments cross in assemblerHello, Im developing a little game and I need something that I cant archieve. I have two lines (segment of a line). Line one: X11=coord X of …

    ... ) This reduces number of pixels to check ... to pixels inside intersection.
    to each other. You can divide (x2-x1), and (y2-y1) by 2 ... ) and use bisection to bring them closer to each other on iteration ...
    tstih tstih September 2016 Development
  • Drawing LinesHas anyone got any experience of coding a Bresenham line drawing algorithm on the Speccy? I've had a go and I find the algorithm has quite a few s…

    ... can I find enough registers to run from both ends ... step-over from one byte to the next horizontally won' ... about how the last byte to write might be held ... is, p = max(abs(x1-x2), abs(y1-y2)) +1. So depending on ... know if the center needs to be plotted twice or ...
    Timmy Timmy March 2019 Development
  • Drawing LinesHas anyone got any experience of coding a Bresenham line drawing algorithm on the Speccy? I've had a go and I find the algorithm has quite a few s…

    ... the number of iterations to get a convincing- ... X1+X2)/2 or more usefully Xm=(X1+X2)>>1 and Ym=(Y1+Y2 ... )>>1 That's the only maths you need to ... to a line segment so short it has no slope (Y2=Y1 ... borders you initially need to clip to, but that's ...
    joefish joefish March 2019 Development
  • Buddy 0.1 demo[url="http://wischner.co.uk/downloads/app.tap"]The tape is here[/url]. Load it, then enable kempston mouse emulation, then reload it. [url="https://g…

    ... optimized window messaging (create window, draw window, window proc, send message ... anyone is willing to ... this is the time to come up ... x0, byte y0, byte x1, byte y1; and it draws only the ... for a week and dedicate to developing optimized message pump, ...
    tstih tstih August 2015 Development
  • Computer BattlegamesBook Title: [B][URL="http://www.worldofspectrum.org/infoseekid.cgi?id=2000080"]Computer Battlegames[/URL][/B] Authors: [B]Daniel Isaaman & Jenny Tyle…

    ... print "letter (a-z) to"
    50 print "defuse ... 30 print "you are back to back"
    40 print ... /> 130 for i=1 to 50
    140 if ... /> 50 print "direction (-90 to 90) ?"
    60 input ... /> 70 print "elevation (0 to 90) ?"
    80 input ...
    c1541 c1541 March 2008 MIA/STP/SDP
  • Optimize this: Distance CalculationBased on a taylor series expansion, suggested by NA_TH_AN, I've got this so far, which is far far faster than SQR(X^2+y^2) Formula is: in a right an…

    Something like? [QUOTE]D = abs (X1-X2) + abs (Y1 -Y2)[/QUOTE]or what?
    NRA NRA April 2012 Development
  • GUI/OS for the Spectrum?Hi, Is anybody working on a WIMP/GUI system for the Spec? Is there anything current out there? [url]http://snakeoillabs.com/wordpress/2005/10/30/8…

    ... I want to draw a bitmap x=10,y=10,x2=100,y2=100 ... ,x2=60,y2=80. Using rectangular intersection I calculate that I need to draw ... bitmap to ... area x=20,y=10,x2=60,y2=80 ...
    tstih tstih July 2012 Development
  • GUI/OS for the Spectrum?Hi, Is anybody working on a WIMP/GUI system for the Spec? Is there anything current out there? [url]http://snakeoillabs.com/wordpress/2005/10/30/8…

    ... I want to draw a bitmap x=10,y=10,x2=100,y2=100 ... ,x2=60,y2=80. Using rectangular intersection I calculate that I need to draw ... bitmap to ... area x=20,y=10,x2=60,y2=80 ...
    flashjazzcat flashjazzcat July 2012 Development
  • Better arrangement for video memory?While doing some documentation work for the ZX-Uno project, I compared the advantages of the weird layout of the ZX Spectrum against a linear layout.…

    ... when scanning the television picture to answer your question.
    ... complete set of values when Y2 Y1 Y0 show all their combinations ... palstuff/]this site (scroll down to AEC Line Glitch)[/url], ... plotted in a DRAW command. As CIRCLE calls DRAW, this computes ...
    mcleod_ideafix mcleod_ideafix September 2014 Development
<1…78910111213…34>

Latest Posts

  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 1:34PM
  • Happy 40th Birthday to the Amstrad CPC464!
    Your Spec-chum on 7:28AM
  • Your Favorite Magazine Cover Tapes.
    Paradigm Shifter on 1:28AM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • I am currently watching.....
    zx1 on April 11
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11
  • Footballer of the year - translated version
    firelord on April 11

HitBox

Word Docs Hits
draw 5.6K 8.5K
x1 292 991
y1 167 706
to 549.6K 1.6M
x2 583 1.3K
y2 131 436

Related Threads

  • Draw (x1,y1) to (x2, y2)?I was never very good at math. :( Given the above variables, what should I do to draw a line between the two pixels? How do I calculate the values fo…
  • 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)<br /> <br /> in fact, I want to accelerate a car towa…
  • Now seems to be a good time to add to your collectionsI have bought a few spectrum items to add to my collection recently, had i bought them a year or two ago they would have cost double. This is one of …
  • Update to Image to ZX Spec to 1.3.1I'm inbetween jobs at the moment and felt the need to add a new feature - the ability to export anim gifs.<br /> <br /> [IMG]https://lh6.googleuserco…
  • Alternative to Poke 23659,0 to prevent a 'break in' to a Basic Program.Good morning everyone,<br /> <br /> My memory fails me these days but in the early days of programming I used to use Poke 23659,0 as a crude way of…
  • How to download games to micro sd card to play on Sinclair zx spectrum vegaHello<br /> Could anyone tell me how to download games from a website to a micro sd card to play on a Sinclair zx spectrum vega , I mean do I use a …
  • A game to port to... to make for... ZX Spectrum ?Hey there,<br /> <br /> I'm a game coder on Commodore computers (C64,CPlus/4,VIC20,Amiga) and I loooove the ZX Spectrum.<br /> I grew up with Comm…
  • How to copy file from tape (*.tap) to disks (*.dsk) ?I am using zx32 with win98 and i want (in the emulate +3) copy files from virtual tapes to virtual disks.<br /> <br /> I use =&gt; load "NameOfFile" …
  • how to make a (protected) .DSK to disk transfer ?I know how to make file transfers between .DSK files and physical disks (logical copy).<br /> <br /> However, how can be done a physical sector trans…
  • how to move fdd300's files to pc emulator?Hi!<br /> I have some diskettes 3" for FDD3000 drive for Timex 2048. How can I read these 3"disk and move to PC ? I have some my own demos and rest s…

Related Searches

  • from bedrooms to billions
  • z80 to tape
  • snapshot to tape
  • linux tzx to wav
  • trd files to image
  • fastest way to clear screen
  • user name and password to download emulator
  • convert src files to
  • rst8 return to basic
  • return to basic
  • unable to log in
  • asm draw character
  • how to download games
  • how to download games for vega
  • usr0 to 128
  • the adventure game i m trying to complete
  • draw to
  • convert draw to plot
  • convert lenght and angle to draw comman
  • draw x2

Copyright © 2024 World of Spectrum