;;; Copyright © 2022 David Thompson ;;; ;;; 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 (apple-town-fair splash) #:use-module (apple-town-fair assets) #:use-module (apple-town-fair config) #:use-module (apple-town-fair common) #:use-module (apple-town-fair game) #:use-module (chickadee graphics color) #:use-module (chickadee graphics path) #:use-module (chickadee math vector) #:use-module (chickadee scripting) #:use-module (oop goops) #:use-module (catbird) #:use-module (catbird camera) #:use-module (catbird kernel) #:use-module (catbird mode) #:use-module (catbird node) #:use-module (catbird node-2d) #:use-module (catbird region) #:use-module (catbird scene) #:export (launch-game)) (define-class ()) (define %text-color (rgb #x181425)) (define %background-color white) (define-method (on-enter (mode )) (let ((scene (parent mode))) (attach-to scene (make #:painter (with-style ((fill-color %background-color)) (fill (rectangle (vec2 0.0 0.0) %game-width %game-height)))) (make #:texture chickadee-image #:position (vec2 (/ %game-width 2.0) (/ %game-height 2.0)) #:origin (vec2 8.0 8.0) #:scale (vec2 4.0 4.0)) (make