Collisions problem when adding an "extended" Sprite

What’s the entire constructor function?