class Game_Bicycle < Game_Character def initialize(id=0) super @id = id end end
class Window_XXX < Window_Base def initialize super(0,0,192,160) …… end end
super calls the method of the parent class, if it exists. Also, as @EnabrenTane pointed out, it passes all the arguments to the parent class method as well.
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |