//#resource "vcs-ca65.h" import "vcslib.ecs" import "sprites.ecs" import "score.ecs" import "sound.ecs" import "velocity.ecs" import "kernel1.ecs" import "random.ecs" demo Main using FrameLoop using Kernel2Digit, BCDMath using StandardKernel, Kernel1Sprite using KernelMissile, KernelCollide using SetXPos, SetHorizPos entity Blank [Bitmap,Colormap] decode vcs_sprite --- ........ 00 --- end entity Explode1 [Bitmap,Colormap] decode vcs_sprite --- x......x 08 .x....x. 0a ..x..x.. 0c ........ 0e xx....xx 0e ........ 0e ..x..x.. 0c .x....x. 0a x......x 08 --- end entity Explode2 [Bitmap,Colormap] decode vcs_sprite --- ..x..x.. 08 .x....x. 0a x......x 0c ...xx... 0e ..x..x.. 0e ...xx... 0e x......x 0c .x....x. 0a ..x..x.. 08 --- end entity Explode3 [Bitmap,Colormap] decode vcs_sprite --- x..xx..x 08 ..x..x.. 0a .x....x. 0c ..x..x.. 0e x......x 0e ..x..x.. 0e .x....x. 0c ..x..x.. 0a x..xx..x 08 --- end entity Weird [Bitmap,Colormap] decode vcs_sprite --- .x...... 12 .xx..... 14 .xxx.... 16 .x.xx... 18 .xx.xx.. 1a .xxx.xx. 1c .x.x.x.x 1e .x.x.x.x 18 --- end entity Cool [Bitmap,Colormap] decode vcs_sprite --- ...xx... 48 ..xxxx.. 4a .xxxxxx. 4c xxxxxxxx 4e x..xx..x 4e x.xxx.xx 4e xxxxxxxx 4e xxxxxxxx 4e xxxxxxxx 4e xx....xx 4e xxxxxxxx 4e .xxxxxx. 4c ..xxxx.. 4a --- end entity PlayerBC [Bitmap,Colormap] decode vcs_sprite --- ..xxxx.. 1a ...xx... 1c ...xx... 2e ..xxxx.. 3c .xxxxxx. 4e xx.xx.xx 5e xxx..xxx 6e xx.xx.xx 7e xxxxxxxx 8e .xxxxxx. 9e --- end entity [BCDScore2] init scorecolor = $4e end /* entity [BCDScore2] init scorecolor = $ce end */ // TODO entity [KernelSection,BGColor,Sprite,HasBitmap,HasXpos,HasColormap,HasYpos,TinyVelX] const lines = 30 const bgcolor = $72 var plyrflags = 0 var xpos = 120 var ypos = 22 var bitmap = #Cool var colormap = #Cool var xvel = 11 end entity [KernelSection,BGColor,Sprite,HasBitmap,HasXpos,HasColormap,HasYpos,TinyVelX] const lines = 35 const bgcolor = $74 var plyrflags = 3 var xpos = 60 var ypos = 10 var bitmap = #Weird var colormap = #Weird var xvel = 5 end entity [KernelSection,BGColor,Sprite,HasBitmap,HasXpos,HasColormap,HasYpos,TinyVelX] const lines = 40 const bgcolor = $76 var plyrflags = 0 var xpos = 20 var ypos = 15 var bitmap = #Weird var colormap = #Cool var xvel = 9 end entity Player1 [KernelSection,BGColor,Sprite,HasBitmap,HasColormap,HasXpos,HasYpos,Player] const lines = 45 const bgcolor = $78 var plyrflags = 0 var xpos = 70 var ypos = 35 var bitmap = #PlayerBC var colormap = #PlayerBC end entity PlayerMissile [HasXpos,HasYpos,Missile,FGColor] var xpos = 75 var ypos = 100 const fgcolor = $fe const index = 3 end system ShootingStuff // TODO on kernelsetup do foreach [Missile,FGColor] --- lda {{ 0 and bitmap < #Blank then bitmap-- --- lda {{