From b057acbc3b06d1e815bb1b9d43241ac35b058d1e Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 25 Jun 2018 10:56:18 +0200 Subject: Initial commit. --- engine/node-2d.scm | 359 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 359 insertions(+) create mode 100644 engine/node-2d.scm (limited to 'engine/node-2d.scm') diff --git a/engine/node-2d.scm b/engine/node-2d.scm new file mode 100644 index 0000000..d5d9234 --- /dev/null +++ b/engine/node-2d.scm @@ -0,0 +1,359 @@ +;;; Lisp Game Jam 2018 +;;; Copyright © 2018 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 (engine node-2d) + #:use-module (chickadee) + #:use-module (chickadee math matrix) + #:use-module (chickadee math rect) + #:use-module (chickadee math vector) + #:use-module (chickadee render) + #:use-module (chickadee render color) + #:use-module (chickadee render font) + #:use-module (chickadee render framebuffer) + #:use-module (chickadee render shapes) + #:use-module (chickadee render sprite) + #:use-module (chickadee render texture) + #:use-module (chickadee scripting) + #:use-module (ice-9 match) + #:use-module (engine assets) + #:use-module (engine node) + #:use-module (oop goops) + #:export ( + target + view-matrix + projection-matrix + framebuffer + + + camera + area + + + cameras + views + + + origin + position + rotation + scale + z + render-position + local-matrix + world-matrix + dirty-matrix? + set-origin + move + move-to + teleport + rotate + rotate-to + zoom + zoom-to + + + texture + offset + + + atlas + animations + frame-duration + current-animation + start-time + change-animation + + + region + color + +