config.def.h (3134B)
1 #ifndef CONFIG_H 2 #define CONFIG_H 3 4 #define PH_CONFIG_VERSION 17 5 6 #define PH_VIEW_W 320 7 #define PH_VIEW_H 240 8 #define PH_SCALE 3 9 #define PH_WINDOW_TITLE "phantasia" 10 #define PH_SAVE_PATH "phantasia.sav" 11 #define PH_SIMULATION_HZ 60 12 #define PH_MAX_CATCHUP_STEPS 4 13 #define PH_FRAME_DELAY_MS 16 14 #define PH_MUSIC_GAIN 0.24f 15 #define PH_EFFECT_GAIN 0.55f 16 #define PH_SPATIAL_SOUND_DISTANCE 160.0f 17 18 #define PH_ENTITY_BLOCK_RADIUS 10 19 #define PH_INTERACT_RADIUS 20.0f 20 #define PH_NOTICE_SECONDS 1.25f 21 #define PH_WORLD_STEP_MILLISECONDS 250 22 #define PH_WORLD_ANIMATION_PIXELS_PER_FRAME 8 23 #define PH_WORLD_ACTION_MILLISECONDS 500 24 #define PH_MOB_MEMORY_TURNS 4 25 #define PH_MOB_WANDER_PERCENT 60 26 #define PH_BATTLE_TRANSITION_SECONDS 0.55f 27 #define PH_BATTLE_ACTION_SECONDS 0.50f 28 #define PH_BATTLE_CTB_BASE 1000 29 #define PH_BATTLE_RESOLVE_PERCENT 50 30 #define PH_BATTLE_LUNGE_DISTANCE 20.0f 31 32 #define PH_HIT_CHANCE_MIN 5 33 #define PH_HIT_CHANCE_MAX 100 34 #define PH_ACCURACY_LUCK_DIVISOR 2 35 #define PH_DAMAGE_LUCK_DIVISOR 4 36 #define PH_PHYSICAL_DEFENSE_DIVISOR 2 37 #define PH_MAGIC_DEFENSE_DIVISOR 2 38 39 #define PH_RENDER_SMOKE_PATH "obj/render-smoke.bmp" 40 41 #define PH_CLEAR_COLOR 16, 18, 24, 255 42 #define PH_ITEM_COLOR 242, 214, 80, 255 43 #define PH_MONSTER_COLOR 168, 108, 224, 255 44 #define PH_NPC_COLOR 220, 180, 90, 255 45 #define PH_NOTICE_COLOR 20, 24, 34, 255 46 #define PH_NOTICE_TEXT_COLOR 232, 236, 244, 255 47 #define PH_MENU_COLOR 20, 24, 34, 255 48 #define PH_MENU_BORDER_COLOR 116, 126, 148, 255 49 #define PH_MENU_TEXT_COLOR 232, 236, 244, 255 50 #define PH_MENU_BONUS_COLOR 126, 220, 146, 255 51 #define PH_MENU_DISABLED_COLOR 104, 110, 124, 255 52 #define PH_DEBUG_BLOCK_COLOR 240, 92, 92, 255 53 #define PH_DEBUG_ACTOR_COLOR 100, 240, 140, 255 54 #define PH_DEBUG_TARGET_COLOR 100, 200, 255, 255 55 #define PH_DEBUG_BG_COLOR 12, 16, 24, 255 56 #define PH_DEBUG_TEXT_COLOR 240, 240, 240, 255 57 #define PH_BATTLE_BG_COLOR 44, 52, 68, 255 58 #define PH_BATTLE_GROUND_COLOR 72, 84, 82, 255 59 60 #if PH_USE_SDL 61 #define PH_KEY_DEBUG SDL_SCANCODE_F3 62 #define PH_KEY_LEFT_1 SDL_SCANCODE_LEFT 63 #define PH_KEY_LEFT_2 SDL_SCANCODE_A 64 #define PH_KEY_LEFT_3 SDL_SCANCODE_H 65 #define PH_KEY_RIGHT_1 SDL_SCANCODE_RIGHT 66 #define PH_KEY_RIGHT_2 SDL_SCANCODE_D 67 #define PH_KEY_RIGHT_3 SDL_SCANCODE_L 68 #define PH_KEY_UP_1 SDL_SCANCODE_UP 69 #define PH_KEY_UP_2 SDL_SCANCODE_W 70 #define PH_KEY_UP_3 SDL_SCANCODE_K 71 #define PH_KEY_DOWN_1 SDL_SCANCODE_DOWN 72 #define PH_KEY_DOWN_2 SDL_SCANCODE_S 73 #define PH_KEY_DOWN_3 SDL_SCANCODE_J 74 #define PH_KEY_INTERACT_1 SDL_SCANCODE_E 75 #define PH_KEY_INTERACT_2 SDL_SCANCODE_SPACE 76 #define PH_KEY_CHARACTER SDL_SCANCODE_C 77 #define PH_KEY_INVENTORY SDL_SCANCODE_I 78 #define PH_KEY_SPELLBOOK SDL_SCANCODE_O 79 #define PH_KEY_MENU_UP_1 SDL_SCANCODE_UP 80 #define PH_KEY_MENU_UP_2 SDL_SCANCODE_K 81 #define PH_KEY_MENU_DOWN_1 SDL_SCANCODE_DOWN 82 #define PH_KEY_MENU_DOWN_2 SDL_SCANCODE_J 83 #define PH_KEY_MENU_LEFT_1 SDL_SCANCODE_LEFT 84 #define PH_KEY_MENU_LEFT_2 SDL_SCANCODE_H 85 #define PH_KEY_MENU_RIGHT_1 SDL_SCANCODE_RIGHT 86 #define PH_KEY_MENU_RIGHT_2 SDL_SCANCODE_L 87 #define PH_KEY_MENU_ACCEPT SDL_SCANCODE_RETURN 88 #define PH_KEY_MENU_CANCEL SDL_SCANCODE_ESCAPE 89 #define PH_KEY_MENU_BACK SDL_SCANCODE_BACKSPACE 90 #endif 91 92 #endif