设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1528|回复: 5
打印 上一主题 下一主题

[讨论] 谁有这个东西呢?

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
114 小时
注册时间
2013-5-21
帖子
106
跳转到指定楼层
1
发表于 2013-5-25 12:46:41 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
http://rpg.blue/forum.php?mod=viewthread&tid=293855这个帖子,下载地址已经失效了,现在要去那里下载啊?

Lv2.观梦者

故九江太守

梦石
0
星屑
568
在线时间
2161 小时
注册时间
2012-12-5
帖子
4463
2
发表于 2013-5-25 12:51:30 | 只看该作者
本帖最后由 你最珍贵 于 2013-5-25 12:52 编辑

我有,但是不记得丢哪里去了……

但这又脚本
  1. ALLMAP = 1 #记录已开启地图的变量的ID。
  2. FR  = 20 #聚焦半径,当交叉点的坐标离地图目标距离在20个像素以内时,会自动移动靠近。
  3. module SATEMAP
  4.   #定义目标地图,举例:
  5.   #TAGMAP[1] = [400,139,14,4,8]
  6.   #1表示地图ID,400和139表示点在大地图上的坐标,14和4表示场所移动后的坐标。8是朝向。
  7.   #也就是说,当横轴与纵轴的交叉点坐标为400,139时,玩家按下确定键,角色就会面朝上移动到
  8.   #1号地图坐标为14,4的地点。
  9.   TAGMAP = []
  10.   TAGMAP[0] = [0,0,0,0,0,0]
  11.   TAGMAP[1] = [0,0,0,0,0,0]
  12.   TAGMAP[2] = [97,149,1,7,6,2]#森林,面朝右
  13.   TAGMAP[3] = [319,270,1,22,6,3]#山村,面朝右
  14.   TAGMAP[4] = [209,97,5,28,8,4]#沉默,面朝上
  15.   TAGMAP[5] = [565,328,10,1,2,5]#悬崖,面朝下
  16.   TAGMAP[6] = [505,84,1,9,6,6]#极北,面朝右
  17.   TAGMAP[7] = [395,136,1,9,6,7]#体内,面朝右
  18.   TAGMAP[8] = [477,206,20,30,8,8]#海港,面朝上
  19.   TAGMAP[9] = [453,341,11,32,8,9]#深渊,面朝上
  20. end
  21. #==============================================================================
  22. # ■ Scene_Satellite
  23. #------------------------------------------------------------------------------
  24. #  处理卫星地图画面
  25. #==============================================================================
  26. class Scene_Satellite
  27.   #--------------------------------------------------------------------------
  28.   # ● 初始化对像
  29.   #--------------------------------------------------------------------------
  30.   def initialize
  31.     @allmap_id = $game_variables[ALLMAP]
  32.     @focus = 0
  33.     @map_id = $game_map.map_id
  34.    
  35.     [url=home.php?mod=space&uid=36110]@Wait[/url] = 0
  36.     @scroll_time = 8
  37.     @m_real   = [nil,nil]
  38.     @m_target = [nil,nil]
  39.     @m_gap    = [nil,nil]
  40.     @tgm = SATEMAP::TAGMAP.dup
  41.     while @tgm[0][5] == 0
  42.       @tgm.shift
  43.     end
  44.     @index = @tgm.index(SATEMAP::TAGMAP[@map_id])
  45.   end
  46.   #--------------------------------------------------------------------------
  47.   # ● 主处理
  48.   #--------------------------------------------------------------------------
  49.   def main
  50.     # 创建背景
  51.     @back = Sprite.new
  52.     @back.bitmap = Bitmap.new("Graphics/Systems/back")
  53.     # 创建X轴
  54.     @mm_x = Sprite.new
  55.     @mm_x.bitmap = Bitmap.new("Graphics/Systems/mm_x")
  56.     @mm_x.y = SATEMAP::TAGMAP[@map_id][1]
  57.     # 创建Y轴
  58.     @mm_y = Sprite.new
  59.     @mm_y.bitmap = Bitmap.new("Graphics/Systems/mm_y")
  60.     @mm_y.x = SATEMAP::TAGMAP[@map_id][0]
  61.     # 创建地点缩略图
  62.     @mm_icon = Sprite.new
  63.     @mm_icon.bitmap = Bitmap.new("Graphics/Systems/Icon/"+@map_id.to_s)
  64.     @mm_icon.x = 15
  65.     @mm_icon.y = 232

  66.     # 创建地名
  67.     @mm_name = Sprite.new
  68.     @mm_name.bitmap = Bitmap.new("Graphics/Systems/Name/"+@map_id.to_s)
  69.     @mm_name.x = 60
  70.     @mm_name.y = 380
  71.      # 执行过度
  72.     Graphics.transition(30, "Graphics/Transitions/019-Whorl01" )
  73.     # 主循环
  74.     loop do
  75.       # 刷新游戏画面
  76.       Graphics.update
  77.       # 刷新输入信息
  78.       Input.update
  79.       # 刷新画面
  80.       update
  81.       # 如果画面切换就中断循环
  82.       if $scene != self
  83.         break
  84.       end
  85.     end
  86.     # 装备过渡
  87.     Graphics.freeze
  88.     # 释放窗口
  89.     @back.dispose
  90.     @mm_x.dispose
  91.     @mm_y.dispose
  92.     @mm_name.dispose
  93.     @mm_icon.dispose
  94.   end
  95.   
  96.   def auto_scroll
  97.     for i in 0..1
  98.       @m_real[i] = ([url=home.php?mod=space&uid=36110]@Wait[/url] > 1)?(@m_target[i] - @m_gap[i] * ([url=home.php?mod=space&uid=36110]@Wait[/url] ** 2) / (@scroll_time ** 2)):@m_target[i]
  99.     end
  100.     @mm_y.x,@mm_x.y = @m_real[0],@m_real[1]
  101.     @wait -= 1
  102.   end
  103.   #--------------------------------------------------------------------------
  104.   # ● 刷新画面
  105.   #--------------------------------------------------------------------------
  106.   def update
  107.     if @wait > 0
  108.       auto_scroll
  109.       return
  110.     end
  111.    
  112.     if @map_id != @tgm[@index][5]
  113.      @map_id = @tgm[@index][5]
  114.     @mm_icon.bitmap = Bitmap.new("Graphics/Systems/Icon/"+@map_id.to_s)
  115.     @mm_name.bitmap = Bitmap.new("Graphics/Systems/Name/"+@map_id.to_s)
  116.     end
  117.   #  disjudge
  118.     # 按下 X 键的情况下
  119.     if Input.trigger?(Input::B)
  120.       # 演奏取消 SE
  121.      $game_system.se_play($data_system.cancel_se)
  122.      $scene = Scene_Map.new
  123.       return
  124.     end
  125. #========================================================
  126.     if Input.press?(Input::LEFT)
  127.      old = @tgm[@index]
  128.      @tgm.sort!{|a,b| a[0] - b[0]}
  129.      @index = @tgm.index(old)
  130.      @wait = @scroll_time
  131.      @m_real[0],@m_real[1] = @tgm[@index][0],@tgm[@index][1]
  132.      if @index == 0
  133.       x,y = @tgm[@tgm.size - 1][0],@tgm[@tgm.size - 1][1]
  134.       @index = @tgm.size - 1
  135.     else
  136.       x,y = @tgm[@index - 1][0],@tgm[@index - 1][1]
  137.       @index = @index - 1
  138.     end
  139.      
  140.     @m_target = [x,y]
  141.     for i in 0..1
  142.       @m_gap[i] = @m_target[i] - @m_real[i]
  143.     end
  144.       
  145.   end
  146. #========================================================
  147.     if Input.press?(Input::RIGHT)
  148.      old = @tgm[@index]
  149.      @tgm.sort!{|a,b| a[0] - b[0]}
  150.      @index = @tgm.index(old)
  151.      @wait = @scroll_time
  152.      @m_real[0],@m_real[1] = @tgm[@index][0],@tgm[@index][1]
  153.      if @index == @tgm.size - 1
  154.       x,y = @tgm[0][0],@tgm[0][1]
  155.       @index = 0
  156.     else
  157.       x,y = @tgm[@index + 1][0],@tgm[@index + 1][1]
  158.       @index = @index + 1
  159.     end
  160.      
  161.     @m_target = [x,y]
  162.     for i in 0..1
  163.       @m_gap[i] = @m_target[i] - @m_real[i]
  164.     end

  165.   end
  166. #========================================================

  167. #========================================================
  168.     if Input.press?(Input::UP)
  169.      old = @tgm[@index]
  170.      @tgm.sort!{|a,b| a[1] - b[1]}
  171.      @index = @tgm.index(old)
  172.      @wait = @scroll_time
  173.      @m_real[0],@m_real[1] = @tgm[@index][0],@tgm[@index][1]
  174.      if @index == 0
  175.       x,y = @tgm[@tgm.size - 1][0],@tgm[@tgm.size - 1][1]
  176.       @index = @tgm.size - 1
  177.     else
  178.       x,y = @tgm[@index - 1][0],@tgm[@index - 1][1]
  179.       @index = @index - 1
  180.     end
  181.      
  182.     @m_target = [x,y]
  183.     for i in 0..1
  184.       @m_gap[i] = @m_target[i] - @m_real[i]
  185.     end
  186.       
  187.   end
  188. #========================================================
  189.     if Input.press?(Input::DOWN)
  190.      old = @tgm[@index]
  191.      @tgm.sort!{|a,b| a[1] - b[1]}
  192.      @index = @tgm.index(old)
  193.      @wait = @scroll_time
  194.      @m_real[0],@m_real[1] = @tgm[@index][0],@tgm[@index][1]
  195.      if @index == @tgm.size - 1
  196.       x,y = @tgm[0][0],@tgm[0][1]
  197.       @index = 0
  198.     else
  199.       x,y = @tgm[@index + 1][0],@tgm[@index + 1][1]
  200.       @index = @index + 1
  201.     end
  202.      
  203.     @m_target = [x,y]
  204.     for i in 0..1
  205.       @m_gap[i] = @m_target[i] - @m_real[i]
  206.     end

  207.   end
  208. #========================================================   
  209.    
  210.     if Input.trigger?(Input::C)
  211.     #  if @tag_lock
  212.       $game_system.se_play($data_system.decision_se)
  213.       $game_screen.start_tone_change(Tone.new(-255,-255,-255,0), 0)
  214.       $scene = Scene_Map.new
  215.       $game_temp.player_transferring = true
  216.       $game_temp.player_new_map_id = @map_id
  217.       $game_temp.player_new_x=SATEMAP::TAGMAP[@map_id][2]
  218.       $game_temp.player_new_y=SATEMAP::TAGMAP[@map_id][3]
  219.       $game_temp.player_new_direction = SATEMAP::TAGMAP[@map_id][4]  
  220.       $game_screen.start_tone_change(Tone.new(0,0,0,0), 10)

  221.   end
  222.   
  223.   end

  224. end
复制代码
回复 支持 反对

使用道具 举报

Lv2.观梦者 (暗夜天使)

万兽

梦石
0
星屑
597
在线时间
2271 小时
注册时间
2006-11-4
帖子
4868

贵宾

3
发表于 2013-5-25 12:56:43 | 只看该作者
地址已更正,俺以后再也不用迅雷快传了……
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
239
在线时间
2399 小时
注册时间
2008-4-11
帖子
12326

贵宾第6届短篇游戏比赛季军

4
发表于 2013-5-25 13:46:19 手机端发表。 | 只看该作者
迅雷快传超级垃圾,没有之一
超过续期时间就把你文件删除
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
114 小时
注册时间
2013-5-21
帖子
106
5
 楼主| 发表于 2013-5-25 22:26:11 | 只看该作者
弗雷德 发表于 2013-5-25 12:56
地址已更正,俺以后再也不用迅雷快传了……

谢谢作者啦
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
114 小时
注册时间
2013-5-21
帖子
106
6
 楼主| 发表于 2013-5-25 22:49:53 | 只看该作者
对了,这个文件要怎么呼出地图的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-28 21:31

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表