GithubHelp home page GithubHelp logo

happy-ferret / gjweb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from puzzud/gjweb

0.0 2.0 0.0 250 KB

Web based game template for game jams. Targets web, desktop, and mobile platforms.

License: MIT License

JavaScript 95.21% HTML 4.18% CSS 0.61%

gjweb's Introduction

gjweb

A web based game template for game jams.

This project can jump start a game jam by providing a shell of a game; ready to be filled with game logic and content, so less time is spent setting up a game.

It provides a basic structure with some common components:

  • Bootloader
  • Loading Screen
  • Main Menu
  • About / Credits
  • Game-play Screen

It comes with build scripts that make it possible to target:

  • Windows
  • Mac OS X
  • Linux
  • Android
  • iOS (Future)

Copy or fork it. Modify it. Create a game.

Technology

Program a game with the following:

  • HTML
  • CSS
  • Javascript
  • Phaser
  • ThreeJS (Optional)

Target the web, desktops, and mobile platforms with:

  • NW.js
  • Cordova

Requirements

To use all of this project's features, the following programs are required:

  • nodejs
  • npm (node package manager)
  • grunt-cli

Installation

Checkout or download this project for GitHub.

Install nodejs and npm.

For Windows, it's possible to download it from https://nodejs.org/en/download.

Install grunt-cli, via the command line:

npm install -g grunt-cli

From the same console, navigate to the gjweb root directory.

Install its dependencies, via the command line (this can take a few minutes):

npm install

Building

Commands

Use the following commands to create debug builds:

npm run build_web
npm run build_desktop
npm run build_android
npm run build_mobile
npm run build

npm run build will build for all possible targets.

Use the following commands to create release builds:

npm run release_web
npm run release_desktop
npm run release_android
npm run release_mobile
npm run release

npm run release will build release builds for all possible targets.

Location

Resulting debug builds will populate /path/to/gjweb/build/debug/gametitle. Resulting release builds will populate /path/to/gjweb/build/debug/gametitle-.

The build directories will be contain the follow target subdirectories.

  • win64
  • osx64
  • linux64
  • android
  • ios (Future)
  • web

Usage

Web

To run the web version of the game (particularly during development), set up a web server to point to the root direcctory of gjweb.

It's possible to create a basic web server with this Python command:

python -m SimpleHTTPServer 8081 /path/to/gjweb

Then, navigate a web server to:

http://localhost:8081

It's possible to start Google Chrome with the following parameter to allow a web browser to read directly from the gjweb file system directory:

google-chrome  --allow-file-access-from-files

Desktop

Desktop OS executables are accessible in the build directories mentioned in the Building section.

Android

APKs are accessible in the android build directory mentioned in the Building section.

iOS

(Future)

gjweb's People

Contributors

puzzud avatar thrabchak avatar

Watchers

 avatar  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.