MCCodes Walkthrough Tutorial
MCCodes v2 is a primarily text-driven persistent browser-based game (PBBG) where you play as a gangster and is somewhat similar to a simplified Torn-style mafia game.
The core gameplay involves attacking other players, committing crimes for rewards such as money and items, managing your inventory, and joining player-run gangs. The main goal of this style of game is to get to the top of the leaderboards and dominate other players.
The system includes background tasks (cron jobs) to handle time-based events like resource regeneration (brave, health, will, energy), and a staff panel for administrative operations within the game.
You can grab a copy of the original MCCodes (v2) code to reference if you want to follow along the tutorial with the exact code used.
Below you will find each section of the full tutorial series exploring the MCCodes v2 codebase.
-
Chapter 1: Page Rendering & Structure
Chapter 1 of the MCCodes PBBG tutorial: page rendering and project structure.
April 21, 2025 -
Chapter 2: Global Setup & Session Management
Chapter 2 of the MCCodes PBBG tutorial: global setup and session management.
April 21, 2025 -
Chapter 3: Crime System
Chapter 3 of the MCCodes PBBG tutorial: exploring the crime system.
April 21, 2025 -
Chapter 4: Item Management
Chapter 4 of the MCCodes PBBG tutorial: item management and inventories.
April 21, 2025 -
Chapter 5: Attacking System
Chapter 5 of the MCCodes PBBG tutorial: the attacking/battle system.
April 21, 2025 -
Chapter 6: Gang System
Chapter 6 of the MCCodes PBBG tutorial: gang system; aka player-run groups.
April 21, 2025 -
Chapter 7: Cron Job System
Chapter 7 of the MCCodes PBBG tutorial: cron jobs; settings up recurring events.
April 21, 2025 -
Chapter 8: Staff Panel & Permissions
Chapter 8 of the MCCodes PBBG tutorial: staff panel and player permissions.
April 21, 2025 -
Chapter 9: Security Functions (CSRF/Password/Validation)
Chapter 9 of the MCCodes PBBG tutorial: handling game security.
April 21, 2025 -
Chapter 10: Database Interaction
Chapter 10 of the MCCodes PBBG tutorial: persistence and database interaction.
April 21, 2025
Tags: Open Source , PBBG