FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
willscriv

willscriv

my-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
/
README.md
Code
/
README.md
Search
6/19/2025
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
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.