Search results for 2013 09 30 building multiplayer games with node js and socket io

Building a JavaScript Library with Grunt.js

by Brian Rinaldi

JSHint configuration should look like: module.exports = function(grunt) { grunt.initConfig({ jshint: { options: { trailing: true, eqeqeq: true }, target: { src : [‘src/**/*.js‘, ‘test/**/*.js‘] } } }); grunt.loadNpmTasks(‘grunt-contrib-jshint’); grunt.registerTask(‘default’,…

Writing a Command Line Utility using Node

by Brian Rinaldi

surface of what commander.js is able to offer, to find out more information visit the commander.js website. Underscore.js, the utility belt for your Node CLI Underscore.js is a utility belt…

Lessons Learned Building an HTML5 Games Engine

by Brian Rinaldi

Grunt (JavaScript automation tool) task to automate the creation of audio sprite files from our existing audio assets. We now have an audio library that provides scalable support across platforms…

Audio Synthesis in JavaScript

by Brian Rinaldi

…audio.createOscillator(); gain.connect(audio.destination); gain.gain.setValueAtTime(0, audio.currentTime); gain.gain.linearRampToValueAtTime(1, audio.currentTime + attack / 1000); gain.gain.linearRampToValueAtTime(0, audio.currentTime + decay / 1000); osc.frequency.value = freq; osc.type = “square”; osc.connect(gain); osc.start(0); setTimeout(function() { osc.stop(0); osc.disconnect(gain); gain.disconnect(audio.destination); },…

An Interview with Thomas Palef on Creating HTML5 Games

by Brian Rinaldi

…this interview, I ask Thomas a couple of questions to get a more detailed look at his background, and how he began building these games, and about his prior experience…

Deploying APIs built via Node.js to IBM Bluemix

by Niklas Heidloff

do this. Since I don’t need SSH I use a simpler Dockerfile. FROM registry.ng.bluemix.net/ibmnode:latest COPY . /node WORKDIR /node RUN npm install EXPOSE 9080 CMD [“node“, “/node/app.js“] Since the IBM…

Introduction to npm

by Brian Rinaldi

going indefinitely. In our scenario, we have this directory structure: npm_hello ├run.jsnode_modules ├cheerio │ └node_modules │ ├CSSselect │ │ └node_modules │ │ ├CSSwhat │ │ └domutils │ │ └node_modules…

Automating Complex Workflows with Grunt Custom Tasks

by Ben Farrell

some vanilla JavaScript and Node.js. There are a number of FFMPEG wrappers out there that work with Node.js. I chose “ffmpeg-node”. At the time I was researching this project, a…

React App

How to integrate Node.JS/React App with Xero

by Shazzad Hossen

git clone it or see a hosted version on reactxeroapp.nodevision.com.au application allows adding invoices and contacts and demonstrates synchronization with Xero Research and implementation HERO.WORK required 2 way synchronization for…

Real-World Best Practices for Building Angular.js Apps without Browserify or Require.js

by Jeff Dickey

concat = require(‘gulp-concat’) gulp.task(‘js‘, function () { gulp.src([‘src/**/module.js‘, ‘src/**/*.js‘]) .pipe(concat(‘app.js‘)) .pipe(gulp.dest(‘.’)) }) gulp.task(‘watch’, [‘js‘], function () { gulp.watch(‘src/**/*.js‘, [‘js‘]) }) This just defines a ‘gulp watch’ task we can call…