Browser Invaders (opens in new tab) is a fun little experiment built by Seb Lee-Delisle (opens in new tab) for this year’s State of the Browser conference (opens in new tab) for web standards enthusiasts. After live coding most of the game, Lee-Delisle pitted browser evangelists against each other.
The game is built using Canvas and you can change which browser you’re playing as by hitting one to five on the opening screen. Having moved away from developing in Flash several years ago Lee-Delisle used “pretty much just raw JavaScript (opens in new tab)” mixed with a little existing code to handle requestAnimationFrame and the keyboard input" to build Browser Invaders.
Lee-Delisle explains that the JavaScript uses "very simple physics – I’m just oscillating the x position of the invaders on a sine wave. They speed up as the game progresses".
Like this? Read these!
- How to create an app (opens in new tab): try these great tutorials
- Free Photoshop brushes (opens in new tab) every creative must have!
- Free Photoshop actions (opens in new tab) to create stunning effects
Have you seen a classic game reinvented in with a modern twist? Let us know in the comments box below!