aigcgame

Action & Skill

Air Hockey

A tall 340 by 500 air hockey table, you at the bottom and a computer paddle at the top. First to seven goals wins. Your paddle follows the pointer; the CPU only eases toward the puck's horizontal position and never charges down the table.

Play Air Hockey

Who it is for. Anyone with a mouse or a finger who wants a short first-to-seven rally. Fine on a phone. If you wanted two human paddles, that is Pong in Classic Arcade.

How it actually plays

The goal mouths are 100 pixels wide and centred on each end. Paddles have a radius of 24; the puck is 14. Reach the far rail inside the goal and you score; the same at your rail is a CPU goal. Hit the rail outside the mouth and the puck rebounds.

A paddle collision fires the puck along the line away from the paddle centre at a fixed punch, so a side hit leaves a sharper angle than a face-on one. The computer paddle moves 6 percent of the remaining x-gap each frame, clamped so it cannot leave the table.

The set ends the moment either score hits 7. New Game zeroes both totals and resets the starting slots.

Controls

Move the pointer or your finger on the canvas; the paddle tracks it. There is no keyboard control. New Game starts a fresh set.

Strategy and common mistakes

Because the CPU mostly slides sideways, a steep angle past its current x is harder for it than a straight vertical drive. Guard the centre of your goal when the puck is far away, and only step out to meet it. A paddle left in a corner is an open net.

More in Action & Skill

See all Action & Skill games →

Back to the library