FlappyPHPant: A Simple Flappy Bird Game in PHP
The article showcases FlappyPHPant, a Flappy Bird-like game written entirely in PHP. The game is built on PHP-GLFW and the VISU framework. While it may seem unusual to develop a game in PHP, FlappyPHPant serves as an example project to demonstrate how a 2D game can be built using PHP-GLFW and VISU. The game features decoupled simulation from rendering, allowing for smooth movement even when the simulation is running slower than the rendering. It also includes a proper 2D camera that can be resized to any resolution and aspect ratio. The input handling is abstracted using Input and Action maps, making it easier to remap controls. Additionally, the game utilizes an Entity Component System to manage game objects and share state between different systems. Despite some corners being cut, FlappyPHPant showcases the potential of developing games in PHP.