ZX Spectrum BASIC: Buggy Orbits
A BASIC program running on the ZX Spectrum which was supposed to plot the orbits of Earth and Venus, but Peter Karpov (http://inversed.ru/) pointed out that I've actually inverted a couple of values so it's incorrect.
10 CLS
20 LET e=0
30 LET v=0
40 LET e=e+0.365256/PI
50 LET v=v+0.224701/PI
60 IF e > 2*PI THEN LET e=0
70 IF v > 2*PI THEN LET v=0
80 LET x0=88+COS(e)*87
90 LET y0=88+SIN(e)*87
100 LET x1=88+COS(v)*62.9238
110 LET y1=88+SIN(v)*62.9238
120 PLOT x0,y0
130 DRAW x1-x0,y1-y0
140 GO TO 40
Видео ZX Spectrum BASIC: Buggy Orbits канала John Metcalf
10 CLS
20 LET e=0
30 LET v=0
40 LET e=e+0.365256/PI
50 LET v=v+0.224701/PI
60 IF e > 2*PI THEN LET e=0
70 IF v > 2*PI THEN LET v=0
80 LET x0=88+COS(e)*87
90 LET y0=88+SIN(e)*87
100 LET x1=88+COS(v)*62.9238
110 LET y1=88+SIN(v)*62.9238
120 PLOT x0,y0
130 DRAW x1-x0,y1-y0
140 GO TO 40
Видео ZX Spectrum BASIC: Buggy Orbits канала John Metcalf
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Color Robot Battle - Adventures in ProgrammingPlaying Salamander on a ZX Spectrum emulatorThe Matrix Digital Rain on the Sinclair ZX SpectrumThe Hobbit Spectrum 128K conversionColor Robot Battle: Tau vs Omega on the TRS-80 Color ComputerMouseCoreLife: The Linear Thinkers NightmareBOX-256: single thread "smiley face" in 07AB cyclesCore War on the Sinclair ZX SpectrumRod-Land on the Sinclair ZX SpectrumZX Spectrum Screen Worm'bot v1.0 - a programming game from 1991 for the MacSlow motion demo of the ZX Spectrum fade to white CLSRobot - a programming game for the Processor Technology Sol-20BOX-256: single thread "four squares" in 010B cyclesThe Jintori programming game - Gokiburi vs MnyumnyuARobots - a 1992 assembly language programming game for DOSSam and Katie AquasphereBinary ArmageddonZX Spectrum Screen Worm - 16 bytesRobotWar for the Apple II, 10 round tournament winners mêlée