JavaScript Sand Tetris + Code

preview_player
Показать описание
My this week's practice project is a classic Tetris game with a twist! In this version, the blocks transform into tiny grains of sand and mimic the laws of gravity. Drawing inspiration from the captivating Sandtrix concept, I brought it to life using JavaScript. The challenge is to clear lines and score big, you need to make sure each layer of colorful sand touches both sides of the screen. As I worked on this project, I delved into Block Cellular Automaton to simulate gravity, gaining valuable insights.

#SandTetris #TetrisReplica #JavaScript #practiceproject #webdevelopment #frontend #p5js
Рекомендации по теме
Комментарии
Автор

Good work, i read your code on GitHub, and i'm wondering how you tranform the tetrominoes into sand, i don't see the function ? can you tell me the name of the function ?, Thank you

Therazor
Автор

Looks nice! It's not clear to me when a line is cleared. Is it when a row of one color is touching both sides?

seanmuniz
visit shbcf.ru