This is not my code. I am only trying to help you to explain what you want.
the screenshot is from a game of plastation 2.