기타
2010.01.25 17:00

게임 화면에 좌표 띄우기

조회 수 1769 추천 수 1 댓글 5
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
Extra Form
출처 xpcustom

#==============================================================================
# 걽 CUSTOM
#==============================================================================

module PLAN_SCREEN_XY
  VISIBLE    = true            # 궞궻긚긏깏긵긣귩럊뾭궥귡궔궵궎궔
                                # (true:궥귡, false:궢궶궋)
  WIN_X = 32                    # 긂귻깛긤긂궻 X 띆뷭
  WIN_Y = 32                    # 긂귻깛긤긂궻 Y 띆뷭
  FONT_SIZE  = 11              # 긲긅깛긣긖귽긛
  WIN_WIDTH  = 120            # 긂귻깛긤긂궻븴
  WIN_OPACITY = 128            # 긂귻깛긤긂궻벁뼻뱗
end


if PLAN_SCREEN_XY::VISIBLE

#==============================================================================
# 걾 Scene_Map
#============================================================================

class Scene_Map
  #--------------------------------------------------------------------------
  # 걶 긽귽깛룉뿚
  #--------------------------------------------------------------------------
  alias plan_screen_xy_main main
  def main
    # 긂귻깛긤긂귩띿맟
    @screen_xy_window = Window_Screen_XY.new
    # 뙰궸뽣궥
    plan_screen_xy_main
    # 긂귻깛긤긂귩됶뺳
    @screen_xy_window.dispose
  end
  #--------------------------------------------------------------------------
  # 걶 긲깒??뛛륷
  #--------------------------------------------------------------------------
  alias plan_screen_xy_update update
  def update
    @screen_xy_window.update
    # 뙰궸뽣궥
    plan_screen_xy_update
  end
end


#==============================================================================
# 걾 Window_Screen_XY
#==============================================================================

class Window_Screen_XY < Window_Base
  #--------------------------------------------------------------------------
  # 걶 긆긳긙긃긏긣룊딖돸
  #--------------------------------------------------------------------------
  def initialize
    one_line = ((PLAN_SCREEN_XY::FONT_SIZE * 100 / 22) * 32) / 100
    super(PLAN_SCREEN_XY::WIN_X, PLAN_SCREEN_XY::WIN_Y, PLAN_SCREEN_XY::WIN_WIDTH, 32+one_line*2)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.size = PLAN_SCREEN_XY::FONT_SIZE
    self.opacity = PLAN_SCREEN_XY::WIN_OPACITY
    @old_x = $game_player.x
    @old_y = $game_player.y
    refresh
  end
  #--------------------------------------------------------------------------
  # 걶 깏긲깒긞긘깄
  #--------------------------------------------------------------------------
  def refresh
    one_line = ((PLAN_SCREEN_XY::FONT_SIZE * 100 / 22) * 32) / 100
    self.contents.clear
    self.contents.draw_text(4, 0, self.contents.width-8, one_line, "X:", 0)
    self.contents.draw_text(4, 0, self.contents.width-8, one_line, $game_player.x.to_s, 2)
    self.contents.draw_text(4, one_line, self.contents.width-8, one_line, "Y:", 0)
    self.contents.draw_text(4, one_line, self.contents.width-8, one_line, $game_player.y.to_s, 2)
  end
  #--------------------------------------------------------------------------
  # 걶 긲깒??뛛륷
  #--------------------------------------------------------------------------
  def update
    if @old_x != $game_player.x or @old_y != $game_player.y
      refresh
      @old_x = $game_player.x
      @old_y = $game_player.y
    end
  end
end

end

 

==========

 

게임 화면 내에 좌표를 설정하는 스크립트입니다

 

게임 내에 디테일하게 쓰일거같진 않고 그냥 픽쳐를 넣을때 좌표 참고나

 

아니면 이를 이용해서 또 색다른 퍼즐을 만들수도 ㅇㅂㅇ

 

예제와 활용사진을 첨부했으니 참고하시기 바랍니다 ㅇㅂㅇ


  1. 일본어 스크립트를 번역하기 좋은 번역사이트 두곳입니다

    Date2010.01.09 Category공지사항 Byruby Views22082 Votes0
    read more
  2. 스크립트 게시판 관리자' ruby ' 입니다

    Date2010.01.09 Category공지사항 Byruby Views20725 Votes0
    read more
  3. 일본 스크립트/소스 공유 포럼

    Date2010.01.05 Category공지사항 By니오티 Views22256 Votes0
    read more
  4. 게이지바 스크립트!! 최고!!

    Date2011.08.08 Category기타 By코아 코스튬 Views4246 Votes0
    Read More
  5. 이름입력 스크립트

    Date2011.07.16 Category기타 By닉네임이없습니다 Views2210 Votes0
    Read More
  6. 중복일것 같은데;; [한글 이름 입력]

    Date2011.01.05 Category기타 By꼬마쟁이 Views4643 Votes0
    Read More
  7. 상태창표시 스크립투 Ver 6.0

    Date2010.09.21 Category기타 By코아 코스튬 Views2412 Votes2
    Read More
  8. 3d 스크립트 (적용시 바로 실행가능&암호걸림)

    Date2010.06.04 Category기타 Bykjs Views4073 Votes0
    Read More
  9. Staff Roll

    Date2010.03.04 Category기타 By허걱 Views7511 Votes0
    Read More
  10. 게임 화면에 좌표 띄우기

    Date2010.01.25 Category기타 Bywindshy Views1769 Votes1
    Read More
  11. 디버깅 화면 재 구성

    Date2010.01.05 Category기타 By루시아스 Views1834 Votes0
    Read More
  12. 일어 스크립트 한글화 방법 안내

    Date2007.02.01 Category기타 By니오티 Views2572 Votes4
    Read More
  13. 어떤님이 부탁하신 온라인 같은 hud입니다

    Date2007.10.19 Category기타 By루비 Views2594 Votes2
    Read More
  14. 더욱더 간편하게! 에메스엔의 귀차니즘 탈출!

    Date2007.02.20 Category기타 By샤이닉 Views2357 Votes2
    Read More
  15. 몬스터 도감

    Date2007.02.01 Category기타 By니오티 Views2871 Votes3
    Read More
  16. 돈맡기기 시스템

    Date2007.01.31 Category기타 By히카루 Views3335 Votes2
    Read More
  17. 한글입력기

    Date2007.01.31 Category기타 By히카루 Views14281 Votes1
    Read More
  18. 레벨과 능력치 9999까지 만들기

    Date2007.01.31 Category기타 Bywindshy Views2184 Votes0
    Read More
  19. 아이템 보관소 스크립트 (KGC펌)

    Date2005.12.11 Category기타 Byケロロ 님의 ツク-ル Views2673 Votes5
    Read More
Board Pagination Prev 1 Next
/ 1

Copyright ⓒ Nioting All Rights Reserved. (since 1999)    개인정보
        

Fatal error: Cannot access property sessionController::$lifetime in /web/old/xe/modules/session/session.controller.php on line 45