######################### #ÇÏ´ÃÀ»³¯¾Æ ################# ######################### #Æۿ°ÍÀÌ´Ù~ #¹ø¿ª:¿À´Ãµµ Áñ°Ì°Ô.. #============================================================================== # ¡à Ä¿½ºÅ͸¶ÀÌÁî Æ÷ÀÎÆ® #============================================================================== class XRXS50 # # Action-Maps ¸¦ °¡µ¿½ÃÅ°´Â ¸Ê IDÀÇ ¹è¿­ # ENABLE_FULL_ACTY_MAPS = [1, 2] # # ¡¸±â¿ï±â °­ÇÏ¡¹ # ENABLE_SLIDE_DESCENT = true # # ¹æÇâ Á¡ÇÁ(true=Áø½ÇÇÑ : ÇâÇÏ°í ÀÖÀ» ¹æÇâ¿¡ Á¡ÇÁ¡£ # false=Ʋ¸° : Å°°¡ ¹Ð¸®°í ÀÖÀ» ¹æÇâ¿¡ Á¡ÇÁ¡£) # JUMP_AS_KEY = false end #============================================================================== # ¡á Game_Player #============================================================================== class Game_Player < Game_Character #-------------------------------------------------------------------------- # ¡Û °ø°³ ÀνºÅϽº º¯¼ö #-------------------------------------------------------------------------- # ±âÁ¸ attr_writer :direction_fix attr_accessor :walk_anime # ½Å±Ô attr_accessor :now_jumps attr_writer :xrxs50_direction_sidefix #-------------------------------------------------------------------------- # ¡ÛÃÖ´ë Á¡ÇÁ ȸ¼ö #-------------------------------------------------------------------------- def max_jumps return 1 end #-------------------------------------------------------------------------- # ¡Ü ¿ÞÂÊÀ» ÇâÇÑ´Ù #-------------------------------------------------------------------------- alias xrxs50_turn_left turn_left def turn_left if @xrxs50_direction_sidefix @direction = 4 else xrxs50_turn_left end end #-------------------------------------------------------------------------- # ¡Ü ¿À¸¥ÂÊÀ» ÇâÇÑ´Ù #-------------------------------------------------------------------------- alias xrxs50_turn_right turn_right def turn_right if @xrxs50_direction_sidefix @direction = 6 else xrxs50_turn_right end end end #============================================================================== # ¡á Scene_Map #============================================================================== class Scene_Map #-------------------------------------------------------------------------- # ¡Ü ¸ÞÀΠó¸® #-------------------------------------------------------------------------- alias xrxs50_main main def main # üũ xrxs50_enable_check # ±Íȯ½ÃŲ´Ù xrxs50_main end #-------------------------------------------------------------------------- # ¡Ü ÇÁ·¹ÀÓ °»½Å #-------------------------------------------------------------------------- alias xrxs50_update update def update # ±Íȯ½ÃŲ´Ù xrxs50_update # ÇÁ·¹ÀÓ °»½Å (ÁÂÇ¥°è °»½Å) if @xrxs50_enable update_coordinates end end #-------------------------------------------------------------------------- # ¡Û ÇÁ·¹ÀÓ °»½Å (ÁÂÇ¥°è °»½Å) #-------------------------------------------------------------------------- def update_coordinates if $game_player.passable?($game_player.x,$game_player.y,2) unless $game_player.moving? if XRXS50::ENABLE_SLIDE_DESCENT and Input.press?(Input::RIGHT) and $game_player.passable?($game_player.x,$game_player.y+1,6) $game_player.move_lower_right elsif XRXS50::ENABLE_SLIDE_DESCENT and Input.press?(Input::LEFT) and $game_player.passable?($game_player.x,$game_player.y+1,4) $game_player.move_lower_left else $game_player.move_down end end else $game_player.move_down $game_player.walk_anime = true unless $game_player.walk_anime $game_player.now_jumps = 0 if Input.trigger?(Input::X) and $game_player.now_jumps < $game_player.max_jumps if XRXS50::JUMP_AS_KEY direction = $game_player.direction == 4 ? -1 : 1 else if Input.press?(Input::RIGHT) direction = 1 elsif Input.press?(Input::LEFT) direction = -1 else direction = 0 end end $game_player.jump(direction, -8) $game_player.now_jumps += 1 $game_player.walk_anime = false end end end #-------------------------------------------------------------------------- # ¡Ü Ç÷¹À̾îÀÇ Àå¼Ò À̵¿ #-------------------------------------------------------------------------- alias xrxs50_transfer_player transfer_player def transfer_player # ±Íȯ½ÃŲ´Ù xrxs50_transfer_player # üũ xrxs50_enable_check end #-------------------------------------------------------------------------- # ¡Û XRXS50 ÇÏÁö¸¸ °¡µ¿ÇÒ±î ÆÇÁ¤ #-------------------------------------------------------------------------- def xrxs50_enable_check if XRXS50::ENABLE_FULL_ACTY_MAPS.include?($game_map.map_id) $game_player.now_jumps = 0 if $game_player.now_jumps.nil? @xrxs50_enable = true $game_player.direction_fix = true $game_player.xrxs50_direction_sidefix = true else @xrxs50_enable = false $game_player.direction_fix = false $game_player.xrxs50_direction_sidefix = false end end end #Á¡ÇÁÅ° a