JSFiddle

  • Bitwise optimization test

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

    var a = Math.random()
    console.log(-10*a, -10*a>>0 , -10*a>>1 , -10*a>>2)
  • Roguelike in 560 characters

    Roguelike game with source code of 560 characters

    // roguelike in 560 chars
    // l:level, h:health, p:position, t:turns, g:health potion position, d:health modifier
    a ...
  • Roguelike in a Tweet

    Roguelike game engine with source code of 280 characters

    // roguelike engine in 280 chars
    // l:level, p:position, t:turns made, m:map string, f: paragraph object
    a=e ...
  • SoundFX

    Basic Sound Controller

    var SoundFX = (function() {
    	
      var soundContext = new (window.AudioContext || window.webkitAudioContext)();
    	var oscTypes = ["square", "sawtooth", "triangle", "sine"];
    	var volume = 1;
    	
    	// start ...
  • LensFlare #19 is the latest revision

    JS HTML5 Canvas Lens Flare effect

    "use strict"
    
    //Github: https://github.com/foumart/JS.LensFlare
    
    //Blog: http://www.foumartgames.com/blog/6-JavaScript-HTML5-Canvas-Lens-Flare.html
    
    /*
    	Lens Flare effect ...