From 77a65835d236b12984594243cba4bf2110977710 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 21 Jul 2018 16:00:55 +0200 Subject: Add death and credits scene. --- scenes/credits.scm | 47 ++++++++++++++++++++++++ scenes/death.scm | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 152 insertions(+) create mode 100644 scenes/credits.scm create mode 100644 scenes/death.scm (limited to 'scenes') diff --git a/scenes/credits.scm b/scenes/credits.scm new file mode 100644 index 0000000..c6159df --- /dev/null +++ b/scenes/credits.scm @@ -0,0 +1,47 @@ +;;; The Inevitable Game +;;; Copyright © 2018 Ricardo Wurmus +;;; +;;; This program is free software: you can redistribute it and/or +;;; modify it under the terms of the GNU General Public License as +;;; published by the Free Software Foundation, either version 3 of the +;;; License, or (at your option) any later version. +;;; +;;; This program is distributed in the hope that it will be useful, +;;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;;; General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with this program. If not, see +;;; . + +(define-module (scenes credits) + #:use-module (chickadee) + #:use-module (chickadee math vector) + #:use-module (chickadee render font) + #:use-module (engine assets) + #:use-module (engine node) + #:use-module (engine node-2d) + #:use-module (engine scene) + #:use-module (scenes game) + #:use-module (oop goops) + #:export (credits)) + +(define-class ()) + +(define-asset credits-font + (load-tile-font "assets/fonts/bubblemad_8x8.png" 8 8 + " !\"©_%❤'()*+,-./0123456789:←<=>?@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")) + +(define-method (populate (credits )) + (list + (make