module Spellstorm

Defined in:

spellstorm/cards.cr
spellstorm/cards/basic.cr
spellstorm/cards/testset.cr
spellstorm/deck.cr
spellstorm/game.cr
spellstorm/mechanics.cr
spellstorm/table.cr
spellstorm/utils.cr
spellstorm/version.cr
spellstorm/visual_cards.cr

Constant Summary

ANIM_SPEED = 20
CARD_COORDS = {CardLocation::Deck => {pos: vec(10, Y0 - 10), delta: vec(0, 2), angle0: 0.0, dangle: 0.0}, CardLocation::Hand => {pos: vec(CARD_WIDTH + 35, Y0 - 10), delta: vec(CARD_WIDTH + 5, 0), angle0: 0.0, dangle: 0.0}, CardLocation::FieldSource => {pos: vec(10, (Y0 - CARD_HEIGHT) - 10), delta: vec(CARD_WIDTH + 5, 0), angle0: -20.0, dangle: 5.0}, CardLocation::FieldShield => {pos: vec(10, (Y0 - CARD_HEIGHT) - 100), delta: vec(CARD_WIDTH + 5, 0), angle0: -20.0, dangle: 5.0}, CardLocation::FieldDanger => {pos: vec(10, (Y0 - CARD_HEIGHT) - 40), delta: vec(CARD_WIDTH + 5, 0), angle0: 0.0, dangle: 0.0}, CardLocation::FieldOther => {pos: vec(10, (Y0 - CARD_HEIGHT) - 50), delta: vec(CARD_WIDTH + 5, 0), angle0: -20.0, dangle: 5.0}, CardLocation::Drop => {pos: vec(Engine::SCREENX + (CARD_WIDTH * 2), Y0), delta: vec(0, 0), angle0: 90.0, dangle: 5.0}}
CARD_HEIGHT = 160
CARD_WIDTH = 140
DEBUG_MODE = false

DEBUG_MODE = CardLocation::FieldDanger

DECK_SIZE = 40
GAME_SIZE = DECK_SIZE * 2
INFO_SCALE = 1.6
INFO_X = Engine::SCREENX - (CARD_WIDTH * INFO_SCALE)
INFO_Y = (Engine::SCREENY / 2) - ((CARD_HEIGHT * INFO_SCALE) / 2)
MAX_HP = 5
MAX_OWN_MANA = 10
N_CARD_LOCATIONS = 7
N_ELEMENTS = 5
TOP_HIDING = 100
VERSION = "0.1.0"
Y0 = Engine::SCREENY - CARD_HEIGHT