Added picture cards and improved the code quality

This commit is contained in:
2022-05-09 18:00:11 -07:00
parent 0530c60da8
commit 1babcd65bb
14 changed files with 849 additions and 554 deletions

View File

@@ -0,0 +1,41 @@
/**
* Copyright (c) 2022 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "spritecardscommon.h"
#define SPRITE_CARD_DIAMONDS_BIG_TOP_LEFT SPRITE_CARD_VRAM_START + 32
#define SPRITE_CARD_DIAMONDS_BIG_TOP_RIGHT SPRITE_CARD_DIAMONDS_BIG_TOP_LEFT + 1
#define SPRITE_CARD_DIAMONDS_BIG_BOTTOM_LEFT SPRITE_CARD_VRAM_START + 40
#define SPRITE_CARD_DIAMONDS_BIG_BOTTOM_RIGHT SPRITE_CARD_DIAMONDS_BIG_BOTTOM_LEFT + 1
#define SPRITE_CARD_DIAMONDS_MED_LEFT SPRITE_CARD_VRAM_START + 48
#define SPRITE_CARD_DIAMONDS_MED_RIGHT SPRITE_CARD_DIAMONDS_MED_LEFT + 1
#define SPRITE_CARD_DIAMONDS_EDGE_LEFT_LEFT SPRITE_CARD_VRAM_START + 56
#define SPRITE_CARD_DIAMONDS_EDGE_LEFT_RIGHT SPRITE_CARD_DIAMONDS_EDGE_LEFT_LEFT + 1
#define SPRITE_CARD_DIAMONDS_EDGE_RIGHT_LEFT SPRITE_CARD_VRAM_START + 64
#define SPRITE_CARD_DIAMONDS_EDGE_RIGHT_RIGHT SPRITE_CARD_DIAMONDS_EDGE_RIGHT_LEFT + 1
#define SPRITE_CARD_DIAMONDS_MIDDLE_TOP_LEFT SPRITE_CARD_VRAM_START + 72
#define SPRITE_CARD_DIAMONDS_MIDDLE_TOP_RIGHT SPRITE_CARD_DIAMONDS_MIDDLE_TOP_LEFT + 1
#define SPRITE_CARD_DIAMONDS_MIDDLE_BOTTOM_LEFT SPRITE_CARD_VRAM_START + 80
#define SPRITE_CARD_DIAMONDS_MIDDLE_BOTTOM_RIGHT SPRITE_CARD_DIAMONDS_MIDDLE_BOTTOM_LEFT + 1
extern const uint8_t SPRITE_DIAMONDS_ACE[];
extern const uint8_t SPRITE_DIAMONDS_TWO[];
extern const uint8_t SPRITE_DIAMONDS_THREE[];
extern const uint8_t SPRITE_DIAMONDS_FOUR[];
extern const uint8_t SPRITE_DIAMONDS_FIVE[];
extern const uint8_t SPRITE_DIAMONDS_SIX[];
extern const uint8_t SPRITE_DIAMONDS_SEVEN[];
extern const uint8_t SPRITE_DIAMONDS_EIGHT[];
extern const uint8_t SPRITE_DIAMONDS_NINE[];
extern const uint8_t SPRITE_DIAMONDS_TEN[];
extern const uint8_t SPRITE_DIAMONDS_JACK[];
extern const uint8_t SPRITE_DIAMONDS_QUEEN[];
extern const uint8_t SPRITE_DIAMONDS_KING[];