DailyJS

DailyJS

The JavaScript blog.


Tagslideshows
Featured

tutorials games node modules slideshows

Slideshow, Unity and JavaScript

Posted on .

Slideshow

What do you do when Apple and Microsoft do everything they can to pull us into their walled development environment gardens? One answer is to unify both environments using a sane Node API. Ralf S. Engelschall sent in Slideshow (GitHub: rse / slideshow, License: MPL, npm: slideshow), a module for remote controlling and monitoring presentation programs like PowerPoint and Keynote.

He also wrote slideshow-forecast, which is a cool CLI and GUI for monitoring slideshows:

The motivation for this is that for large presentations which have to be given in multiple variants for different timeslots it is very hard to determine the later presentation duration during preparation time. Instead of performing lots of different dry-runs after each preparation, this tool provides a duration prognosis already during preparation time.

The slideshow command-line program itself lets you drive an application with commands like boot, open file, and start. You can also goto a given slide and stop the presentation at the end.

Internally it uses Microsoft's cscript or Apple's osascript to communicate with the target application, so you don't have to worry about strange AppleScript or COM incantations.

How to Make a 2D Space Shooter in Unity

Unity

The Unity game engine is hugely popular with game developers. Many of the indie games that I've enjoyed have been made with it, and if I had the time I'd love to make something with it. I was aware Unity supports C#, but I didn't know it has a compiled JavaScript language as well.

Thomas Palef has written a new tutorial about using JavaScript with Unity called How to Make a 2D Space Shooter in Unity. It shows you how to get started making a game with Unity's UI, and includes some simple JavaScript for handling firing a bullet.

If you're interested in Unity but thought it was something that only desktop developers can get into then you might enjoy following this tutorial.

Featured

jquery plugins css slideshows

jQuery Roundup: 2.0 Beta 3, betterToggle, Cavendish.js

Posted on .

Note: You can send your plugins and articles in for review through our contact form.

jQuery 2.0 Beta 3

jQuery 2.0 Beta 3 is out:

... we really need your help in finding and fixing any bugs that may be hiding in the nooks and crannies of jQuery 2.0. We want to get all the problems ironed out before this version ships, and the only way to do that is to find out whether it runs with your code.

This release introduces Node compatibility, so you can now load it with require(). It also makes it work in Windows 8 Store apps.

betterToggle

betterToggle (GitHub: kanakiyajay / betterToggle, License: GPLv2) by Jay Kanakiya is a plugin for toggling elements with CSS3 transforms. As an added bonus it allows multiple elements to be toggled.

Usage is similar to .toggle: $(selector).betterToggle(), and the project's homepage has plenty of demos.

Cavendish.js

Cavendish.js (GitHub: michaek / cavendish.js, License: MIT) by Michael Hellein is a slide manager plugin aimed at front-end developers well-versed in CSS. It has a plugin-based API that allows it to support different styles for displaying and navigating slides:

var cavendish = $('.cavendish').cavendish('cavendish');  
cavendish.plugins['player'].start();  

The bundled plugins include a simple player that pauses on hover, a pager, previous and next arrows, and a parallax scrolling effect. The API also exposes the events used, so you can add listeners to see when Cavendish has been initialised and after a slide has been transitioned.