summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Thompson <davet@gnu.org>2015-06-14 20:56:03 -0400
committerDavid Thompson <davet@gnu.org>2015-06-14 20:58:52 -0400
commitc23f81b59db98d7af4fd91a41c9b366823662083 (patch)
tree61e2bdb80e1d8e74419c813c74bef04ae44d36ff /examples
parent0ec98c95075e09567ef05a84dae8f6de40920202 (diff)
Add composite (sly) module.
* sly.scm: New file. * Makefile.am (SOURCES): Add it. * sandbox.in: Use new module. * examples/common.scm: Likewise. * examples/font.scm: Likewise. * README ("Example"): Update example.
Diffstat (limited to 'examples')
-rw-r--r--examples/common.scm11
-rw-r--r--examples/font.scm2
2 files changed, 3 insertions, 10 deletions
diff --git a/examples/common.scm b/examples/common.scm
index 541488a..65e02df 100644
--- a/examples/common.scm
+++ b/examples/common.scm
@@ -15,15 +15,10 @@
;;; along with this program. If not, see
;;; <http://www.gnu.org/licenses/>.
-(use-modules (sly agenda)
- (sly fps)
- (sly game)
- (sly input keyboard)
- (sly repl)
- (sly signal)
- (sly window))
+(use-modules (sly)
+ (sly fps))
-(open-window)
+(sly-init)
(add-hook! key-press-hook (lambda (key unicode)
(when (eq? key 'escape)
diff --git a/examples/font.scm b/examples/font.scm
index 4ce76e3..4d481d3 100644
--- a/examples/font.scm
+++ b/examples/font.scm
@@ -29,8 +29,6 @@
(load "common.scm")
-(enable-fonts)
-
(define font (load-default-font 18))
(define-signal message-label