;;;; Copyright © 2023, Jaidyn Ann ;;;; ;;;; 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 . ;;;; FLORA-SEARCH-AURORA ;;;; A simple TUI-game made for the text-flavoured LibreJam of 2023-06! ;;;; See: https://jamgaroo.xyz/jams/2 (ql:quickload '(alexandria anaphora assoc-utils cl-charms cl-tiled str)) (load "util.lisp") (load "input.lisp") (load "display.lisp") (load "ui.lisp") (load "overworld.util.lisp") (load "overworld.tiled.lisp") (load "overworld.lisp") (load "dialogue.lisp") (load "engine.lisp") (defpackage :flora-search-aurora (:nicknames :fsa :✿) (:export #:main) (:use :cl :flora-search-aurora.input :flora-search-aurora.display :flora-search-aurora.overworld :flora-search-aurora.dialogue :flora-search-aurora.ui)) (in-package :flora-search-aurora) (defmacro getf-act (map act) `(getf (gethash :acts ,map) ,act)) (defmacro getf-know (map idea) `(getf (gethash :knows ,map) ,idea)) (defun childhood-friend-greetings (map) (if (getf-act map :sasha-greetings) (incf (getf-act map :sasha-greetings)) (setf (getf-act map :sasha-greetings) 0)) (let ((sasha "childhood-friend")) (case (getf-act map :sasha-greetings) (0 (💬:start-dialogue (💬:mumble sasha :en "...") (💬:say "player" :eo "Kielas apud la mar'?" :en "How's the view?") (💬:face "player" "<.<") (💬:say sasha :eo "Kielas apud la ruinoj de via viv'?" :en "How's your trainwreck of a life?") (💬:face "player" '💬:normal-face))) (1 (start-dialogue (mumble "player" :en "...") (face "player" "o<") (mumble "player" :eo "Eee.. pardonu." :en "Well... sorry."))) (3 (start-dialogue (say "player" :eo "Nu, vere, mia celo sufiĉe klaras al mi. Jam baldaŭ redungiĝos." :en "I'm not too aimless, actually. I've got good job prospects, right about now." :face "