Sure! Here's an example of an HTML game using JavaScript that fulfills your requirements:
Fruit Slicer Game
Click the apple to get coins!
Coins: 0
In the code above, the game starts with an apple image that can be clicked to collect coins. Once the player collects 35 coins, a knife image is displayed. Clicking the apple again with the knife "slices" it by hiding the original apple image and displaying a sliced apple image.
You would need to replace the `emozi_all/apple.png`, `emozi_dog.png`, and `emozi_all/apple.png` URLs with your own image URLs or use pictogram URLs.