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

Project1

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

[已经过期] 怎么发布游戏才不会泄露代码

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
114 小时
注册时间
2012-4-25
帖子
163
跳转到指定楼层
1
发表于 2012-6-11 17:21:48 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
怎么发布游戏才不会泄露代码    就是当别人也装了工程但打不开我的文件只能玩

Lv3.寻梦者

虚空人形

梦石
0
星屑
4723
在线时间
2037 小时
注册时间
2011-8-11
帖子
3398

贵宾

2
发表于 2012-6-11 17:25:01 | 只看该作者
本帖最后由 hcm 于 2012-6-11 17:25 编辑

文件菜单——压缩游戏数据——生成加密档案打勾。
(有没有自己先熟悉一下软件啊)

未命名.png (28.93 KB, 下载次数: 0)

未命名.png
回复

使用道具 举报

Lv1.梦旅人

54酱是大笨蛋!

梦石
0
星屑
66
在线时间
1389 小时
注册时间
2011-2-23
帖子
5014
3
发表于 2012-6-11 17:50:00 | 只看该作者
hcm 发表于 2012-6-11 17:25
文件菜单——压缩游戏数据——生成加密档案打勾。
(有没有自己先熟悉一下软件啊) ...

我觉得LZ应该是不想加密游戏但又不想泄漏出脚本....
脚本加密软件:http://rpg.blue/forum.php?mod=viewthread&tid=165178
稍微有那么一点BUG..弹出啊加密错误啊大丈夫噶~
去你爹的现充.去你爹的异性恋.
回复

使用道具 举报

Lv2.观梦者

梦石
0
星屑
704
在线时间
792 小时
注册时间
2011-10-20
帖子
2394

开拓者

4
发表于 2012-6-11 19:09:27 | 只看该作者
可以把代码存在网络上然后提取啦啦啦
欢迎点此进入我的egames.wink.ws,有RMQQ堂等

[url=http://rpg.blue/thread-317273-1-1.html]短篇八-赶选

http://yun.baidu.com/share/link?shareid=2158225779&uk=169642147&third=0


历险ARPG赢回你的疆域新的战斗模式?…………点击这里:[宋乱贼狂 for QQ堂]
http://rpg.blue/group-368-1.html
programing ....?
[url=http://rpg.blue/thrd-234658-1-1.html]
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
157 小时
注册时间
2011-7-17
帖子
128
5
发表于 2012-6-13 18:01:22 | 只看该作者
记得好像有个【喵加密】
在那遥远的地方——有一只小猫
这里没有字→
相信我吧。
回复

使用道具 举报

Lv4.逐梦者

梦石
0
星屑
9280
在线时间
2504 小时
注册时间
2011-5-20
帖子
15389

开拓者

6
发表于 2012-6-13 18:24:12 | 只看该作者
竹轩轩 发表于 2012-6-13 18:01
记得好像有个【喵加密】

那东西会把自己也坑了···比如备份损坏要原版你就GAMEOVER了···


‘‘──chd114于2012-6-14 13:43补充以下内容:

[@]zhixin1997[/@]有一次我备份8个文件夹照样一次损坏了
’’

点评

你就不能自己提前备份么……  发表于 2012-6-13 22:09
[img]http://service.t.sina.com.cn/widget/qmd/5339802982/c02e16bd/7.png
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
52
在线时间
586 小时
注册时间
2012-5-31
帖子
768
7
发表于 2012-6-14 19:25:45 | 只看该作者
喵加密不能下载了
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
85 小时
注册时间
2012-4-25
帖子
192
8
发表于 2012-6-16 20:13:47 | 只看该作者
1L正解,加密文档就不会被破解,如果被破解就会自动破坏文档的吧。
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
205
在线时间
0 小时
注册时间
2012-1-22
帖子
1
9
发表于 2012-6-16 22:45:47 | 只看该作者
本帖最后由 hopeabc 于 2012-6-16 22:54 编辑

一般情况下,加密就可以了。
最严格的话,有现成的反破解脚本,
据说还可防止改Save文件(谁知道呢,我又不会改)
下面是脚本(分两个组)
  1. #==============================================================================
  2. # ☆★☆ Eval Checker ☆★☆
  3. #------------------------------------------------------------------------------
  4. # - FantasyDR
  5. #------------------------------------------------------------------------------
  6. # MSN: [email protected]
  7. #------------------------------------------------------------------------------
  8. # - 2006.7.18
  9. # 更新了脚本过滤不严格的漏洞。-.-|||
  10. # 感谢さくら的提醒。大家一起来完善吧~
  11. # - 2006.3.6
  12. # 第一版
  13. #------------------------------------------------------------------------------
  14. # 运行脚本事件之前检测是否含有恶意代码
  15. #==============================================================================

  16. #==============================================================================
  17. # ■ Eval Checker
  18. #------------------------------------------------------------------------------
  19. # 语法检测的类,使用HASH表来存检查结果
  20. #==============================================================================
  21. class Eval_Checker
  22.   attr_accessor :alarm # 出现错误是否报告
  23.   #--------------------------------------------------------------------------
  24.   # ● 初始化对像
  25.   #--------------------------------------------------------------------------
  26.   def initialize
  27.     @code_hash = {}
  28.     @alarm = true
  29.   end
  30.   #--------------------------------------------------------------------------
  31.   # ● 检测代码
  32.   #--------------------------------------------------------------------------
  33.   def test(code)
  34.     if !code.is_a?(String)
  35.       return true
  36.     elsif @code_hash[code] != nil
  37.       result = @code_hash[code]
  38.     else
  39.       result = true
  40.       # 禁止alias重命名
  41.       if code[/[\W]*alias[\W]/] != nil
  42.         result = false
  43.         # 禁止打印
  44.       elsif code[/[\W]*[pP][\W]/] != nil
  45.         result = false
  46.         # 禁止打印
  47.       elsif code[/[\W]*print[\W]/] != nil
  48.         result = false
  49.         # 禁止Marshal模块
  50.       elsif code[/[\W]*Marshal[\W]/] != nil
  51.         result = false
  52.         # 禁止save_data方法
  53.       elsif code[/[\W]*save_data[\W]/] != nil
  54.         result = false
  55.         # 禁止load_data方法
  56.       elsif code[/[\W]*load_data[\W]/] != nil
  57.         result = false
  58.         # 禁止load方法
  59.       elsif code[/[\W]*load[\W]/] != nil
  60.         result = false
  61.         # 禁止调用API
  62.       elsif code[/[\W]*Win32API[\W]/] != nil
  63.         result = false
  64.         # 禁止调用文件方法
  65.       elsif code[/[\W]*File[\W]/] != nil
  66.         result = false
  67.         # 禁止使用eval
  68.       elsif code[/[\W]*eval[\W]/] != nil
  69.         result = false
  70.       end
  71.       @code_hash[code] = result
  72.     end
  73.     if !result and @alarm
  74.       print("=====非法脚本=====\n",code)
  75.     end
  76.     return result
  77.   end
  78. end

  79. # 实例化一个全局Checker
  80. $FDR_EC = Eval_Checker.new

  81. #==============================================================================
  82. # ■ Game_Character
  83. #==============================================================================

  84. class Game_Character
  85.   alias :fdr_EC_Game_Character_move_type_custom :move_type_custom
  86.   #--------------------------------------------------------------------------
  87.   # ● 移动类型 : 自定义
  88.   #--------------------------------------------------------------------------
  89.   def move_type_custom
  90.     i = @move_route_index
  91.     while i < @move_route.list.size
  92.       command = @move_route.list[i]
  93.       # 脚本
  94.       if command.code == 45 and !$FDR_EC.test(command.parameters[0])
  95.         @move_route_index += 1
  96.         return
  97.       end
  98.       i += 1
  99.     end
  100.     return fdr_EC_Game_Character_move_type_custom
  101.   end
  102. end

  103. #==============================================================================
  104. # ■ Interpreter
  105. #==============================================================================

  106. class Interpreter
  107.   alias :fdr_EC_Interpreter_command_111 :command_111
  108.   alias :fdr_EC_Interpreter_command_355 :command_355
  109.   #--------------------------------------------------------------------------
  110.   # ● 条件分支
  111.   #--------------------------------------------------------------------------
  112.   def command_111
  113.     # 脚本
  114.     if @parameters[0] == 12 and !$FDR_EC.test(@parameters[1])
  115.       return command_skip
  116.     end
  117.     return fdr_EC_Interpreter_command_111
  118.   end

  119.   #--------------------------------------------------------------------------
  120.   # ● 脚本
  121.   #--------------------------------------------------------------------------
  122.   def command_355
  123.     i = @index
  124.     while i < @list.size
  125.       return true unless $FDR_EC.test(@list[i].parameters[0])
  126.       break unless @list[i].code == 655 or @list[i].code == 355
  127.       i += 1
  128.     end
  129.     return fdr_EC_Interpreter_command_355
  130.   end
  131. end

复制代码
第二脚本[如果有冲突,一般是其他更改Save界面的缘故,可以整合的]
记得改密匙就可以了(在第24行)
  1. #==============================================================================
  2. # ☆★☆ Custom Save☆★☆
  3. #------------------------------------------------------------------------------
  4. # - FantasyDR
  5. #------------------------------------------------------------------------------
  6. # MSN: [email][email protected][/email]
  7. #------------------------------------------------------------------------------
  8. # - 2006.7.18
  9. #------------------------------------------------------------------------------
  10. # 自定义存档数据排列顺序并校验存档
  11. #==============================================================================

  12. #==============================================================================
  13. # ■ Scene_File
  14. #------------------------------------------------------------------------------
  15. #  存档画面及读档画面的超级类。
  16. #==============================================================================

  17. class Scene_File
  18.   #--------------------------------------------------------------------------
  19.   # ● 存档密钥,请定义成自己的密钥
  20.   #   密钥不同的存档将无法被读取
  21.   #--------------------------------------------------------------------------
  22.   SAVE_KEY = 123456
  23.   #--------------------------------------------------------------------------
  24.   # ● 存档号码最大值
  25.   #   默认0~3共4个存档,如果需要大于4个存档,需要改动窗口类。
  26.   #   这里不提供大于4个存档的窗口排布,如果有需要请自己定义。
  27.   #--------------------------------------------------------------------------
  28.   SAVE_MAX = 3
  29.   #--------------------------------------------------------------------------
  30.   # ● 初始化对像
  31.   #   help_text : 帮助窗口显示的字符串
  32.   #--------------------------------------------------------------------------
  33.   def initialize(help_text,type = "档案",save_max = SAVE_MAX)
  34.     @help_text = help_text
  35.     @save_max = save_max
  36.     @type = type
  37.   end
  38.   #--------------------------------------------------------------------------
  39.   # ● 主处理
  40.   #--------------------------------------------------------------------------
  41.   def main
  42.    
  43.     # 生成存档选择
  44.     save_list = []
  45.     for i in 1..@save_max+1
  46.       save_list.push(@type+i.to_s)
  47.     end   
  48.     # 生成帮助窗口
  49.     @help_window = Window_Help.new
  50.     @help_window.set_text(@help_text)  
  51.     # 生成存档文件查
  52.     @savefile_windows = []
  53.     for i in 0..@save_max
  54.       @savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
  55.     end
  56.     # 选择最后操作的文件
  57.     @file_index = $game_temp.last_file_index
  58.     @savefile_windows[@file_index].selected = true
  59.     # 执行过渡
  60.     Graphics.transition
  61.     # 主循环
  62.     loop do
  63.       # 刷新游戏画面
  64.       Graphics.update
  65.       # 刷新输入信息
  66.       Input.update
  67.       # 刷新画面
  68.       update
  69.       # 如果画面被切换的话就中断循环
  70.       if $scene != self
  71.         break
  72.       end
  73.     end
  74.     # 准备过渡
  75.     Graphics.freeze
  76.     # 释放窗口
  77.     @help_window.dispose
  78.     for i in @savefile_windows
  79.       i.dispose
  80.     end
  81.   end
  82.   #--------------------------------------------------------------------------
  83.   # ● 刷新画面
  84.   #--------------------------------------------------------------------------
  85.   def update
  86.     # 刷新窗口
  87.     @help_window.update
  88.     for i in @savefile_windows
  89.       i.update
  90.     end
  91.     # 按下 C 键的情况下
  92.     if Input.trigger?(Input::C)
  93.       # 调用过程 on_decision (定义继承目标)
  94.       on_decision(make_filename(@file_index))
  95.       $game_temp.last_file_index = @file_index
  96.       return
  97.     end
  98.     # 按下 B 键的情况下
  99.     if Input.trigger?(Input::B)
  100.       # 调用过程 on_cancel (定义继承目标)
  101.       on_cancel
  102.       return
  103.     end
  104.     # 按下方向键下的情况下
  105.     if Input.repeat?(Input::DOWN)
  106.       # 方向键下的按下状态不是重复的情况下、
  107.       # 并且光标的位置在 3 以前的情况下
  108.       if Input.trigger?(Input::DOWN) or @file_index < 3
  109.         # 演奏光标 SE
  110.         $game_system.se_play($data_system.cursor_se)
  111.         # 光标向下移动
  112.         @savefile_windows[@file_index].selected = false
  113.         @file_index = (@file_index + 1) % 4
  114.         @savefile_windows[@file_index].selected = true
  115.         return
  116.       end
  117.     end
  118.     # 按下方向键上的情况下
  119.     if Input.repeat?(Input::UP)
  120.       # 方向键上的按下状态不是重复的情况下、
  121.       # 并且光标的位置在 0 以后的情况下
  122.       if Input.trigger?(Input::UP) or @file_index > 0
  123.         # 演奏光标 SE
  124.         $game_system.se_play($data_system.cursor_se)
  125.         # 光标向上移动
  126.         @savefile_windows[@file_index].selected = false
  127.         @file_index = (@file_index + 3) % 4
  128.         @savefile_windows[@file_index].selected = true
  129.         return
  130.       end
  131.     end
  132.   end
  133.   #--------------------------------------------------------------------------
  134.   # ● 生成文件名
  135.   #   file_index : 文件名的索引 (0~3)
  136.   #--------------------------------------------------------------------------
  137.   def make_filename(file_index)
  138.     return "Save#{file_index + 1}.rxdata"
  139.   end
  140. end

  141. #==============================================================================
  142. # ■ Scene_Load
  143. #------------------------------------------------------------------------------
  144. #  处理读档画面的类。
  145. #==============================================================================

  146. class Scene_Load < Scene_File
  147.   #--------------------------------------------------------------------------
  148.   # ● 初始化对像
  149.   #--------------------------------------------------------------------------
  150.   def initialize(save_max = SAVE_MAX)
  151.     # 再生成临时对像
  152.     $game_temp = Game_Temp.new
  153.     # 选择存档时间最新的文件
  154.     $game_temp.last_file_index = 0
  155.     latest_time = Time.at(0)
  156.     for i in 0..save_max
  157.       filename = make_filename(i)
  158.       if FileTest.exist?(filename)
  159.         begin
  160.           file = Zlib::GzipReader.open(filename)
  161.         rescue
  162.           next
  163.         end
  164.         if file.mtime > latest_time
  165.           latest_time = file.mtime
  166.           $game_temp.last_file_index = i
  167.         end
  168.         file.close
  169.       end
  170.     end
  171.     super("要载入哪个文件?","读取",save_max)
  172.   end
  173.   #--------------------------------------------------------------------------
  174.   # ● 确定时的处理
  175.   #--------------------------------------------------------------------------
  176.   def on_decision(filename)
  177.     # 文件不存在的情况下
  178.     unless FileTest.exist?(filename)
  179.       # 演奏冻结 SE
  180.       $game_system.se_play($data_system.buzzer_se)
  181.       return
  182.     end
  183.     # 演奏读档 SE
  184.     $game_system.se_play($data_system.load_se)
  185.     # 写入存档数据
  186.     begin
  187.       file = Zlib::GzipReader.open(filename)
  188.       read_save_data(file)
  189.     rescue
  190.       # 演奏冻结 SE
  191.       $game_system.se_play($data_system.buzzer_se)
  192.       return
  193.     end
  194.     file.close
  195.     # 还原 BGM、BGS
  196.     $game_system.bgm_play($game_system.playing_bgm)
  197.     $game_system.bgs_play($game_system.playing_bgs)
  198.     # 刷新地图 (执行并行事件)
  199.     $game_map.update
  200.     # 切换到地图画面
  201.     $scene = Scene_Map.new
  202.   end
  203.   #--------------------------------------------------------------------------
  204.   # ● 取消时的处理
  205.   #--------------------------------------------------------------------------
  206.   def on_cancel
  207.     # 演奏取消 SE
  208.     $game_system.se_play($data_system.cancel_se)
  209.     # 切换到标题画面
  210.     $scene = Scene_Title.new
  211.   end
  212.   #--------------------------------------------------------------------------
  213.   # ● 读取存档数据
  214.   #   file : 读取用文件对像 (已经打开)
  215.   #--------------------------------------------------------------------------
  216.   def read_save_data(file)
  217.     # 读取描绘存档文件用的角色数据
  218.     characters = Marshal.load(file)
  219.     # 读取测量游戏时间用画面计数
  220.     Graphics.frame_count = Marshal.load(file)
  221.     # 读取校验
  222.     crcs = Marshal.load(file)
  223.     # 读取文档字串
  224.     strings = Marshal.load(file)
  225.     # 校验检测
  226.     key = SAVE_KEY
  227.     strings.each_index do |i|
  228.       key = Zlib.crc32(strings[i],key)
  229.       unless crcs[i] == key
  230.         file.close
  231.         raise "file check error"
  232.         return
  233.       end
  234.     end
  235.     # 读取各种游戏对像
  236.     $game_system = Marshal.load(Zlib::Inflate.inflate(strings[0]))
  237.     $game_variables = Marshal.load(Zlib::Inflate.inflate(strings[1]))
  238.     $game_self_switches = Marshal.load(Zlib::Inflate.inflate(strings[2]))
  239.     $game_switches = Marshal.load(Zlib::Inflate.inflate(strings[3]))
  240.     $game_troop = Marshal.load(Zlib::Inflate.inflate(strings[4]))
  241.     $game_map = Marshal.load(Zlib::Inflate.inflate(strings[5]))
  242.     $game_player = Marshal.load(Zlib::Inflate.inflate(strings[6]))
  243.     $game_screen = Marshal.load(Zlib::Inflate.inflate(strings[7]))
  244.     $game_actors = Marshal.load(Zlib::Inflate.inflate(strings[8]))
  245.     $game_party = Marshal.load(Zlib::Inflate.inflate(strings[9]))
  246.    
  247.     # 魔法编号与保存时有差异的情况下
  248.     # (加入编辑器的编辑过的数据)
  249.     if $game_system.magic_number != $data_system.magic_number
  250.       # 重新装载地图
  251.       $game_map.setup($game_map.map_id)
  252.       $game_player.center($game_player.x, $game_player.y)
  253.     end
  254.     # 刷新同伴成员
  255.     $game_party.refresh
  256.   end
  257. end

  258. #==============================================================================
  259. # 自定义存档菜单
  260. #==============================================================================

  261. #==============================================================================
  262. # ■ Scene_Save
  263. #------------------------------------------------------------------------------
  264. #  处理存档画面的类。
  265. #==============================================================================

  266. class Scene_Save < Scene_File
  267.   #--------------------------------------------------------------------------
  268.   # ● 初始化对像
  269.   #--------------------------------------------------------------------------
  270.   def initialize(save_max = SAVE_MAX)
  271.     super("要保存到这个文件吗?","存入",save_max)
  272.   end
  273.   #--------------------------------------------------------------------------
  274.   # ● 确定时的处理
  275.   #--------------------------------------------------------------------------
  276.   def on_decision(filename)
  277.     # 演奏存档 SE
  278.     $game_system.se_play($data_system.save_se)
  279.     # 写入存档数据
  280.     file = Zlib::GzipWriter.open(filename,9)
  281.     write_save_data(file)
  282.     file.close
  283.     # 如果被事件调用
  284.     if $game_temp.save_calling
  285.       # 清除存档调用标志
  286.       $game_temp.save_calling = false
  287.       # 切换到地图画面
  288.       $scene = Scene_Map.new
  289.       return
  290.     end
  291.     # 切换到菜单画面
  292.     $scene = Scene_Menu.new(5)
  293.   end
  294.   #--------------------------------------------------------------------------
  295.   # ● 取消时的处理
  296.   #--------------------------------------------------------------------------
  297.   def on_cancel
  298.     # 演奏取消 SE
  299.     $game_system.se_play($data_system.cancel_se)
  300.     # 如果被事件调用
  301.     if $game_temp.save_calling
  302.       # 清除存档调用标志
  303.       $game_temp.save_calling = false
  304.       # 切换到地图画面
  305.       $scene = Scene_Map.new
  306.       return
  307.     end
  308.     # 切换到菜单画面
  309.     $scene = Scene_Menu.new(5)
  310.   end
  311.   #--------------------------------------------------------------------------
  312.   # ● 写入存档数据
  313.   #   file : 写入用文件对像 (已经打开)
  314.   #--------------------------------------------------------------------------
  315.   def write_save_data(file)   
  316.     # 生成描绘存档文件用的角色图形
  317.     characters = []
  318.     for i in 0...$game_party.actors.size
  319.       actor = $game_party.actors[i]
  320.       characters.push([actor.character_name, actor.character_hue,actor.id])
  321.     end
  322.    
  323.     strings = []
  324.    
  325.     # 写入描绘存档文件用的角色数据
  326.     Marshal.dump(characters,file)
  327.     # 写入测量游戏时间用画面计数
  328.     Marshal.dump(Graphics.frame_count,file)
  329.     # 增加 1 次存档次数
  330.     $game_system.save_count += 1
  331.     # 保存魔法编号
  332.     # (将编辑器保存的值以随机值替换)
  333.     $game_system.magic_number = $data_system.magic_number
  334.    
  335.     # 写入各种游戏对像
  336.     strings.push(Zlib::Deflate.deflate(Marshal.dump($game_system)))
  337.     strings.push(Zlib::Deflate.deflate(Marshal.dump($game_variables)))
  338.     strings.push(Zlib::Deflate.deflate(Marshal.dump($game_self_switches)))
  339.     strings.push(Zlib::Deflate.deflate(Marshal.dump($game_switches)))
  340.     strings.push(Zlib::Deflate.deflate(Marshal.dump($game_troop)))
  341.     strings.push(Zlib::Deflate.deflate(Marshal.dump($game_map)))
  342.     strings.push(Zlib::Deflate.deflate(Marshal.dump($game_player)))
  343.     strings.push(Zlib::Deflate.deflate(Marshal.dump($game_screen)))
  344.     strings.push(Zlib::Deflate.deflate(Marshal.dump($game_actors)))
  345.     strings.push(Zlib::Deflate.deflate(Marshal.dump($game_party)))
  346.    
  347.     # 计算校验值
  348.     crcs = []
  349.     key = SAVE_KEY
  350.     strings.each do |i|
  351.       key = Zlib.crc32(i,key)
  352.       crcs.push(key)
  353.     end
  354.     Marshal.dump(crcs,file)
  355.     Marshal.dump(strings,file)
  356.   end
  357. end

  358. #==============================================================================
  359. # ■ Window_SaveFile
  360. #------------------------------------------------------------------------------
  361. #  显示存档以及读档画面、保存文件的窗口。
  362. #==============================================================================

  363. class Window_SaveFile < Window_Base
  364.   #--------------------------------------------------------------------------
  365.   # ● 初始化对像
  366.   #   file_index : 存档文件的索引 (0~n)
  367.   #   filename   : 文件名
  368.   #--------------------------------------------------------------------------
  369.   def initialize(file_index, filename,viewport=nil)
  370.     super(0, 64 + file_index % 4 * 104, 640, 104)
  371.     self.contents = Bitmap.new(width - 32, height - 32)
  372.    
  373.     @file_index = file_index
  374.     @filename = "Save#{@file_index + 1}.rxdata"
  375.     @time_stamp = Time.at(0)
  376.     @file_exist = FileTest.exist?(@filename)
  377.    
  378.     if @file_exist
  379.       begin
  380.         file = Zlib::GzipReader.open(filename)
  381.         @time_stamp = file.mtime
  382.         @characters = Marshal.load(file)
  383.         @frame_count = Marshal.load(file)
  384.         @total_sec = @frame_count / Graphics.frame_rate
  385.         file.close
  386.       rescue
  387.         @file_exist = false
  388.       end
  389.     end
  390.    
  391.     self.refresh
  392.     @selected = false
  393.   end
  394. end

复制代码
当然,这是要在你   文件-->压缩游戏数据(勾选加密档案文件)才有用,否则形同虚设。
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
229
在线时间
596 小时
注册时间
2010-6-21
帖子
1218
10
发表于 2012-6-17 08:09:41 | 只看该作者
还有一种加密,效果是这样的 ,原理很简单的,工程文件打不开,而游戏可以正常运行,除非那人把那改回来
如果我是一个美工就好啦!
回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2025-7-22 23:37

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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