# ============================================================================= =begin 脚本参考:TheoAllen - 画面震动™的艺术 Lanza Schneider - VA画面震动强化 BY “骨独”1265 =end # ============================================================================= # 设定 : # ============================================================================= $SHAKE_POWER = 1.1#震动强度设置1,不能填0。 $VIEW_SHAKE = 6#手动设置震动类型,不能填0。 $PICFOLLOW_SCREEN_TYPE = true#图片跟随震动设置 $RANDOM_SCREEN_SHAKE_X = 0 $RANDOM_SCREEN_SHAKE_Y = 0 $SHAKE_SCREEN_VALUE = 1#震动强度设置2,不能填0。 class Spriteset_Map #-------------------------------------------------------------------------- # ● 更新地图震动 #-------------------------------------------------------------------------- alias update_viewports_new update_viewports def update_viewports update_viewports_new case $VIEW_SHAKE when 4#纵向震动 @viewport1.oy = 0 @viewport1.ox = $game_map.screen.shake when 5#横向震动 @viewport1.ox = 0 @viewport1.oy = $game_map.screen.shake when 6#随机震动 $RANDOM_SCREEN_SHAKE_X = (rand($SHAKE_POWER).to_f != 0 ? $game_map.screen.shake : - $game_map.screen.shake)#震动值转换为浮点值 $RANDOM_SCREEN_SHAKE_Y = (rand($SHAKE_POWER).to_f != 0 ? $game_map.screen.shake.abs : - $game_map.screen.shake.abs )#取绝对值 @viewport1.ox = $RANDOM_SCREEN_SHAKE_X @viewport1.oy = $RANDOM_SCREEN_SHAKE_Y end end end class Game_Interpreter #-------------------------------------------------------------------------- # ● 画面默认震动效果设置 #-------------------------------------------------------------------------- def command_225 screen.start_shake(@params[0]/2, @params[1]*$SHAKE_SCREEN_VALUE, @params[2]) wait(@params[4]) if @params[6] end end class Sprite_Picture < Sprite #-------------------------------------------------------------------------- # ● 震动图片 #-------------------------------------------------------------------------- def update_origin if @picture.origin == 0 self.ox = 0 self.oy = 0 else self.ox = bitmap.width / 2 self.oy = bitmap.height / 2 end if $PICFOLLOW_SCREEN_TYPE case $VIEW_SHAKE when 4#纵向震动 self.oy += $game_map.screen.shake when 5#横向震动 self.ox += $game_map.screen.shake when 6#随机震动 self.ox += $RANDOM_SCREEN_SHAKE_X self.oy += $RANDOM_SCREEN_SHAKE_Y end end end end
#encoding:utf-8 #============================================================================== # ■ 画面震动加强 V1.1 # 未经授权,禁止私自使用! #------------------------------------------------------------------------------ # V1.0 在原版基础上增加新功能 # V1.1 修复部分BUG # # 使用方法: # screen_shake(power,speed,type,duration,wait_end,follow) # # 参数解释: # power:强度,大于0的整数 # speed:速度,大于0的整数 # type:类型,1:左右震动,2:上下震动,3.随机震动 # duration:持续时间,单位:帧 # wait_end:等待至震动结束,值为true或false # follow:使画面上的图片也跟随震动,值为true或false # # 使用例: # screen_shake(10,5,3,300,true,true) # 强度10,速度5,随机震动,持续时间300秒,等待至震动结束,图片跟随震动 # # by:樱井咲夜 #============================================================================== $SHAKE_TYPE = 1 $FOLLOW_TYPE = false $RANDOM_SHAKE_OX = 0 $RANDOM_SHAKE_OY = 0 class Spriteset_Map #-------------------------------------------------------------------------- # ● 更新地图震动 #-------------------------------------------------------------------------- alias update_viewports_new update_viewports def update_viewports update_viewports_new case $SHAKE_TYPE when 1 @viewport1.ox = $game_map.screen.shake @viewport1.oy = 0 when 2 @viewport1.ox = 0 @viewport1.oy = $game_map.screen.shake when 3 $RANDOM_SHAKE_OX = (rand(2).to_i != 0 ? $game_map.screen.shake : - $game_map.screen.shake) $RANDOM_SHAKE_OY = (rand(2).to_i != 0 ? $game_map.screen.shake.abs : - $game_map.screen.shake.abs ) @viewport1.ox = $RANDOM_SHAKE_OX @viewport1.oy = $RANDOM_SHAKE_OY end end end class Sprite_Picture < Sprite #-------------------------------------------------------------------------- # ● 更新原点 #-------------------------------------------------------------------------- def update_origin if @picture.origin == 0 self.ox = 0 self.oy = 0 else self.ox = bitmap.width / 2 self.oy = bitmap.height / 2 end if $FOLLOW_TYPE case $SHAKE_TYPE when 1 self.ox += $game_map.screen.shake when 2 self.oy += $game_map.screen.shake when 3 self.ox += $RANDOM_SHAKE_OX self.oy += $RANDOM_SHAKE_OY end end end end class Game_Interpreter #-------------------------------------------------------------------------- # ● 画面震动 #-------------------------------------------------------------------------- def command_225 $SHAKE_TYPE = 3 $FOLLOW_TYPE = true screen.start_shake(@params[0]/2, @params[1], @params[2]) wait(@params[2]) if @params[3] end #-------------------------------------------------------------------------- # ● 画面震动(新) #-------------------------------------------------------------------------- def screen_shake(power,speed,type,duration,wait_end,follow) $SHAKE_TYPE = type $FOLLOW_TYPE = follow screen.start_shake(power, speed, duration) wait(duration) if wait_end end end
抄袭者声称灵感来源
https://rpg.blue/thread-406010-1-1.html
https://github.com/theoallen/RGS ... Free/Screenshake.rb
完全不一致
走出300加 发表于 2021-6-9 00:54
路过关注,看下版务怎么处理
个人觉得楼主的这段代码并不是很独特,你要说别人抄袭也可以,但如果这种程度 ...
alexncf125 发表于 2021-6-9 04:40
所以那位有把游戏拿去卖钱(商用)么??
“骨独”1265 发表于 2021-6-9 11:24
野生吧都能追到p1论坛里面属实nb,
这里我实话实说,野生吧的风气也已经几乎算是完了,
半夜凌晨两点封禁帖 ...
吾乃逗哔 发表于 2021-6-9 11:47
发了这么多条是不是觉得自己这一堆文字看起来很有道理 所以我就想请教一下你这一堆字里面有什么能说明你 ...
“骨独”1265 发表于 2021-6-9 11:24
野生吧都能追到p1论坛里面属实nb,
这里我实话实说,野生吧的风气也已经几乎算是完了,
半夜凌晨两点封禁帖 ...
“骨独”1265 发表于 2021-6-9 11:52
要引战的话我不奉陪,我也没心情没时间,你们自己乐呵乐呵就好了,野生吧的风气我让别人看到就达到目的了 ...
吾乃逗哔 发表于 2021-6-9 11:58
我是看骨独大大没拿出能证明自己根本没侵权脚本的证据才好意提醒的呢 怎么成了引战捏 ...
“骨独”1265 发表于 2021-6-9 12:06
大不了不做了呗,我舒服对面也舒服不是吗?我费力不讨好干嘛呢?
劝退一群新人作者就好了,毕竟没人想为 ...
“骨独”1265 发表于 2021-6-9 11:24
野生吧都能追到p1论坛里面属实nb,
这里我实话实说,野生吧的风气也已经几乎算是完了,
半夜凌晨两点封禁帖 ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |