Ray-casting algorithm: Difference between revisions
→{{header|ANSI Standard BASIC}}: Changed to {{header|ANSI BASIC}}; {{works with|Decimal BASIC}}; output.
m (ANSI Standard BASIC moved to the BASIC section.) |
(→{{header|ANSI Standard BASIC}}: Changed to {{header|ANSI BASIC}}; {{works with|Decimal BASIC}}; output.) |
||
Line 591:
=={{header|BASIC}}==
==={{header|ANSI
{{trans|FreeBASIC}}
{{works with|Decimal BASIC}}
<syntaxhighlight lang="
1010 LET x=1
1020 LET y=2
Line 777 ⟶ 778:
2820 END
</syntaxhighlight>
{{out}}
<pre>
squared
(5,5) in
(5,8) in
(-10,5) out
(0,5) out
(10,5) in
(8,5) in
(10,10) out
squared hole
(5,5) out
(5,8) in
(-10,5) out
(0,5) out
(10,5) in
(8,5) in
(10,10) out
strange
(5,5) in
(5,8) out
(-10,5) out
(0,5) out
(10,5) in
(8,5) in
(10,10) out
exagon
(5,5) in
(5,8) in
(-10,5) out
(0,5) out
(10,5) in
(8,5) in
(10,10) out
</pre>
=={{header|C}}==
|