def add_usr_sprite(game_character) char=Sprite_Character.new(@viewport1,game_character); @character_sprites.push(char); return char; end def del_usr_sprite(char) char.dispose(); @character_sprites.delete(char); end
zhangbanxian 发表于 2012-10-8 14:45
- -b建议ls试验下,@char里存的就是指向@character_sprites中末尾元素的指针,数组的push方法不生成新对 ...
zhangbanxian 发表于 2012-10-8 14:45
- -b建议ls试验下,@char里存的就是指向@character_sprites中末尾元素的指针,数组的push方法不生成新对 ...
zhangbanxian 发表于 2012-10-8 14:45
- -b建议ls试验下,@char里存的就是指向@character_sprites中末尾元素的指针,数组的push方法不生成新对 ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |