Sure, here's an example of a simple game that meets your requirements:
This code sets up a simple game where the player controls a ship that shoots at random-colored pixels falling from the top of the screen. The player can control the ship's horizontal movement by touching and dragging on the screen. The game keeps track of the number of resources collected by the ship when it collides with a pixel. The resource count is displayed on the screen.