Snake: Difference between revisions
Content added Content deleted
m (→{{header|Julia}}: update for Makie changes to Observables) |
Basicgames (talk | contribs) |
||
Line 1,223: | Line 1,223: | ||
rem by Gemino Smothers 2022 |
rem by Gemino Smothers 2022 |
||
rem www.lucidapogee.com |
rem www.lucidapogee.com |
||
⚫ | |||
define gfxx = 330, gfxy = 296 |
define gfxx = 330, gfxy = 296 |
||
Line 1,237: | Line 1,239: | ||
let sy[0] = gfxy / 2 |
let sy[0] = gfxy / 2 |
||
⚫ | |||
⚫ | |||
⚫ | |||
cls graphics |
|||
resize 0, 0, gfxx + 10, gfxy + 56 |
resize 0, 0, gfxx + 10, gfxy + 56 |
||
center |
center |
||
formid 1 |
|||
⚫ | |||
staticform 1, 1, 100, 14 |
|||
⚫ | |||
fgcolor 255, 255, 0 |
|||
cls |
|||
bgcolor 0, 80, 0 |
|||
colorform |
|||
alert "Snake! by Gemino Smothers 2022" |
alert "Snake! by Gemino Smothers 2022" |
||
Line 1,368: | Line 1,374: | ||
fgcolor 255, 255, 0 |
fgcolor 255, 255, 0 |
||
formid 1 |
|||
formtext "Score: ", score |
|||
updateform |
|||
let delay = clock |
let delay = clock |
||
Line 1,382: | Line 1,389: | ||
playwave "examples\boom.wav" |
playwave "examples\boom.wav" |
||
⚫ | |||
⚫ | |||
end</syntaxhighlight> |
|||
==={{header|FreeBASIC}}=== |
==={{header|FreeBASIC}}=== |