Home Backend Development PHP Tutorial What is it like to do PHP development in a game company?

What is it like to do PHP development in a game company?

Jul 12, 2018 am 09:32 AM

Graduation season is about to begin again. Many fresh graduates have already started looking for jobs, and some have already found jobs. As the capital market is undergoing rapid changes, the game industry is an industry that many people aspire to. Back then, I heard that a certain friend of mine was working in a game company with a monthly salary of 10,000 to 20,000 yuan. It was very hard for me to make a side dish of more than 1,000 yuan a month at that time. I'm envious, but I heard that he is a C programmer doing 3D game development, but I don't know C. I only know PHP and other WEB development languages, so I can only hope for a salary. But not long after, web games exploded, and I finally had the opportunity to get into the gaming industry. So for those who are interested in entering the game industry, are there any opportunities for those who only know PHP to enter the game industry? Is the gaming industry a good place to be? What kind of work does the game industry do? Don't be anxious, let me follow you one by one.

Question 1: I only know PHP development, can I enter the game industry?

The answer is yes. There are various technologies used in the game industry, and PHP can also be used to make games. The first game company I joined back then used PHP as its backend for its products. When I got the SVN permission to check out the code after I joined the company, I looked at it and sighed in my mind: It turns out that PHP can still be played like this!

Without further ado, let’s take a look at what PHP is used to do in game companies:

Write server-side logic (PHP performance is not high, and server-side writing is rarely done in PHP nowadays. But some people still use PHP to write, and some H5 games are also written in PHP, and there are even frameworks like swool to improve performance)

Write game interfaces, such as front-end JS and AS3 connection code, web servers Use nginx for load balancing.

Write the game management background.

Write the official website of the game

Game-related system development, such as game official account management backend.

In my experience, writing the data management backend of a game in a game company involves more work. The needs we often encounter are like this:

Our game is about to be launched, but there is no way to see the registration data. I don’t know what the conversion rate and payment data are. Please write it down for me.

Our game needs payment rate reports, registration conversion rate reports, advertising and revenue reports. You can write a function for me to make these reports and show them to me.

Our game needs to send items to players. You can create a background function for me to send items to players.

Our players have complained. We cannot directly use a QQ number as a customer service account. We need a system to manage it. You can write a customer service system for me.

Some of our players are posting messages about people in the chat channel. Please block them and build a chat monitoring system.

We will hold an event next week. The planning needs to know certain data. Please make a report for me. In order to prevent related needs in the future, you can make me an event management module.

We are going to connect to Tencent Games. Please help me write the front-end interface and pass the data to the client. . . . .

There are many teams in the same company, and their technologies are not shared. Each team can do the above requirements. The data that every planning or operation needs to look at is similar, and even operations don’t know what data to look at. Moreover, the server-side development languages ​​and frameworks used by each team are not necessarily the same. This team is a JAVA backend, that team is a C backend, another is Erlang flow, and some are written in Python, the server side Development languages ​​are diverse and not unified. If you want to use the backend written by this team in another team, you will have to make a big bottom-level change.

Because the game is divided into servers, there is another problem: one server has its own backend, and some have one set of backend code. There is data for each server, and there is also need to have data from the background of the whole region server. This background is a platform that aggregates the background data of all servers, which also involves the issue of data communication between the backgrounds... ...PHP programmers will fall into this whirlpool of demand. What's even more frightening is that when you change a company, all the above things may have to be done again, because the architectures written by developers from different companies are all different. no the same.

Let’s talk about what technologies PHPer of game companies should learn to use:

Web server software: nginx, apache

Development language: php, javascript, html, html5, css ,shell

Database: mysql, mongodb

Cache component: memcache, redis

Operating system: linux

Communication protocol: http, socket, xml, json

Having said so much, as a PHPer of a game company, I really hope to have something like this: a unified backend system that can smoothly and conveniently connect to the game, ready to use, and suitable for server-side written in any language. . It can have a unified data report and data definition, which is in line with the usage habits of the game industry. Don't tell me, this thing really does exist. I organized a dozen PHPers and spent a long time writing a set of game management backends specifically designed to address the above issues. In fact, the code has been circulated and used in many companies, but none of them It must be a complete version, or there is no targeted development for versatility.

The above is the detailed content of What is it like to do PHP development in a game company?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

7 PHP Functions I Regret I Didn't Know Before 7 PHP Functions I Regret I Didn't Know Before Nov 13, 2024 am 09:42 AM

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

PHP Program to Count Vowels in a String PHP Program to Count Vowels in a String Feb 07, 2025 pm 12:12 PM

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

Describe the SOLID principles and how they apply to PHP development. Describe the SOLID principles and how they apply to PHP development. Apr 03, 2025 am 12:04 AM

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

See all articles