From the archive! Creating A Game With PHP Part 4: Side Scrolling Shooter
This article looks at creating an ASCII based game played on the command line, in PHP.
A side scrolling shooter, if you didn't already know, moves a scene from right to left across the screen with enemies moving with the scene towards the player's ship, which is on the left hand side of the scene.
https://www.hashbangcode.com/article/creating-game-php-part-4-side-scrolling-shooter

Creating A Game With PHP Part 4: Side Scrolling Shooter
As another step up from the game of snake I created in my last post I decided to try my hand at creating a side scrolling shooter. Just like my other posts, this is an ASCII based game played on the command line. A side scrolling shooter, if you didn't already know, moves a scene from right to left across the screen with enemies moving with the scene towards the player's ship, which is on the left hand side of the scene. The player can fire bullets towards the enemies so remove them from the scene.