;;; The Inevitable Game ;;; Copyright © 2018, 2021 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 intro) #:use-module (chickadee audio) #:use-module (chickadee math rect) #:use-module (chickadee math vector) #:use-module ((chickadee graphics color) #:select (make-color)) #:use-module (chickadee graphics font) #:use-module (chickadee graphics texture) #:use-module (chickadee scripting) #:use-module (engine assets) #:use-module (engine node) #:use-module (engine node-2d) #:use-module (engine scene) #:use-module (engine shell) #:use-module (config) #:use-module (scenes game) #:use-module (oop goops) #:export (intro)) (define-class ()) (define-asset game-font (load-bitmap-font "assets/fonts/good_neighbors_starling.xml")) (define-asset intro-bg (load-image "assets/images/intro-bg.png")) (define texts '("\ The void has been suspended for a little while. You exist now." "\ Confusion gives way to a brief burst of consciousness. Here you are. What now?" "\ The haze clears and you can see that you are here now. You did not ask for this." "\ You rise from deepest waters and take your first breath. You wonder: will this last?" "\ History yields to the present. The present crumbles underfoot. You better move." "\ A leaf has turned. The sunshine warms and blinds. The leaf begins to dry.")) (set! *random-state* (random-state-from-platform)) (define-method (populate (intro )) (cons (let ((text "Press enter to start.") (font game-font)) (make