The basic ideas
Imagine you are building a space trading game. Players need accounts, cargo, ships and places to trade. Pulse supplies the shared foundation. You add the space trading rules.
The four pieces
| Piece | What it means | Space game example |
|---|---|---|
| Core engine | Shared systems used by many games | Accounts, permissions and loading extensions |
| Plugin | A package that adds a feature | Buying a ship or trading cargo |
| Theme | The game's appearance | Colours, type and space-themed styling |
| Game kit | A recipe combining packages and starting content | A starter space game with selected plugins and a theme |
A kit can only install features when its required packages are available and compatible. Installing Pulse alone does not guarantee a complete game, a particular kit, or every plugin.
What happens when a player does something?
Suppose a player opens a page that lists ships:
Browser asks for ships
↓
A route chooses the PHP code to run
↓
The code reads the database
↓
The backend returns the ship data
↓
The frontend shows it on screen
The frontend is what runs in the browser. Pulse uses Vue for its screens. The backend runs on the server. Pulse uses PHP and Laravel there. The database stores information that must survive closing the browser.
An API is a way for the browser and backend to exchange data. A route connects a URL and request type to code. For example, a GET request reads information; a POST request usually asks the server to perform an action.
Where should my code go?
For a new gameplay feature, start in your own plugin under backend/app/Plugins/<slug>/. A slug is the short machine-friendly name: “Hello Pulse” becomes hello-pulse.
Keep your game rules in plugins so engine updates are easier to apply. Core code must not depend on a specific plugin being installed. If you are improving an engine service itself, that change belongs in the engine repository.
| Repository | What it owns |
|---|---|
pulse-engine |
Shared engine and this developer guide |
pulse-plugins |
Official plugin distribution source under packages/ |
game-kits |
Kit recipes, starting content and assets |
You only need pulse-engine for this learning path. Contributors working on official packages also need the repository that owns the package.
Words you will meet
| Word | Plain-language meaning |
|---|---|
| Terminal | A window where you type commands |
| Project root | The folder containing docker-compose.yml, backend/ and frontend/ |
| Docker container | An isolated environment running a part of the application |
| Artisan | Laravel's command tool, used as php artisan ... |
| Manifest | A plugin's plugin.json: its name, files and requirements |
| Register | Tell Pulse a plugin exists |
| Enable | Allow a registered plugin to run |
| Controller | PHP code that handles a request |
| Model | PHP code representing stored data, such as a user |
| Migration | Code that changes the database structure |
| Seeder | Code that adds starting data |
| Hook | A named point where other code can react or change a value |
| Permission | A rule saying who may perform an action |
| Token | A credential sent with an API request to identify the user |
| Build | Turn source files into files the browser can load |
You can look these up as you go. You do not need to memorise them.
Next: Set up Pulse →