Project1

标题: 白云飘飘 [打印本页]

作者: sdbgejsb    时间: 2008-11-9 23:17
标题: 白云飘飘

  1. class Cloud
  2.   def ready
  3.     $p1xx = 384
  4.     $p2xx = 380
  5.     $p3xx = 383
  6.     $p4xx = 480
  7.     $p5xx = 480
  8.     $p1s = 1
  9.     $p2s = 4
  10.     $p3s = 6
  11.     $p4s = 9
  12.     $p5s = 15
  13.     $p1x = 0
  14.     $p2x = $p1xx
  15.     $p3x = -$p1xx
  16.     $p4x = 0
  17.     $p5x = $p1xx
  18.     $p6x = -$p1xx
  19.     $p7x = 0
  20.     $p8x = $p1xx
  21.     $p9x = -$p1xx
  22.     $p10x = 0
  23.     $p11x = $p1xx
  24.     $p13x = 0
  25.     $p14x = $p1xx
  26.   end
  27.   def start
  28.     $p1x += $p1s
  29.     $p2x += $p1s
  30.     $p3x += $p1s
  31.     $p4x += $p2s
  32.     $p5x += $p2s
  33.     $p6x += $p2s
  34.     $p7x += $p3s
  35.     $p8x += $p3s
  36.     $p9x += $p3s
  37.     $p10x += $p4s
  38.     $p11x += $p4s
  39.     $p13x += $p5s
  40.     $p14x += $p5s
  41.     $game_screen.pictures[1].show("c1.png", 0, $p1x, 0, 100, 100, 255, 0)
  42.     $game_screen.pictures[2].show("c1.png", 0, $p2x, 0, 100, 100, 255, 0)
  43.     $game_screen.pictures[3].show("c1.png", 0, $p3x, 0, 100, 100, 255, 0)
  44.     $game_screen.pictures[4].show("c2.png", 0, $p4x, 27, 100, 100, 255, 0)
  45.     $game_screen.pictures[5].show("c2.png", 0, $p5x, 27, 100, 100, 255, 0)
  46.     $game_screen.pictures[6].show("c2.png", 0, $p6x, 27, 100, 100, 255, 0)
  47.     $game_screen.pictures[7].show("c3.png", 0, $p7x, 72, 100, 100, 255, 0)
  48.     $game_screen.pictures[8].show("c3.png", 0, $p8x, 72, 100, 100, 255, 0)
  49.     $game_screen.pictures[9].show("c3.png", 0, $p9x, 72, 100, 100, 255, 0)
  50.     $game_screen.pictures[10].show("c4.png", 0, $p10x, 97, 100, 100, 255, 0)
  51.     $game_screen.pictures[11].show("c4.png", 0, $p11x, 97, 100, 100, 255, 0)
  52.     $game_screen.pictures[13].show("c5.png", 0, $p13x, 112, 100, 100, 255, 0)
  53.     $game_screen.pictures[14].show("c5.png", 0, $p14x, 112, 100, 100, 255, 0)
  54.     #$game_screen.pictures[].show(name,原点,x,y,放大x,放大y,透明度,合成)
  55.     if $p1x >= 640
  56.       $p1x = 640-3 * $p1xx + 1
  57.     end
  58.     if $p2x >= 640
  59.       $p2x = 640-3 * $p1xx + 1
  60.     end
  61.     if $p3x >= 640
  62.       $p3x = 640-3 * $p1xx + 1
  63.     end
  64.     if $p4x >= 640
  65.       $p4x = 640-3 * $p2xx + 1
  66.     end
  67.     if $p5x >= 640
  68.       $p5x = 640-3 * $p2xx + 1
  69.     end
  70.     if $p6x >= 640
  71.       $p6x = 640-3 * $p2xx + 1
  72.     end
  73.     if $p7x >= 640
  74.       $p7x = 640-3 * $p3xx + 1
  75.     end
  76.     if $p8x >= 640
  77.       $p8x = 640-3 * $p3xx + 1
  78.     end
  79.     if $p9x >= 640
  80.       $p9x = 640-3 * $p3xx + 1
  81.     end
  82.     if $p10x >= 640
  83.       $p10x = 640-3 * $p4xx + 1
  84.     end
  85.     if $p11x >= 640
  86.       $p11x = 640-3 * $p4xx + 1
  87.     end
  88.     if $p13x >= 640
  89.       $p13x = 640-3 * $p5xx + 1
  90.     end
  91.     if $p14x >= 640
  92.       $p14x = 640-3 * $p5xx + 1
  93.     end
  94.   end
  95. end
复制代码

可以实现5层白云在天上飞的效果
代码效率极其低下,因为数组我还不太明白
本人的第一个脚本................
用法:找阿尔西丝先ready再点start
下载范例:http://rpg.blue/upload_program/d/sdbgejsb_test15_106672353.rar
截图:
啊,其实只是模仿一个东西,不过代码是原创,云彩图是引用
作者: sdbgejsb    时间: 2008-11-10 00:33

不但没人看
还没人鼓励一下
P.S以自身利益为主,我希望能成立个"鼓励新手基金会"
作者: Defanive    时间: 2008-11-10 00:42
提示: 作者被禁止或删除 内容自动屏蔽
作者: 越前リョーマ    时间: 2008-11-10 00:43
可惜没什么用……
作者: 光的圆周率    时间: 2008-11-10 01:30
汗...还以为是白云的阴影在地上飘啊飘(被 Pia)
作者: 一路一风尘    时间: 2008-11-10 05:30
提示: 作者被禁止或删除 内容自动屏蔽
作者: sdbgejsb    时间: 2008-11-15 21:35
以下引用一路一风尘于2008-11-9 21:30:05的发言:
<br><script language="javascript">
<!--
strCont="用plane做效率应会非常高,那种尺寸的5张图片,不会掉FPS。";
document.write(ubb.spbShowTopic(strCont,1));
//-->
</script>用plane做效率应会非常高,那种尺寸的5张图片,不会掉FPS。

话说是十三张
作者: orochi2k    时间: 2008-11-17 04:43
全局变量不会被回收,导致内存容易被吃空-_-0
作者: 精灵使者    时间: 2008-11-17 23:32
以下引用sdbgejsb于2008-11-9 15:17:49的发言:
可以实现5层白云在天上飞的效果
代码效率极其低下,因为数组我还不太明白
本人的第一个脚本................
用法:找阿尔西丝先ready再点start
下载范例:http://rpg.blue/upload_program/d/sdbgejsb_test15_106672353.rar
截图:
啊,其实只是模仿一个东西,不过代码是原创,云彩图是引用


[本贴由作者于 2008-11-9 15:19:51 最后编辑]

这个不错这个不错……
标题画面使用了这个会很爽……
收下了
作者: sdbgejsb    时间: 2008-11-22 21:07
以下引用精灵使者于2008-11-17 15:32:16的发言:
<br><script language="javascript">
<!--
strCont="[quote]以下引用sdbgejsb于2008-11-9 15:17:49的发言:\r\n可以实现5层白云在天上飞的效果\r\n代码效率极其低下,因为数组我还不太明白\r\n本人的第一个脚本................\r\n用法:找阿尔西丝先ready再点start\r\n下载范例:http://rpg.blue/upload_program/d/sdbgejsb_test15_106672353.rar\r\n截图:\r\n啊,其实只是模仿一个东西,不过代码是原创,云彩图是引用 \r\n\r\n\r\n[本贴由作者于 2008-11-9 15:19:51 最后编辑]\r\n
\r\n这个不错这个不错……\r\n标题画面使用了这个会很爽……\r\n收下了";
document.write(ubb.spbShowTopic(strCont,1));
//-->
居然能被高人认可...............
感动ing
</script><blockquote class="CodeBorder">以下引用sdbgejsb于2008-11-9 15:17:49的发言:<br>
可以实现5层白云在天上飞的效果<br>
代码效率极其低下,因为数组我还不太明白<br>
本人的第一个脚本................<br>
用法:找阿尔西丝先ready再点start<br>
下载范例:<a href="http://rpg.blue/upload_program/d/sdbgejsb_test15_106672353.rar" target="_blank">http://rpg.blue/upload_program/d/sdbgejsb_test15_106672353.rar</a><br>
截图:<br>
啊,其实只是模仿一个东西,不过代码是原创,云彩图是引用 <br>
<br>
<br>
[本贴由作者于 2008-11-9 15:19:51 最后编辑]<br>
</blockquote><br>
这个不错这个不错……<br>
标题画面使用了这个会很爽……<br>
收下了

[/quote]





欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1