The auto cull component in Phaser ce is a fairly simple component that just adds two boolean values. One of which can be used to enable auto culling of sprites in a project keeping sprites that are outside of the camera from rendering, and the other is just an inCamera boolean that can be used to find out if a sprite is outside of the camera or not. In this post I will be outlining a simple example that makes use of what is added to sprites in phaser ce thanks to the auto cull component.
In this post I was using phaser community edition 2.11.1 of phaser
For an example of the inCamera property I made a demo that involves two sprites one represents a ship, and the other represents a pointer sprite that points to the location of the ship when it it outside the view of the camera.
So then here is a helpe that will be used to set the properties of the pointer, and ship sprites depending on the inCamera value of the ship sprite.
This helper just makes a sprite sheet for the ship, and the pointer sprites using canvas.
So now that I have my helpers I now just need to get everything working with a Phaser.Game instance and a state object.