How to Build a TwilioQuest Extension and Add Your Own Content to the Game
TwilioQuest enthusiasts and game developers can now build their own TwilioQuest extensions to design new levels, write code challenges, and contribute to the TwilioQuest ecosystem. To start building an extension, one needs a free Twilio account, Node.js installed on the machine, and a GitHub account. The developer creates a folder for all TQ extensions, downloads the template files, clones the repository, installs required packages, and sets up their development environment. After setting up the extensions directory, they launch the game, enable extensions, and navigate to the levels folder to duplicate an example level directory. They then create a new level with two objectives: get_credentials and send_sms. The developer designs and validates the first objective, which requires players to gather account credentials, use them to connect to the Twilio API, and validate their responses. The second objective asks players to send an SMS using the same credentials. After completing both objectives, the player completes the level and earns rewards.
Company
Twilio
Date published
Aug. 18, 2021
Author(s)
Ashley Boucher
Word count
3636
Language
English
Hacker News points
None found.