Giter VIP home page Giter VIP logo

coder-dojo-game's Introduction

Coder Dojo Jump & Run

Ein Beispiel-Spiel für das Coder Dojo.

Spiel starten

Um das Spiel zu starten braucht man einen Webserver, der die Requests abfertigt. Andernfalls können die Assets nicht geladen werden. Einfach die HTML Datei im Browser aufmachen funktioniert also leider nicht.

Auf Cloud9 ist das dann später kein Problem. Da die HTML-Dateien dort direkt gehosted werden und über das http-Protokoll ausgeliefert werden, muss man dort keinen Webserver starten, sondern kann wie gehabt den Link zu der Datei aufrufen. Das macht es für die Kids einfach, denn es muss kein Shell-Kommando eingegeben werden (obwohl das ja geht, was man Cloud9 sehr zugute halten muss).

Zunächst einmal sollte das Repo geklont werden.

Unix (OS X & Linux)

Mit installiertem Python in den Projektordner wechseln und

python -m SimpleHTTPServer

ausführen. Das startet einen Webserver auf Port 8000. Mit installiertem Netcat alternativ: nc -l 8000.

Das Spiel ist danach unter http://localhost:8000/part01.html verfügbar, respektive http://localhost:8000/part10.html usw.

Darüber hinaus kann das Projekt auch in den Ordner eines Webservers eurer Wahl (nginx, apache, usw.) gelegt werden. Wenn ihr das macht, wisst ihr ja schon, was ihr tut ;)

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.