RU

SONIC PHP

автор: davidnurdin · Платформеры
5,0 (1)
▶ Играть 💬 Отзывы Исходники 🕘 Версии Править GitHub
. / src / Entities / Objects / ChaosEmerald.php · commit a20d00e
<?phpnamespace App\Entities\Objects;use App\Entities\GameObject;use App\Gfx\Gfx;class ChaosEmerald extends GameObject{    public function __construct(Gfx $sdl, int $tileX, int $tileY)    {        parent::__construct($sdl, 0x06, 'Chaos Emerald', 0, 0, 14, 16);        $this->animations = ['idle' => ['flags' => [], 'coords' => self::frames([[585, 72, 14, 16]])]];        $this->setAnimation('idle');        $this->placeOnSpawn($tileX, $tileY, 16);    }    public function collect(): void    {        $this->active = false;        $this->visible = false;    }}