Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions examples/play/chaos.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
rem Chaos
rem (C) 2026 by Ollibony

#include <play.bas>

cls

let x$ = "1 a&&C&&a&&&g&a&&& f&&C&&a&&&f&a&&& g&&D&&b&&&a&b&&& a&&C&&D&&&C&b&g& "
let y$ = "1 f&&C&&a&&&f&g&&& a&&C&&a&&&g&a&&& g&&D&&b&&&a&b&&& g&&b&&D&&&C&b&g& "

let z$ = "O5 V8 5eV7eV6eV5e V8cV7cV6cV5c V8dV7dV6dV5d V8dV7dV6dV5d V8cV7cV6cV5c V8cV7cV6cV5c V8dV7dV6dV5d V8dV7dV6dV5d"

let a$ = x$ + y$
let b$ = z$
let c$ = "V10 1&&& " + x$ + y$

print ink 1; "Channel A"
print a$: print
print ink 1; "Channel B"
print b$: print
print ink 1; "Channel C"
print c$: print

Play a$, b$, c$
26 changes: 26 additions & 0 deletions examples/play/evolution.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
rem Evolution
rem (C) 2026 by Ollibony

#include <play.bas>

cls

let z$ = "T160 O3 1e&&Ee&e&&&e&&&e& 1d&&Dd&d&&&d&&&d& 1c&&Cc&c&&&c&&&c& O2 1a&&Aa&a&&&a&&&a& "
let x$ = "O3 1e&&Ee&e&&&e&&&e& 1g&&Gg&g&&&d&4d1& 1c&&Cc&c&&&c&&&c& O2 1a&&Aa&a&&&a&a&a& O5 3g"

let y$ = "O5 1gab&&&ab&&e&&&d& 1gab&&&ab&&e&&&d& 1abC&&&bC&&e&&&d& 1ega&5&&& "
let w$ = "O5 1gab&&&ab&&e&&&d& 1gab&&&ab&&e&&&d& 1abC&&&bC&&e&&&d& 1ega&5&&& 3e"

let c$ = "O5 9&&&&& 1bCD&&&CD&&b&&&g& 1CDE&&&DE&&C&&&g& 1Cba&5&&& O4 3b"

let a$ = z$ + x$
let b$ = y$ + w$

print ink 1; "Channel A"
print a$: print
print ink 1; "Channel B"
print b$: print
print ink 1; "Channel C"
print c$: print

Play a$, b$, c$
4 changes: 4 additions & 0 deletions examples/play/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This folder contains examples of using the 'Play' library.

Note that these examples are compatible with ZX Spectrum 128K Basic interpreter,
if processed with the 'zmakebas' utility (https://github.com/ohnosec/zmakebas) in auto-line-numbering mode.
Loading