diff --git a/HGR.xcodeproj/project.pbxproj b/HGR.xcodeproj/project.pbxproj index f305882..adf4c4f 100644 --- a/HGR.xcodeproj/project.pbxproj +++ b/HGR.xcodeproj/project.pbxproj @@ -11,6 +11,7 @@ 707005BF1D3EC7FD00623A10 /* hgrtest.s */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.asm; path = hgrtest.s; sourceTree = ""; }; 707005C01D3FD65900623A10 /* hgrtable.s */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = hgrtable.s; sourceTree = ""; }; 7090ABA91D4012A600F02EAA /* spritedata.s */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = spritedata.s; sourceTree = ""; }; + 7090ABAA1D407B8100F02EAA /* spritegen.s */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.asm; path = spritegen.s; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXGroup section */ @@ -20,6 +21,7 @@ 707005BE1D3EC75F00623A10 /* Makefile */, 707005BF1D3EC7FD00623A10 /* hgrtest.s */, 7090ABA91D4012A600F02EAA /* spritedata.s */, + 7090ABAA1D407B8100F02EAA /* spritegen.s */, 707005C01D3FD65900623A10 /* hgrtable.s */, ); sourceTree = ""; diff --git a/box.png b/box.png index 12a156e..cdbaa4d 100644 Binary files a/box.png and b/box.png differ diff --git a/hgrtest.dsk b/hgrtest.dsk index 3d0877d..6e6c1fa 100644 Binary files a/hgrtest.dsk and b/hgrtest.dsk differ diff --git a/hgrtest.s b/hgrtest.s index cc9e65c..ebeb2fb 100644 --- a/hgrtest.s +++ b/hgrtest.s @@ -84,47 +84,47 @@ loop: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - BLIT 20,80,SPRITE0 + BLIT 20,80,BOX0 WAIT BLIT 20,80,BLACK - BLIT 20,80,SPRITE1 - BLIT 21,80,SPRITE2 + BLIT 20,80,BOX1 + BLIT 21,80,BOX2 WAIT BLIT 20,80,BLACK BLIT 21,80,BLACK - BLIT 20,80,SPRITE3 - BLIT 21,80,SPRITE4 + BLIT 20,80,BOX3 + BLIT 21,80,BOX4 WAIT BLIT 20,80,BLACK BLIT 21,80,BLACK - BLIT 20,80,SPRITE5 - BLIT 21,80,SPRITE6 + BLIT 20,80,BOX5 + BLIT 21,80,BOX6 WAIT BLIT 20,80,BLACK BLIT 21,80,BLACK - BLIT 21,80,SPRITE7 - BLIT 22,80,SPRITE8 + BLIT 21,80,BOX7 + BLIT 22,80,BOX8 WAIT BLIT 21,80,BLACK BLIT 22,80,BLACK - BLIT 21,80,SPRITE9 - BLIT 22,80,SPRITE10 + BLIT 21,80,BOX9 + BLIT 22,80,BOX10 WAIT BLIT 21,80,BLACK BLIT 22,80,BLACK - BLIT 21,80,SPRITE11 - BLIT 22,80,SPRITE12 + BLIT 21,80,BOX11 + BLIT 22,80,BOX12 WAIT BLIT 21,80,BLACK BLIT 22,80,BLACK - BLIT 22,80,SPRITE0 + BLIT 22,80,BOX0 WAIT BLIT 22,80,BLACK @@ -222,6 +222,7 @@ venetianFill_inner: .include "hgrtable.s" .include "spritedata.s" +.include "spritegen.s" ; Suppress some linker warnings - Must be the last thing in the file diff --git a/spritegen.s b/spritegen.s new file mode 100644 index 0000000..cac9602 --- /dev/null +++ b/spritegen.s @@ -0,0 +1,143 @@ +BOX0: + .byte %01010101 + .byte %01010001 + .byte %01000101 + .byte %01010001 + .byte %01000101 + .byte %01010001 + .byte %01000101 + .byte %01010101 + + +BOX1: + .byte %01010100 + .byte %01000100 + .byte %00010100 + .byte %01000100 + .byte %00010100 + .byte %01000100 + .byte %00010100 + .byte %01010100 + + +BOX2: + .byte %00000010 + .byte %00000010 + .byte %00000010 + .byte %00000010 + .byte %00000010 + .byte %00000010 + .byte %00000010 + .byte %00000010 + + +BOX3: + .byte %01010000 + .byte %00010000 + .byte %01010000 + .byte %00010000 + .byte %01010000 + .byte %00010000 + .byte %01010000 + .byte %01010000 + + +BOX4: + .byte %00001010 + .byte %00001010 + .byte %00001000 + .byte %00001010 + .byte %00001000 + .byte %00001010 + .byte %00001000 + .byte %00001010 + + +BOX5: + .byte %01000000 + .byte %01000000 + .byte %01000000 + .byte %01000000 + .byte %01000000 + .byte %01000000 + .byte %01000000 + .byte %01000000 + + +BOX6: + .byte %00101010 + .byte %00101000 + .byte %00100010 + .byte %00101000 + .byte %00100010 + .byte %00101000 + .byte %00100010 + .byte %00101010 + + +BOX7: + .byte %00101010 + .byte %00100010 + .byte %00001010 + .byte %00100010 + .byte %00001010 + .byte %00100010 + .byte %00001010 + .byte %00101010 + + +BOX8: + .byte %00000001 + .byte %00000001 + .byte %00000001 + .byte %00000001 + .byte %00000001 + .byte %00000001 + .byte %00000001 + .byte %00000001 + + +BOX9: + .byte %00101000 + .byte %00001000 + .byte %00101000 + .byte %00001000 + .byte %00101000 + .byte %00001000 + .byte %00101000 + .byte %00101000 + + +BOX10: + .byte %00000101 + .byte %00000101 + .byte %00000100 + .byte %00000101 + .byte %00000100 + .byte %00000101 + .byte %00000100 + .byte %00000101 + + +BOX11: + .byte %00100000 + .byte %00100000 + .byte %00100000 + .byte %00100000 + .byte %00100000 + .byte %00100000 + .byte %00100000 + .byte %00100000 + + +BOX12: + .byte %00010101 + .byte %00010100 + .byte %00010001 + .byte %00010100 + .byte %00010001 + .byte %00010100 + .byte %00010001 + .byte %00010101 + +