PHP Classes

File: public_html/webdoors/_c64example/index.php

Recommend this page to a friend!
  Packages of Matthew Asham   Binkterm PHP   public_html/webdoors/_c64example/index.php   Download  
File: public_html/webdoors/_c64example/index.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Binkterm PHP
Bulletin board system based on the Web
Author: By
Last change:
Date: 5 days ago
Size: 777 bytes
 

Contents

Class file image Download
<?php
/**
 * C64 Example WebDoor
 *
 * To create a new C64 game door:
 * 1. Copy this folder, rename it to your game slug (e.g. "galaga")
 * 2. Drop your .prg (or .d64) file into the folder
 * 3. Update $c64Config below
 * 4. Update webdoor.json (id, name, description)
 * 5. Enable the door in the admin panel
 *
 * For a D64 disk image with multiple programs, use:
 * 'd64' => 'game.d64',
 * 'prg_name' => 'GAMENAME', // optional: auto-select a specific PRG from the D64
 */

$c64Config = [
   
'door_id' => 'c64example', // Must match webdoor.json "id"
   
'title' => 'C64 Example Game', // Shown in loading spinner
   
'prg' => 'game.prg', // PRG file sitting next to this index.php
];

require
__DIR__ . '/../_c64engine/player.php';