Permalink
Browse files

Converted simplex noise to RequireJS class

  • Loading branch information...
1 parent a9ac47a commit 19c263e3ae3bb0698561e75f3f9e841ff0186829 @a727891 committed Feb 12, 2013
Showing with 643 additions and 2 deletions.
  1. +4 −1 Client/js/Renderer.js
  2. +617 −0 Client/js/SimplexNoise.js
  3. +20 −0 Client/js/mainTest.js
  4. +2 −1 Client/testfile.html
View
@@ -1,9 +1,12 @@
/**
* Renderer class
**/
-define([], function () {
+define(['SimplexNoise'], function (Simplex) {
var Renderer = Class.extend({
init:function () {
+ this.Canvas = document.getElementById('TestCanvas');
+ this.Context = this.Canvas.getContext('2d');
+ this.Simplex = new Simplex(this.Canvas);
},
Oops, something went wrong.

0 comments on commit 19c263e

Please sign in to comment.