rlm@488: (ns com.aurellem.run.image rlm@486: (:use (com.aurellem.gb saves gb-driver util constants rlm@486: items vbm characters money rlm@486: rlm-assembly)) rlm@486: (:use (com.aurellem.run util title save-corruption rlm@486: bootstrap-0 bootstrap-1)) rlm@486: (:require clojure.string) rlm@486: (:import [com.aurellem.gb.gb_driver SaveState]) rlm@486: (:import java.io.File)) rlm@486: rlm@486: ;; want to display an image onto the screen. rlm@486: ;; probably will be the six ponies, possibly with scrolling. rlm@486: rlm@486: ;; probably don't need hi-color mode since the images shuld be rlm@486: ;; simple. rlm@486: rlm@486: ;; use background tiles? they provide greater color depth than rlm@486: ;; sprites, and can still be scrolled, so why not? rlm@486: rlm@490: ;; could also use sprites to get 3 more colors per tile for a total of rlm@490: ;; 7 colors per tile, although not for all tiles... rlm@486: rlm@490: rlm@490: rlm@490: ;; want a function to rlm@490: rlm@490: ;; 1. read an image rlm@490: ;; 2. split into a grid of 8x8 pixels rlm@490: ;; 3. convert all RGB colors to gb-RGB colors rlm@490: ;; 4. determine efficient color palletes for the image rlm@490: ;; 5. output efficient assembly code to draw the image to the gb rlm@490: ;; screen. rlm@490: rlm@490: rlm@490: rlm@490: rlm@490: rlm@490: rlm@490: rlm@490: rlm@490: rlm@490: rlm@490: rlm@490: rlm@490: rlm@490: rlm@490: