From c23f81b59db98d7af4fd91a41c9b366823662083 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 14 Jun 2015 20:56:03 -0400 Subject: 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. --- examples/common.scm | 11 +++-------- examples/font.scm | 2 -- 2 files changed, 3 insertions(+), 10 deletions(-) (limited to 'examples') 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 ;;; . -(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 -- cgit v1.2.3