Giter VIP home page Giter VIP logo

doggym's Introduction

About This Fork

This is a fork of Pencil Code Gym which lets you create and upload custom games to the Doggie And Me app.

It contains lots of examples of dog game functionality, and the option to modify the code and send it to the app.

That app, in itself, uses Pencil Code's jquery-turtle library, with a small dog-specific API on top of it. So in theory, you should be able to do most things you can do in Pencil Code and have them Just Work in the app!

Below are the original instructions for how to build and test your own pencil-code-like gym.

How To Build and Test

First install the prerequisites: git and nodejs (see "prequisites" below if you don't yet have them.)

Then just do this:

git clone https://github.com/PencilCode/codegym.git
cd codegym
npm install
npm run devserver

This will generate the website and start a copy at localhost:9778.

You can edit the contents of the src subdirectory, and the docpad process will regenerate the website as-needed.

To generate a static website (e.g., for serving through nginx or apache), just npm run generate. The static website is generated in the out subdirectory.

Prerequisites

Getting git is easy: On Linux, just sudo apt-get install git or sudo yum install git-core if you don't have it. On Mac, install Apple's XCode package. On Windows, there are git installers.

Next, you need node.js (which is the node and npm binaries). The Ubuntu and Debian packages for node.js are pretty old, so don't just apt-get install the packages. Get and build the latest node and npm and grunt binaries as follows:

(For Linux:)

mkdir -p /tmp/nodejs && cd /tmp/nodejs
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd `ls -rd node-v*`
./configure --prefix=$HOME/local
make install
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

(For Mac:)

mkdir -p /tmp/nodejs && cd /tmp/nodejs
curl http://nodejs.org/dist/node-latest.tar.gz > node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd `ls -rd node-v*`
./configure --prefix=$HOME/local
make install
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.profile
source ~/.profile

doggym's People

Contributors

davidbau avatar yanamal avatar ascich avatar dsaff avatar

Watchers

James Cloos 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.