top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

    Get Free Article Updates

Facebook Login
Site Registration
Print Preview

Small Discussion About Crafty.Js?

0 votes
71 views

What is Crafty.Js?

Crafty, previously known as CraftyJS, is a small, simple, and lightweight game engine that can greatly help you build prototypal or fully-featured 2D HTML5 games. Crafty is also open-source and completely free. Its code is hosted openly on GitHub.com and is distributed under the MIT or GPL license.

Crafty is a cohesive collection of custom-built Javascript libraries that provide a framework for building browser-based games using standard web technology. In other words, it’s a Javascript-based HTML5 game engine. It’s designed to make it very easy to make simple games with 2D graphics. 

A Crafty.js game is build up of entities -- the player character, enemies, and obstacles are all represented this way.

Lets start by creating a simple colored square:

Crafty.e('2D, DOM, Color').attr({x: 0, y: 0, w: 100, h: 100}).color('#F00');

For More Visit Here - http://craftyjs.com/getting-started/

Video for Crafty.Js

posted May 9 by Manish Tiwari

  Promote This Article
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button


Related Articles

What is Casper.Js?
CasperJS is a navigation scripting & testing utility for the PhantomJS (WebKit) and SlimerJS (Gecko) headless browsers, written in Javascript.

CasperJS allows you to build full navigation scenarios using high-level functions and a straight forward interface to accomplish all sizes of tasks.

CasperJS comes with a basic testing suite that allows you to run full featured tests without the overhead of a full browser. Output the tests to xunit for long term code health as well.

Capture data from web pages simply that don't contain APIs. Validate your production environment on a regular basis. Alternatively, use this to load your application with data.

Example Code:

var casper = require('casper').create();

casper.start('http://casperjs.org/', function() {
    this.echo(this.getTitle());
});

casper.thenOpen('http://phantomjs.org', function() {
    this.echo(this.getTitle());
});

Video for Casper.Js
https://www.youtube.com/watch?v=eOuUg6uFUqk

READ MORE

What is Mercury.Js?

Mercury is the creation of Raynos and available as open source under MIT license. It is fast growing in popularity and is getting lot of attention from the community of JavaScript Developers.

Mercury appears to be inspired by react and runs on the concept of virtual DOM rendering. It is modern JavaScript framework, fully modular and can be used to the extent you need.

Looking at the underlying concepts, compact size, modular approach, performance and popularity, Mercury makes its place in list of best 10 JavaScript frameworks of modern times

Benefits

  • Mercury leverages virtual-dom which uses an immutable vdom structure
  • Mercury comes with observ-struct which uses immutable data for your state atom
  • Mercury is truly modular, you can trivially swap out subsets of it for other modules
  • Mercury source code itself is maintainable, the modules it uses are all small, well tested and well documented. you should not be afraid to use mercury in production as it's easy to maintain & fix.
  • Mercury encourages zero dom manipulation in your application code. As far as your application is concerned elements do not exist. This means you don't need to reference DOM elements when rendering or when handling events

Mercury is a small glue layer that composes a set of modules that solves a subset of the frontend problem.

NPM Command

npm install mercury

READ MORE

What is Tern.Js?

Tern is a stand-alone code-analysis engine for JavaScript. It is intended to be used with a code editor plugin to enhance the editor's support for intelligent JavaScript editing. 

Features:

  • Autocompletion on variables and properties
  • Function argument hints
  • Querying the type of an expression
  • Finding the definition of something
  • Automatic refactoring
  • Tern is open-source (MIT license), written in JavaScript, and capable of running both on node.js and in the browser.

 Tern Supported Editors

  • Emacs
  • Vim
  • Sublime Text
  • Brackets
  • Light Table
  • Eclipse 
  • TextMate
  • SourceLair 
  • Chocolat 

For more read here - http://ternjs.net/doc/manual.html 

READ MORE

What is System.Js?

The JavaScript Package Manager (aka jspm) is a package manager that works on top of the SystemJS universal module loader. ... SystemJS is a module loader that can import modules at run time in any of the popular formats used today (CommonJS, UMD, AMD, ES6)

Features:

  • Loads any module format when running the ~15KB development build.
  • Loads ES modules compiled into the System.register module format for production with exact circular reference and binding support
  • Supports RequireJS-style map, paths, and bundles configuration.

Built with the ES Module Loader project, which is based on principles and APIs from the WhatWG Loader specification, modules in HTML and NodeJS.

Supports IE9+ provided a promises polyfill is available in the environment.

System.js however is a pretty good replacement for require.js. The config is robust, the bundling API is reasonable, and if you have dynamic loading scenarios, especially where you don't know the resources at bundling time, it's really a good client loader.

Node Command :

npm install systemjs

Video for System.Js Build 

https://www.youtube.com/watch?v=nQGhdoIMKaM​

READ MORE

What is Phantom.Js?

PhantomJS is a scripted, headless browser used for automating web page interaction. PhantomJS provides a JavaScript API enabling automated navigation, screenshots, user behavior and assertions making it a common tool used to run browser-based unit tests in a headless system like a continuous integration environment.

PhantomJS is a headless WebKit scriptable with a JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.

The above definition may be ambiguous, in simple terms, PhantomJS is a web browser without a graphical user interface.

Since PhantomJS is not usable when it comes to surfing the web, it has a whole set of features that developers love and use for many purposes.

Features

  • Screen capture
  • Page automation
  • Network monitoring
  • Testing
  • Multiplatform, available on major operating systems: Windows, Mac OS X, Linux, and other Unices.
  • Fast and native implementation of web standards: DOM, CSS, JavaScript, Canvas, and SVG. No emulation!
  • Pure headless (no X11) on Linux, ideal for continuous integration systems. Also runs on Amazon EC2, Heroku, and Iron.io.

Video for Phantom.Js
https://www.youtube.com/watch?v=6Y3ugEFU0uU

READ MORE

What is Create.Js?

Create.js is a comprehensive web editing interface for Content Management Systems. It is designed to provide a modern, fully browser-based HTML5 environment for managing content. Create can be adapted to work on almost any content management backend.

The user interface philosophy behind Create is simple: all content that you are allowed to change becomes editable, right there on the page you’re reading. Any modifications you make are retained in your browser and can be sent back to the CMS with a push of a button.

CreateJS is a suite of modular libraries and tools which work together to create interactive content on open web technologies via HTML5.

The libraries are designed to work completely independently, or mixed and matched.

CreateJS is suite of JavaScript libraries and tools for building rich, interactive experiences with HTML5. The CreateJS suite is divided into four libraries.

  1. EaselJS - Makes working with HTML5 canvas easy.
  2. TweenJS - For tweening HTML5 and JavaScript properties
  3. SoundJS - Lets you easily work with HTML5 audio
  4. PreloadJS - Lets you manage and coordinate loading of assets

Video for Getting Started With Create.Js

https://www.youtube.com/watch?v=OWHJa0jKJgo

READ MORE

What is Mithril.Js ?

Mithril is a new javascript MVC framework that aims to make application development more manageable than the “jQuery spaghetti” that is common in legacy systems, and is without the need for steep learning curves that one would encounter with big frameworks like Ember or Angular.

Mithril is a modern client-side Javascript framework for building Single Page Applications.It's small (< 8kb gzip), fast and provides routing and XHR utilities out of the box.

Mithril is used by companies like Vimeo and Nike, and open source platforms like Lichess.

Mithril supports browsers all the way back to IE9, no polyfills required.

The Mithril.js authors are onto something with their tiny (7KB gzipped), easy-to-learn JavaScript MVC library that was originally released in March of 2014 and now has 92 contributors on GitHub. The entire API is just 14 functions and the library is under a thousand lines of code. 

Mithril gives you hierarchical MVC components (just like React), URL routing, customizable data binding, and safe-by-default templates with intelligent DOM difference checking for high-performance rendering.

Video for Mithril.Js

https://www.youtube.com/watch?v=tNMiCr39Fx0​

READ MORE
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...