Giter Site home page Giter Site logo

emmanuelconrardy / static-game-engine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sawravchy/static-game-engine

0.0 1.0 0.0 2.72 MB

SpaceQuest is a sample game using Vue and VuePress to build a text-based choose your own adventure game. Fork this repo and create your own Quest!

License: MIT License

Vue 38.77% JavaScript 54.26% Stylus 6.97%

static-game-engine's Introduction

๐Ÿš€๐Ÿ‘ฝโœจ Welcome to your new game! ๐Ÿš€๐Ÿ‘ฝโœจ

Description

This repo contains the elements you need to create a cool text-based game that can be deployed as a web site. Amaze your friends! Fork the repo and build out the game elements by writing a fun storyline. You don't have to keep it as SpaceQuest, it could be a walk through a spooky house, a mysterious forest, a scuba adventure, or a bike race...let your imagination guide you! Tell us what you create in the Issues tab!

Space Quest

History of the Project

Microsoft Azure Advocates have been creating fun text-based games to encourage students of all ages to learn about Microsoft Learn and Docs. The Azure Mystery Mansion, and the ongoing Azure Maya Mystery all fit into this prototype. Em Lazer-Walker and Jen Looper worked as primary developers on the Mystery Mansion, and Jen Looper and Chris Noring were primary developers on the Maya Mystery. This game engine is a prototype that we hope will be forked and reused by all kinds of people who want to create fun text-based games and learn about web programming as well.

Architecture

This site is a hybrid of a Vue.js Single Page Web App and a VuePress static site. Most written content is written using VuePress's markdown architecture, and the game elements are build as standard Vue.js app elements. The game is contained in the app folder. The site is deployed on Azure Static Web Apps.

Create new pages of your Mystery Adventure game by adding Markdown files in the app/game/.vuepress folder. Currently there are three narrative files (README.md, 1.md and 2.md). You can make your game trickier by renaming these files with unique words or a unique id, to that people won't be able to guess the next step by its url without solving a challenge. If you do, don't forget to change the Page url where the user clicks to get to the next page.

Create elements of the game in app/game/.vuepress/theme/utils/items.json. Here you can include items to pick up and results of picking up the items. Let your creativity guide you!

Running your site locally

To run this app, you need to fork it and make sure you have your development environment set up for Vue and VuePress development. First, ensure that you have node.js and npm or node and yarn installed.

For VuePress, install the package globally using yarn or npm:

yarn global add vuepress
or
npm install -g vuepress

Follow the instructions here to get set up. When your local system is ready, you can start running this web site for local development.

To run the site locally, use the command:

npm run dev.

Build the site locally:

npm run build.

Deploying your site

You can deploy this site to your own Static Web App:

Deploy to Azure button

static-game-engine's People

Contributors

dependabot[bot] avatar jlooper avatar sawravchy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.