Welcome to Edtris, the Editable Tetris! This game has a text editor built into it! You are looking at an editor called "lite", which is written in Lua and has been ported to run inside the love2d game engine. Edtris is written in Fennel, which is a language in the Lisp family that compiles to Lua. To your right is a file called "state.fnl" - this contains a snapshot of all of the information that can change while the game is running. This includes the next piece (represented by the letters O, I, J, L, S, Z, and T), the current piece and its position in the well, the time left before the current piece drops down one level, and the current speed of automatic dropping. You can edit state.fnl and, with a simple keystroke, make your changes live in the game! Try the following: 1. Change the line reading :next-piece "O" (or instead of "O", whatever letter represents the next piece) to say :next-piece "I" 2. Hit Ctrl-S to save the file 3. Hit Alt-R to "reload" the file. If everything is alright, you will see a message pop up at the bottom of the screen saying "Hotswapping game.state". If an error message pops up instead, hit Ctrl-Z repeatedly to undo all of your changes and try again! 4. Hit F1 to go back to the game. Now your next piece will be a long "I"-beam! At any time, you can press "E" to come back to this editor and try new things. Feel free to experiment! * What happens if you make the well bigger? * What happens if you remove the walls of the well? * Can you draw a picture in the well? If you like, you can also run the game and the editor at the same time! If you press Ctrl-Shift-P, type "game" and press enter, a new tab will open with the game running inside. If you're feeling adventurous, you can edit the source code for this game while it's running, too! That's how I made it! Most of the interesting rules are defined in game/rules.fnl. You can find this file in the directory tree to the left, or press Ctrl-P, type "rules.fnl", and press enter to jump right to it. * Can you add a new piece to the game? * Can you make the up arrow make the piece levitate upwards, instead of rotating? This game was made for the Glorious Trainwrecks 15th Anniversary Klik Jam! https://www.glorioustrainwrecks.com/node/12219 Happy 15th birthday, Glorious Trainwrecks! -- Jeremy Penner