//#resource "vcs-ca65.h" import "vcslib.ecs" import "sprites.ecs" system Kernel2Sprite locals 13 on preframe do with [KernelSection] --- ; TODOO: can store KLINES in memory? .define KLINES {{Bitmap:bitmapdata}},x sbc #0 sta {{$2}},y ; get bitmap height lda {{Colormap:colormapdata}},x sbc #0 sta {{$6}},y ; save ypos ldx {{$12}} ; restore X lda {{ L0 H0 L1 H1 lda {{$1}} ldy {{$2}} sty {{$1}} sta {{$2}} lda {{$5}} ldy {{$6}} sty {{$5}} sta {{$6}} --- on preframe do if [KernelSection,BGColor] --- lda {{