jakesgordon / javascript-tetris Goto Github PK
View Code? Open in Web Editor NEWA simple javascript tetris game
Home Page: http://codeincomplete.com/posts/2011/10/10/javascript_tetris/
License: MIT License
A simple javascript tetris game
Home Page: http://codeincomplete.com/posts/2011/10/10/javascript_tetris/
License: MIT License
Move js to a new file called script.js
then in html:
How would you go about adding background images instead of plain colors to the blocks?
just the fact that you've obfuscated the code makes me wanna kms rn
there was no need to obfuscate it & make it10 times harder to understand.
reference link:tetris.com
I wan't to update the color of some of the pieces
Instead of pressing the down button repeatedly, a key (eg. "Down" Button) should be set so that the block will go all the way down.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.