Giter Club home page Giter Club logo

ng-game's Introduction

Building multiplayer games with Angular

This talk was delivered at ng-europe, October 23, 2014 by Ari Lerner (ng-newsletter.com | fullstack.io)

Although the game itself is relatively complete (game over states not quite implemented fully, chat, etc. incomplete), this repository is intended on demonstrating how to build complex, multiplayer games with Angular and Phaser.

Technologies used:

Trying it out

In order to run the game, we'll start up the node/express server:

$ node index.js

That's it! Then head to your browser to: http://localhost:8000 and see the wonder

ng-game's People

Contributors

auser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ng-game's Issues

express deprecated

When I try to run $ node index.js, I get ENOENT error and a for ng-game\client\dist\index.html. Any idea how I'm supposed to fix that?

Various issues

When I first downloaded and tried to run $ node index.js, I got an error that express had deprecated res.sendfile. I updated server.js line 21 to read res.sendFile(...). Then I got an error pointing to client/dist/index.html, which didn't exist. I found index.html in client/production so on line 15 of server.js I pointed staticPath to client/production.

Now the game loads. It seems I have to refresh the page to get the game to actually load. Also, I'm having an issue getting 2 players in the game from different browsers on the same computer (though I can run multiple instances of the game).

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.