Project1

标题: 请教RGSS核心基础问题 [打印本页]

作者: kvkv97    时间: 2014-11-8 11:59
标题: 请教RGSS核心基础问题
module RPG
  class Sprite < ::Sprite
    @@_animations = []
    @@_reference_count = {}
    def initialize(viewport = nil)
      super(viewport)
      @_whiten_duration = 0
      @_appear_duration = 0
      @_escape_duration = 0
      @_collapse_duration = 0
      @_damage_duration = 0
      @_animation_duration = 0
      @_blink = false
    end
end
1,机器运作程序,RGSS程序保存在内存,那么电脑是如何识别RGSS的?
2,RGSS的元模块,元类是如何被定义的,电脑是如何识别RGSS的元模块和元类的(元模块和元类就是其它模块和类的父类),例如RPG是如何定义的,
RPG::Sprite是如何定义的?
3,元模块和元类是如何实现 电脑程序上的 关系的?
希望各位,能指点一二,不胜感激!
作者: taroxd    时间: 2014-11-8 14:29
本帖最后由 taroxd 于 2014-11-8 14:31 编辑

https://github.com/ruby/ruby
https://github.com/ruby/ruby/blob/trunk/class.c

没有什么比这两个链接更能解释你的问题了




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