XP 스크립트

class Color
  White = Color.new(255, 255, 255)
  Black = Color.new(0, 0, 0)
  Blue = Color.new(128, 128, 255, 255)

  Red = Color.new(255,0,0)
  Green = Color.new(0,255,0)
  Hot_Orange = Color.new(255,90,0,255)
  Orange = Color.new(255,162,0,255)
  Yellow = Color.new(255,222,0,255)
  Lime = Color.new(198,255,0,255)
  Light_Green = Color.new(100,255,0,255)
  Cool_Blue = Color.new(0,255,255,255)
  Sky_Blue = Color.new(0,168,255,255)
  Purple = Color.new(174,0,255,255)
  Pink = Color.new(255,0,255,255)
  Hot_Pink = Color.new(255,0,114,255)
 
  Pastel_Red = Color.new(235,145,145,255)
  Pastel_Orange = Color.new(235,208,145,255)
  Pastel_Yellow = Color.new(235,232,145,255)
  Pastel_Lime_Green = Color.new(204,235,145,255)
  Pastel_Green = Color.new(145,235,145,255)
  Pastel_Blue = Color.new(145,183,235,255)
  Pastel_Purple = Color.new(183,145,235,255)
  Pastel_Hot_Pink = Color.new(235,145,181,255)
 
  def Color.white
    return White.dup
  end
  def Color.black
    return Black.dup
  end
  def Color.blue
    return Blue.dup
  end
 
  def Color.red
    return Red.dup
  end
  def Color.green
    return Green.dup
  end
  def Color.hot_orange
    return Hot_Orange.dup
  end
  def Color.orange
    return Orange.dup
  end
  def Color.yellow
    return Yellow.dup
  end
  def Color.lime
    return Lime.dup
  end
  def Color.light_green
    return Light_Green.dup
  end
  def Color.cool_blue
    return Cool_Blue.dup
  end
  def Color.sky_blue
    return Sky_Blue.dup
  end
  def Color.purple
    return Purple.dup
  end
  def Color.pink
    return Pink.dup
  end
  def Color.hot_pink
    return Hot_Pink.dup
  end
 
  def Color.pastel_red
    return Pastel_Red.dup
  end
  def Color.pastel_orange
    return Pastel_Orange.dup
  end
  def Color.pastel_yellow
    return Pastel_Yellow.dup
  end
  def Color.pastel_lime_green
    return Pastel_Lime_Green.dup
  end
  def Color.pastel_green
    return Pastel_Green.dup
  end
  def Color.pastel_blue
    return Pastel_Blue.dup
  end
  def Color.pastel_purple
    return Pastel_Purple.dup
  end
  def Color.pastel_hot_pink
    return Pastel_Hot_Pink.dup
  end
end

칼라를 미리 만들어놔서

일일이 칼라를 만들지 않아도 된다는 점이 편합니다.

일일이 복제를 하기 때문에 편하게 쓰셔도 됩니다.

RPG::Cache랑 비슷한 역할을 하죠.

Comment '3'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6202
254 기타 액알 30 지존!! 2010.07.26 5099
253 기타 쓸만한스크립트61개포함 28 file 궭크이 2012.01.09 4298
252 기타 XP 각종 스크립트입니다. 36 file 쿠도신이치 2009.04.26 4272
251 기타 말풍선 스크립트. 62 file 『동그라미』♥ 2010.02.04 4254
250 기타 [게이지바]게이지바 스크립트 2.5 (실용적?) 17 file 코아 코스튬 2010.12.05 4219
249 기타 [Game_Actor] 게이지바 표시 스크립트 8 file - 하늘 - 2009.08.03 4174
248 기타 대화창에 얼굴그래픽 스크립트 25 file 백호 2009.02.21 4137
247 기타 캐릭터 소개 화면 22 file 독도2005 2008.10.05 4100
246 기타 8방향 마우스 스크립트 10 file 아방스 2009.02.28 4063
245 기타 몬스터 게이지바 턴알 22 file 키라링 2009.01.22 4016
244 기타 [자작]데미지표시 19 file JACKY 2012.02.15 3844
243 기타 3D스크립트 48 file ok하승헌 2010.02.18 3808
242 기타 [게이지바]HelloCoaVer4.0 업데이트 속도 변경 [오랜만의 업데이트] 30 file 코아 코스튬 2011.04.02 3791
241 기타 만화형태 말칸 스크립트 28 file 백호 2009.02.22 3706
240 기타 [신기술 체험] RPGXP 3D 9 file 백호 2009.02.22 3637
239 기타 3d 렌더링스크립트 어렵게 찾음 9 라구나 2011.03.05 3610
238 기타 FPLE 2 - First Person Labyrinth Explorer by MGC 1 Alkaid 2012.01.17 3415
237 기타 한글 입력 스크립트 입니다. (vx -> xp) 23 file 헤르코스 2009.04.18 3400
236 기타 레벨9999만들기스크립 23 해파리 2009.04.10 3344
235 기타 횡스크롤 스크립트 한국말 번역. 15 file 백호 2009.02.21 3315
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13