Sometimes it seems that to move blocks is fine / and the lines will be formed as they fall That happens when it runs into either the bottom of the grid or another, already-stuck tetromino in other words, when the tetromino cannot go any lower. The player can move the falling tetromino left and right across the grid, as well as rotate them, until the tetromino becomes stuck. The tetrominos have different shapes, but they are always made up of four pieces. They come down and I spin them around / till they fit in the ground like hand in glove Once the falling tetromino can no longer move, it becomes "solidified" or stuck, and another piece starts to drop from the top of the grid. I am the man who arranges the blocks / that descend upon me from up above At any given time, a single tetromino is "falling" or moving slowly, row-by-row, down the grid. One part we do need to do, though, is make sure everyone understands what Tetris is, and thereby what our scope is.įor those who might not be familiar with it, Tetris is a video game in which you move little four-part blocks (called tetrominos) around a grid comprised of cells.
Each of the subsequent parts in this series will handle their portions of the model. Unlike the other Blazor Games series, for our Tetris series we will do very little modeling up front. So come along as I show how we can make the first true video game we've ever made in Blazor WebAssembly! Let's build Tetris in Blazor! The Breakdown I spent the next three weeks working on a Blazor WebAssembly version of Tetris for my project, and I'm happy to say that I think it's pretty neat! It's not quite perfect, but it's playable and pretty darn fun, and that's good enough for me. Noon: oh cool, I can sneak in a quick game. You can probably guess where this is going.
My wife loves Tetris, and I've played quite a bit over the years. Four-part blocks slowly fall, the player rotates and moves them, and tries to make complete rows which then disappear. Over the next few weeks, while I was humming away, it struck me that Tetris is a relatively simple game.
I found myself humming it while walking the neighborhood and doing the dishes. I happened to walk by him as my children formed a tiny crowd, listening to the tinny music and watching their friend try to clear the board, row by multicolored row.īut that song! That song got stuck in my head for days.
I'll be honest: I didn't think much of the portable Tetris game when my kids's friend brought it to our house.