"use strict" var breite = 4; var hoehe = 4; var aktuellerLevel = 1; var klicks = 0; // Initializes the game PS.init = function( system, options ) { "use strict"; PS.gridSize( breite, hoehe ); PS.fade( PS.ALL, PS.ALL, 10 ); PS.statusText("Farbwechsel"); aktuellerLevel = 1; starteLevel(); }; function starteLevel() { for(var i=0; i= 0 && x < breite && y >= 0 && y < hoehe; } // Called when the mouse button is released over a bead, or when a touch is lifted off a bead PS.release = function( x, y, data, options ) { }; // Called when the mouse/touch enters a bead PS.enter = function( x, y, data, options ) { }; // Called when the mouse cursor/touch exits a bead PS.exit = function( x, y, data, options ) { }; // Called when the mouse cursor/touch exits the grid perimeter PS.exitGrid = function( options ) { }; // PS.keyDown ( key, shift, ctrl, options ) PS.keyDown = function( key, shift, ctrl, options ) { }; // Called when a key on the keyboard is released PS.keyUp = function( key, shift, ctrl, options ) { }; // Called when an input device event (other than mouse/touch/keyboard) is detected PS.input = function( sensors, options ) { };