Перейти к содержимому

Building a Text Adventure Game in Pure PHP | Quest Engine #1

TechnicatorDev

0:00 / 0:00

Building a Text Adventure Game in Pure PHP | Quest Engine #1

24 просмотра · 6 дней назад
TechnicatorDev
89 подписчиков
24 просмотра · 6 дней назад
Quest Engine starts here: a player, rooms-to-be, an autoloader and a game UI — and PHP refusing to let me put "new" in a property default. This is the second project in my PHP-framework-from-scratch journey: an RPG-style text adventure where you walk between rooms and talk to NPCs, built in plain PHP so the framework grows out of what the game actually needs. Quests and rules will live in JSON data files, not in if/else chains. Streamed live on Twitch, condensed. If you want to watch a framework get built one painful piece at a time, subscribe. ⏱️ Chapters 0:00 The plan: quests in data, not code 2:55 Why build my own framework? 5:00 Me vs. CSS centering 8:00 Player, Location & interfaces 10:00 Hunting down the autoloader 12:00 Enums and arrays of doors 14:10 Fatal error: Not implemented 15:00 Constant expression contains invalid operations 17:00 How do you print an object in PHP? 21:25 Building the game UI 27:05 CSS grid & the stats panel 32:10 Buttons and hover states 37:20 Next up: rooms, NPCs, quests 🛠️ Built with PHP in Docker and Composer's PSR-4 autoloader — no framework. 💬 Come code with me live on Twitch:   / technicatordev   ▶️ PHP Framework from Scratch — full series:    • Building a lightweight framework in PHP fr...   Previous project, Battle Engine:    • PHP Property Hooks, Interfaces and Composi...   🎵 Music "Bleeping Demo" Kevin MacLeod (incompetech.com) "Blippy Trance" Kevin MacLeod (incompetech.com) "Jerry Five" Kevin MacLeod (incompetech.com) "Shiny Tech" Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 4.0 License http://creativecommons.org/licenses/b...