JSFiddle

  • DataGrid com Knockoutjs

    No-Library (pure JS), HTML, CSS, JavaScript

    // Class to represent a row in the seat reservations grid
    function CriaReserva(nome, reservaInicial) {
        var self = this;
        self.nome = nome ...
  • Pong com craftyjs

    Pong com craftyjs

    Crafty.init(600, 300);
       Crafty.background('rgb(127,127,127)');
       //Paddles
       Crafty.e("Paddle, 2D, DOM, Color, Multiway")
       .color('rgb ...
  • Intro to Crafty - Collision

    Fifth code demo slide from a crafty js presentation: https://github.com/ajacksified/Craftyjs-Presentation

    var width = 400,
        height = 300,
        points = 0;
    
    Crafty.init(width, height);
    
    Crafty.c("Box", {
        init: function() {
          this.addComponent("2D, Canvas ...
  • Crafty.js

    jQuery 1.9.1, HTML, CSS, JavaScript

    // Init Crafty:
    Crafty.init();
    Crafty.canvas.init();
    
    // green box
    Crafty.e("2D, Canvas, Color, green_box")
       .attr({x: 0, y: 0 ...
  • Crafty Game Engine

    jQuery 1.5.2, HTML, CSS, JavaScript

    /**
    * Elevator Action
    * Crafty JS
    */
    
    
    
    Crafty.init(50, 600, 400); //start the game with 50FPS and 600 x 400 stage
    
    Crafty ...