Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4698
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
//-----------------------------Boton Disparar--------------------- function botonDisparar(){ ctx.strokeStyle = "rgba(15, 96, 12, 0.6)"; ctx.lineWidth = 5; ctx.strokeRect(730, 320, 50, 50);//eje x, eje y, ancho y alto } function clickDisparar(){ //Añadimos un addEventListener al canvas, para reconocer el click canvas.addEventListener("click", //Una vez se haya clickado se activará la siguiente función function(e){ /*Las siguientes 2 líneas lo que hacen és saber en que parte del canvas se ha clickado. Si ha clickado dentro del cuadrado se activará mover(). La operación que utilizamos es restar la parte izquierda que sobra desdel canvas hasta el explorador (cancas.offsetLeft) con el click (e.clientY)*/ if(e.clientX-canvas.offsetLeft > 730 && e.clientX-canvas.offsetLeft < 780){ //Aqui lo mismo que en la anterior sólo que miramos alto y ancho del cuadrado if(e.clientY-canvas.offsetTop > 320 && e.clientY-canvas.offsetTop < 380){ //si ha clickado dentro del cuadro verde fire(); } } } ,false);} //-------------Botones Movimiento +-------------------------------- function botonArriba(){ ctx.strokeStyle = "rgba(15, 96, 12, 0.6)"; ctx.lineWidth = 5; ctx.strokeRect(70, 280, 50, 50);//eje x, eje y, ancho y alto } function botonAbajo(){ ctx.strokeStyle = "rgba(15, 96, 12, 0.6)"; ctx.lineWidth = 5; ctx.strokeRect(70, 340, 50, 50);//eje x, eje y, ancho y alto } function botonDerecha(){ ctx.strokeStyle = "rgba(15, 96, 12, 0.6)"; ctx.lineWidth = 5; ctx.strokeRect(130, 310, 50, 50);//eje x, eje y, ancho y alto } function botonIzquierda(){ ctx.strokeStyle = "rgba(15, 96, 12, 0.6)"; ctx.lineWidth = 5; ctx.strokeRect(10, 310, 50, 50);//eje x, eje y, ancho y alto } //Arriba ctx.strokeRect(70, 280, 50, 50); eje x, eje y, ancho y alto function clickArriba(){canvas.addEventListener("click",function(e){ if(e.clientX-canvas.offsetLeft > 70 //igual eje x && e.clientX-canvas.offsetLeft < 120){ //igualeje x + ancho if(e.clientY-canvas.offsetTop > 280 //igual eje y && e.clientY-canvas.offsetTop < 330){ //igualeje y + alto //movimiento a a la arriba nave.y -= 30; if(nave.y < 0){nave.y = 0;} } } } ,false);}