Skip to content

Commit

Permalink
Add game logo to level, some colour adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
turesheim committed Jan 28, 2024
1 parent 6f40df4 commit 70d0e01
Show file tree
Hide file tree
Showing 7 changed files with 532 additions and 273 deletions.
Binary file modified docs/ball.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
285 changes: 272 additions & 13 deletions itema.asm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ initialize:
//LIBUTILITY_DISABLEBASICANDKERNAL() // Disable BASIC and Kernal ROMs
jsr $e544 // Clear screen

lda #$06 // Set the background color for the game area
lda #$00 // Set the background color for the game area
sta $d021
lda #$00 // Set the background color for the border
sta $d020
Expand All @@ -44,9 +44,9 @@ initialize:

lda #%00111110 // Specify multicolor for the ball sprites
sta $d01c
lda #$01 // Color white
lda #$0f // Color light gray
sta $d025 // Set shared multicolor #1
lda #$00 // Color black
lda #$0b // Color dark gray
sta $d026 // Set shared multicolor #2

lda #$00 // Disable xpand-y
Expand All @@ -62,7 +62,7 @@ initialize:

lda #$0a // Set sprite #1 individual color
sta $d027
lda #$0c // Set sprite #2 individual color
lda #$0c // Set sprite #2 individual color (medium gray)
sta $d028

lda #paddleSpriteData/64
Expand All @@ -76,17 +76,14 @@ initialize:
sta $07fd // Sprite #5
*/

// Itema Logo Sprites //
// #############################################################################
// Itema Logo Sprites
lda #itemaLogoSwoosh/64
sta $07fe // Sprite #6
lda #itemaLogoBall/64
sta $07ff // Sprite #7

/*
Draw Itema Logo
*/

// Set MSB for sprite 7 and 7
// Set MSB for sprite 6 and 7
lda $d010
ora #%11000000
sta $d010
Expand All @@ -99,11 +96,12 @@ initialize:
sta $d00d
sta $d00f

// Set colors
// Set colors for the sprites in the Itema logo
lda #$0f
sta $d02d
lda #$0a
sta $d02e
// #############################################################################


/*
Expand Down Expand Up @@ -226,9 +224,9 @@ irq_1:
animation_loop:
// Print the LSB of the X-position of sprite 1 to the screen
LIBSCREEN_DEBUG8BIT_VVA(28,5,SpriteMem+9)
//LIBSCREEN_DEBUG8BIT_VVA(28,8,SpriteMem+9)
// Print the LSB of the Y-position of sprite 1 to the screen
LIBSCREEN_DEBUG8BIT_VVA(32,5,SpriteMem+11)
//LIBSCREEN_DEBUG8BIT_VVA(32,8,SpriteMem+11)

clc
lda SpriteIndex
Expand Down Expand Up @@ -410,3 +408,264 @@ itemaLogoBall:
.byte $00, $00, $00
.byte $00, $00, $00
.byte $00, $00, $00


/*
24, 24, 24,255,255, 24, 24, 24,
60, 36, 36,126, 98, 98, 98, 98,
124, 68, 68,126, 98, 98, 98,126,
126, 66, 64, 96, 96, 98, 98,126,
126, 66, 66, 98, 98, 98, 98,126,
124, 64, 64,120, 96, 96, 96,124,
124, 64, 64,120, 96, 96, 96, 96,
126, 66, 64,102, 98, 98, 98,126,
66, 66, 66,126, 98, 98, 98, 98,
16, 16, 16, 24, 24, 24, 24, 24,
4, 4, 4, 6, 6, 70, 70,126,
68, 68, 68,126, 98, 98, 98, 98,
64, 64, 64, 96, 96, 96, 96,124,
127, 73, 73, 73,105,105,105,105,
126, 66, 66, 98, 98, 98, 98, 98,
126, 70, 66, 66, 66, 66, 66,126,
124, 68, 68,124, 96, 96, 96, 96,
126, 66, 66, 66, 66, 66, 78,126,
124, 68, 68,126, 98, 98, 98, 98,
126, 66, 64,126, 6, 70, 70,126,
126, 16, 16, 24, 24, 24, 24, 24,
66, 66, 66, 98, 98, 98, 98,126,
98, 98, 98, 98,102, 36, 36, 60,
73, 73, 73,105,105,105,105,127,
68, 68, 68, 62, 98, 98, 98, 98,
66, 66, 66,126, 24, 24, 24, 24,
126, 66, 2,126, 96, 96, 98,126,
126, 70, 70, 74, 82, 98, 66,126,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
255,255, 3, 3, 3, 3, 3, 3,
192,192,192,192,192,192,255,255,
3, 3, 3, 3, 3, 3,255,255,
192,192,192,192,192,192,192,192,
3, 3, 3, 3, 3, 3, 3, 3,
255,255, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,255,255,
255,255,192,192,192,192,192,192,
170, 85,170, 85,170, 85,170, 85,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0,126, 66, 66, 70, 70, 70,126,
0, 8, 8, 8, 24, 24, 24, 24,
0,126, 66, 2,126, 96, 96,126,
0,126, 66, 2, 62, 6, 70,126,
0, 96, 96, 98, 66,126, 6, 6,
0,126, 64, 64,126, 6, 70,126,
0,126, 66, 64,126, 70, 70,126,
0,124, 4, 4, 12, 12, 12, 12,
0, 60, 36, 36,126, 70, 70,126,
0,126, 66, 66,126, 6, 6, 6,
0, 0, 24, 0, 0, 24, 0, 0,
0, 0, 24, 0, 0, 24, 8, 16,
0, 16, 48, 96, 96, 48, 16, 0,
0, 0, 0,126, 0,126, 0, 0,
0, 16, 24, 12, 12, 24, 16, 0,
60,102, 6, 12, 24, 0, 24, 0,
0, 48, 48, 48, 63, 62, 48, 48,
0, 0, 0, 0, 62,127, 99, 99,
0, 0, 0, 0, 94,255, 97, 97,
0, 0, 0, 0,120,252,134,134,
0, 0, 0, 0, 60,126, 38, 6,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
48, 48, 48, 50, 63, 30, 0, 0,
126, 96, 96,115,127, 62, 0, 0,
97, 97, 97, 97, 97, 97, 0, 0,
134,134,134,134,134,134, 0, 0,
30, 54,102,102,127, 58, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0,126,127, 99, 99, 99,127,124,
0,103,111,108, 12,108,108,108,
0,199,239,108,108, 12, 12, 12,
0,199,239,108,108,108,108,108,
0,204,236,108,108, 12, 12, 15,
0,111,111,108,108,108,108,239,
0,239,239, 1, 1, 1, 1,193,
0,247,247,135,143,143,143,143,
0,192,192,128,128,128, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
126,102,102, 99, 99, 99, 99, 0,
108,108,108,108,108,111,103, 0,
12, 12, 12,108,108,239,199, 0,
108,108,108,108,108,239,199, 0,
15, 12, 12,108,108,236,204, 0,
239,108,108,108,108,111,111, 0,
193, 1, 1, 1, 1,225,225, 0,
142,142,156,156,156,152,152, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 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