FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
willscriv
willscrivmy-fourth-app
Public
Like
my-fourth-app
Home
Code
7
my-fourth-app
2
README.md
H
app.http.tsx
deno.json
script.js
style.css
tetreis-pieces.js
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
app.http.tsx
https://willscriv--dfe7a97c4cd811f08e4f76b3cceeab13.web.val.run
README.md

Tetris

This is the fourth app I have ever created. This will be a tetris web app. A classic Tetris game built with modern web technologies. Drop, rotate, and clear lines in this timeless puzzle game.

Features

  • Classic Tetris gameplay - All 7 standard tetrominoes (T, I, O, S, Z, J, L)
  • Smooth controls - Arrow keys for movement, spacebar for hard drop
  • Line clearing - Complete horizontal lines disappear with satisfying animation
  • Progressive difficulty - Game speed increases as you clear more lines
  • Score system - Points for placing pieces and clearing lines
  • Next piece preview - See what's coming next
  • Responsive design - Works on desktop and mobile devices

Controls

  • ← → Arrow keys: Move piece left/right
  • ↓ Down arrow: Soft drop (faster fall)
  • ↑ Up arrow: Rotate piece clockwise
  • Spacebar: Hard drop (instant placement)
  • P: Pause/unpause game

Objective

  • Drop tetrominoes to fill horizontal lines
  • Clear lines by completing them entirely
  • Survive as long as possible as speed increases
  • Scor epoints for piece placement and line clears
Scoring
  • Single line: 100 points
  • Double lines: 300 points
  • Triple lines: 500 points
  • Tetris (4 lines): 800 points
HTTP
  • app.http.tsx
    willscriv--df…13.web.val.run
Code
my-fourth-appREADME.md
H
app.http.tsx
deno.jsonscript.jsstyle.csstetreis-pieces.js
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesCLIAI agentsCode intelligenceSlack integrationsGTMPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.