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

Project1

 找回密码
 注册会员
搜索

[Ruby Game Maker]计划(5.19更新:界面预览版)

查看数: 5877 | 评论数: 14 | 收藏 5
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2014-4-2 18:42

正文摘要:

本帖最后由 沙漠点灰 于 2014-5-19 23:43 编辑 --- 5.19更新 更新界面预览,大家试试吧!现在只能编辑脚本玩玩 RubyGM_0.0.1.c2.1.1.preview (版本号真长...) 现在调试功能还不完全,有对CRuby很了解的,请联系 ...

回复

晴兰 发表于 2014-6-12 15:55:02
提示: 作者被禁止或删除 内容自动屏蔽
沙漠点灰 发表于 2014-5-19 23:28:42
5.19更新

@satgo1546 界面恶心么,{:2_258:},不过也是多亏XML布局,可以自行修改的{:2_275:}
satgo1546 发表于 2014-5-18 20:07:52
为什么我越看这个界面越恶心……
Sion 发表于 2014-5-17 13:25:52
有什么需要帮忙的就告诉我吧,反正写点 ruby 代码还是可以的;
c++ 代码写得少,但也能写,不过只会基础的像数组、内存这类的操作。
那些代码我不想看了,看起来太头痛 - -b
IamI 发表于 2014-5-17 09:33:56
本帖最后由 IamI 于 2014-5-17 09:52 编辑
fux2 发表于 2014-5-17 00:54
最近才知道已经有人在做类似工作了(自由扩充数据库及排版的编辑器)。
@IamI 大概你们能扯两句。  ...


一个月前的消息现在才来找我怎么想都是你的错啦(误)。

应该说,这个轮子造了好多年了……现在我却连让它滚都很难滚起来。
主体采用C#编写,编辑器开放编辑,采用IronRuby。
只写数据库界面,其他基本不考虑,不过数据库的工作量基本上和写一整个RM有的一比(趴)
Marshal 数年前就已经完备,布局引擎基本完好,只不过出于个人原因一直提不快库的开发速度。
近期和事件搏斗中。


为了解决库数量不足的问题不得已采用的策略。
基本已经可用。


全部可用,顺带一提下面那个防具配置差点让我想死,XP是没有双刀的,它的配置已经这么长:
RUBY 代码复制
  1. Builder.Add(:lazy_choose , {:actual => :armor2_id ,  :label => 0, :textbook => Help.Get_Default_Text , :choice => { 0 => "(无)" },
  2.                                         :source => Proc.new do |target, parent, control|
  3.                                                 Data["armor"][Data["class"][parent["@class_id"]]["@armor_set"]].select {|target| target["@kind"].Value == 1}
  4.                                         end })

有双刀的VA就是这个样子了
RUBY 代码复制
  1. def search_weapon(control)
  2.                         actor_class = Data["class"][control.Container.Container.Value["@class_id"]]
  3.                         actor_features = control.Container.Container.Value["@features"]
  4.                         class_features = actor_class["@features"]
  5.                         type = []
  6.                         banish = false
  7.                         actor_features.each do |feature|
  8.                                 type.push(feature["@data_id"]) if feature["@code"].Value == 51
  9.                                 banish = true if feature["@code"].Value == 54 && feature["@data_id"] == 0
  10.                         end
  11.                         class_features.each do |feature|
  12.                                 type.push(feature["@data_id"]) if feature["@code"].Value == 51
  13.                                 banish = true if feature["@code"].Value == 54 && feature["@data_id"] == 0
  14.                         end
  15.                         return [] if banish
  16.                         return Data["weapon"].select {|weapon| type.include?(weapon["@wtype_id"]) }
  17.                 end
  18.                 def search_armor(control, id)
  19.                         actor_class = Data["class"][control.Container.Container.Value["@class_id"]]
  20.                         actor_features = control.Container.Container.Value["@features"]
  21.                         class_features = actor_class["@features"]
  22.                         type = []
  23.                         banish = false
  24.                         actor_features.each do |feature|
  25.                                 type.push(feature["@data_id"]) if feature["@code"].Value == 52
  26.                                 banish = true if feature["@code"].Value == 54 && feature["@data_id"] == id
  27.                         end
  28.                         class_features.each do |feature|
  29.                                 type.push(feature["@data_id"]) if feature["@code"].Value == 52
  30.                                 banish = true if feature["@code"].Value == 54 && feature["@data_id"] == id
  31.                         end
  32.                         return [] if banish
  33.                         return Data["armor"].select {|weapon| type.include?(weapon["@atype_id"]) && weapon["@etype_id"].Value == id }
  34.                 end
  35.                 def isDouble(control)
  36.                         actor_class = Data["class"][control.Container.Container.Value["@class_id"]]
  37.                         actor_features = control.Container.Container.Value["@features"]
  38.                         class_features = actor_class["@features"]
  39.                         for feature in class_features
  40.                                 return true if feature["@code"].Value == 55
  41.                         end
  42.                         for feature in actor_features
  43.                                 return true if feature["@code"].Value == 55
  44.                         end
  45.                         false
  46.                 end



写了超过2000行配置代码了,依然看不到头。

我在使用XML描述的编辑器界面上浪费了两年时间。编辑器逻辑用Ruby描述尚显的吃力,用XML描述基本达不到目标要求。
如果您有兴趣,请造访这里
这个是最后一个使用XML描述的版本。已经废弃。
fux2 发表于 2014-5-17 00:54:38
最近才知道已经有人在做类似工作了(自由扩充数据库及排版的编辑器)。
@IamI 大概你们能扯两句。
沙漠点灰 发表于 2014-5-15 12:10:03
本帖最后由 沙漠点灰 于 2014-5-15 12:11 编辑

5.15更新.
大召唤术:
@eve592370698
@fux2
@Sion
eve592370698 发表于 2014-4-15 23:33:48
沙漠点灰 发表于 2014-4-15 23:12
4.15更新本贴: 界面草草图预览

@eve592370698  你要的界面来了

真不容易啊!希望稳定性别让大家失望。
沙漠点灰 发表于 2014-4-15 23:12:45
4.15更新本贴: 界面草草图预览

@eve592370698  你要的界面来了{:2_254:}

点评

挺喜欢雅黑的(///▽///) @satgo1546  发表于 2014-4-21 18:21
看到界面就感觉那么大的MSYH字体作死啊! | 好厉害 Σ( ° △ °|||)︴(←这是什么表情  发表于 2014-4-18 20:09
6rp 发表于 2014-4-11 17:22:21
XP 系统被边缘化了,默默离开。
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

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

GMT+8, 2024-9-27 19:46

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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