Category: game development

Procedurally Generated Game Terrain with React, PHP, and WebSockets

Last time, I began telling you the story of how I wanted to make a game. I described how I set up the async PHP server, the Laravel Mix build chain, the React front end, and WebSockets connecting all this together. Now, let me tell you about what happened when I starting building the game mechanics with this mix of Rea...

Game Development with React and PHP: How Compatible Are They?

“I’d like to make a multiplayer, economy-based game. Something like Stardew Valley, but with none of the befriending aspects and a player-based economy.” I started thinking about this the moment I decided to try and build a game using PHP and React. The trouble is, I knew nothing about the dynamics of...

How’d They Do It? PHPSnake: Detecting Keypresses

At a recent conference in Bulgaria, there was a hackathon for which Andrew Carter created a PHP console version of the popular “snake” game. I thought it was a really interesting concept, and since Andrew has a history of using PHP for weird things, I figured I’d demystify and explain how it was done...

Sourcehunt March 2016: PHP in Rust, Pathfinding, Eve Online

Time to promote some open source projects again! [author_more] blackscorp/astar [2 ★] A package by our very own Vitalij, astar is a PHP implementation of the A* pathfinding algorithm. Continue reading %Sourcehunt March 2016: PHP in Rust, Pathfinding, Eve Online% ...

Creating a WebGL Game with Unity 5 and JavaScript

This article was peer reviewed by Nilson Jacques Collins, Marc Towler and Matt Burnett. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be! Unity is a cross-platform game engine used to develop video games for PCs, consoles, mobile devices and websites. The latest version (Uni...