luis bravo

Generation

text to sql syntaxFri, 21 Apr 2023

un juego de tertris en htpl

<html> <head> <title>Tetris</title> <style> body { margin: 0; } </style> </head> <body> <canvas id="tetris" width="200" height="400"></canvas> <script> const canvas = document.getElementById('tetris'); const context = canvas.getContext('2d'); context.scale(20,20); context.fillStyle = "#000"; context.fillRect(0,0,canvas.width,canvas.height); const matrix = [ [0,0,0], [1,1,1], [0,1,0] ]; function drawMatrix(matrix, offset){ matrix.forEach((row,y) => { row.forEach((value,x) => { if (value !== 0){ context.fillStyle = "red"; context.fill

Want to kickstart your project?Use the new AI Studio to create your code