예제 #1
0
static ALLEGRO_COLOR
c_palette (ALLEGRO_COLOR c)
{
  if (color_eq (c, V_MOUSE_FUR_COLOR)) return C_MOUSE_FUR_COLOR;
  if (color_eq (c, V_MOUSE_SKIN_COLOR_01)) return C_MOUSE_SKIN_COLOR_01;
  if (color_eq (c, V_MOUSE_SKIN_COLOR_02)) return C_MOUSE_SKIN_COLOR_02;
  if (color_eq (c, V_MOUSE_SKIN_COLOR_03)) return C_MOUSE_SKIN_COLOR_03;
  return c;
}
예제 #2
0
파일: video.c 프로젝트: oitofelix/mininim
ALLEGRO_COLOR
hgc_palette (ALLEGRO_COLOR c)
{
  if (color_eq (c, al_map_rgb (85, 255, 255)))
    return al_map_rgb (170, 170, 170);
  if (color_eq (c, al_map_rgb (255, 85, 255)))
    return al_map_rgb (85, 85, 85);
  return c;
}
예제 #3
0
파일: guard.c 프로젝트: allisson128/mininim
static ALLEGRO_COLOR
v_shadow_life_palette (ALLEGRO_COLOR c)
{
    unsigned char r, g, b, a;
    al_unmap_rgba (c, &r, &g, &b, &a);
    if (a == 0) return c;

    if (color_eq (c, GUARD_LIFE_COLOR_01)) return V_KID_SHADOW_CLOTHES_COLOR_01;
    if (color_eq (c, GUARD_LIFE_COLOR_02)) return V_KID_SHADOW_CLOTHES_COLOR_02;

    return c;
}
예제 #4
0
파일: box.c 프로젝트: allisson128/mininim
static ALLEGRO_COLOR
c_box_palette (ALLEGRO_COLOR c)
{
  if (color_eq (c, V_BOX_COLOR)) return C_BOX_COLOR;
  else return c;
}
예제 #5
0
파일: guard.c 프로젝트: allisson128/mininim
static ALLEGRO_COLOR
c_red_palette (ALLEGRO_COLOR c)
{
    /* honor transparency */
    unsigned char r, g, b, a;
    al_unmap_rgba (c, &r, &g, &b, &a);
    if (a == 0) return c;

    /* KID */
    if (color_eq (c, C_KID_CLOTHES_COLOR_01)) return C_RED_GUARD_PANTS_COLOR_01;
    if (color_eq (c, C_KID_CLOTHES_COLOR_02)) return C_KID_SHADOW_CLOTHES_COLOR_02;
    if (color_eq (c, C_KID_SKIN_COLOR)) return C_RED_GUARD_SKIN_COLOR_01;
    if (color_eq (c, C_KID_EYE_COLOR)) return C_RED_GUARD_EYES_COLOR;

    /* SKELETON */
    if (color_eq (c, SKELETON_COLOR)) return C_RED_GUARD_PANTS_COLOR_01;

    /* GUARD, FAT_GUARD, VIZIER */
    if (color_eq (c, GUARD_SHOES_COLOR)) return C_RED_GUARD_SHOES_COLOR;
    if (color_eq (c, GUARD_PANTS_COLOR_01)) return C_RED_GUARD_PANTS_COLOR_01;
    if (color_eq (c, GUARD_PANTS_COLOR_02)) return C_RED_GUARD_PANTS_COLOR_02;
    if (color_eq (c, GUARD_CAPE_COLOR_01)) return C_RED_GUARD_CAPE_COLOR_01;
    if (color_eq (c, GUARD_CAPE_COLOR_02)) return C_RED_GUARD_CAPE_COLOR_02;
    if (color_eq (c, GUARD_CAPE_COLOR_03)) return C_RED_GUARD_CAPE_COLOR_03;
    if (color_eq (c, GUARD_BELT_COLOR)) return C_RED_GUARD_BELT_COLOR;
    if (color_eq (c, GUARD_HAT_COLOR_01)) return C_RED_GUARD_HAT_COLOR_01;
    if (color_eq (c, GUARD_HAT_COLOR_02)) return C_RED_GUARD_HAT_COLOR_02;
    if (color_eq (c, GUARD_SKIN_COLOR_01)) return C_RED_GUARD_SKIN_COLOR_01;
    if (color_eq (c, GUARD_SKIN_COLOR_02)) return C_RED_GUARD_SKIN_COLOR_02;
    if (color_eq (c, GUARD_EYES_COLOR)) return C_RED_GUARD_EYES_COLOR;
    if (color_eq (c, GUARD_CLOSED_EYES_COLOR)) return C_RED_GUARD_CLOSED_EYES_COLOR;
    if (color_eq (c, GUARD_BLOOD_COLOR)) return C_RED_GUARD_BLOOD_COLOR;
    if (color_eq (c, GUARD_SPLASH_COLOR)) return C_RED_GUARD_SPLASH_COLOR;
    return c;
}
예제 #6
0
ALLEGRO_COLOR
c_blood_palette (ALLEGRO_COLOR c)
{
  if (color_eq (c, WHITE)) return C_BLOOD_COLOR;
  else return c;
}
예제 #7
0
ALLEGRO_COLOR
e_blood_palette (ALLEGRO_COLOR c)
{
  if (color_eq (c, WHITE)) return E_BLOOD_COLOR_01;
  else return c;
}