(make-instance 'animation
:images-2x (mapcar
#'(lambda (x)
- (sdl:convert-surface :surface (sdl-image:load-image
- (car x)
- :image-type :BMP :alpha 1 )))
+ (sdl:convert-surface :surface (sdl:load-image
+ (car x) :alpha 1 )))
image-list)
:images-1x (mapcar
#'(lambda (x)
- (sdl:convert-surface :surface (sdl-image:load-image
+ (sdl:convert-surface :surface (sdl:load-image
(cadr x)
- :image-type :BMP :alpha 1 )))
+ :alpha 1 )))
image-list)
:images-.5x (mapcar
#'(lambda (x)
- (sdl:convert-surface :surface (sdl-image:load-image
+ (sdl:convert-surface :surface (sdl:load-image
(caddr x)
- :image-type :BMP :alpha 1 )))
+ :alpha 1 )))
image-list)
:images-.25x (mapcar
#'(lambda (x)
- (sdl:convert-surface :surface (sdl-image:load-image
+ (sdl:convert-surface :surface (sdl:load-image
(cadddr x)
- :image-type :BMP :alpha 1 )))
+ :alpha 1 )))
image-list)
:sprite-delay frame-skip))
\ No newline at end of file
-(in-package :uxul-world)\r
+;;; -*- lisp -*-\r
\r
+;;; Copyright 2010 Christoph Senjak\r
\r
-;; this should go into functions.lisp\r
+(in-package :uxul-world)\r
\r
(defun intersection-interval (a b c d)\r
"We assume a<b and c<d. Compute the intersection-interval between\r
(b (as-alpha-value\r
(elt cpix 0) (elt background-rgb 0) alpha))\r
)\r
- (format out "~d ~d ~d~%" r g b))))))))
\ No newline at end of file
+ (format out "~d ~d ~d~%" r g b))))))))\r
:license "Copyright 2009 Christoph Senjak."
:depends-on (#:lispbuilder-sdl #:closer-mop
#:cl-fad
- #:lispbuilder-sdl-image)
+ #:lispbuilder-sdl)
:components ((:file "uxul-world")
(:file "constants")
(:file "macros")