Snake: Difference between revisions

Content deleted Content added
Morn (talk | contribs)
Morn (talk | contribs)
Line 1,526: Line 1,526:
Use the arrow keys to control movement direction. If you find gameplay too easy, lower the skill parameter in line 20 or increase ml (maximum snake length).
Use the arrow keys to control movement direction. If you find gameplay too easy, lower the skill parameter in line 20 or increase ml (maximum snake length).


If you are playing this in [https://benchmarko.github.io/CPCBasic/cpcbasic.html CPCBasic], paste the code into the top box, then click on the "Reset" and "Run" buttons below and finally click on the CPC screen so it gets keyboard focus. (The frame around the screen will turn dark).
If you would like to play this in [https://benchmarko.github.io/CPCBasic/cpcbasic.html CPCBasic], paste the code into the box at the top in CPCBasic, then click on the "Reset" and "Run" buttons below and finally click on the CPC screen so it gets keyboard focus. (This will turn the frame around the screen dark).
<syntaxhighlight lang="locobasic">10 mode 1:randomize time
<syntaxhighlight lang="locobasic">10 mode 1:randomize time
15 ink 0,0:ink 1,6:ink 2,18:ink 3,11
15 ink 0,0:ink 1,6:ink 2,18:ink 3,11