FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
yawnxyz

yawnxyz

testproj3

Remix of yawnxyz/testproj2
Public
Like
testproj3
Home
Code
3
frontend
6
README.md
H
index.ts
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
index.ts
https://yawnxyz--ef9a16ad45d14b45be1c138a4b8c0c4d.web.val.run
README.md

Pong Game

A classic Pong game implementation for Val Town using HTML5 Canvas and TypeScript.

How to Play

  • Use the Up and Down arrow keys to move your paddle (left side)
  • Try to hit the ball past the computer's paddle (right side)
  • First player to reach 10 points wins

Project Structure

  • frontend/index.html - Main HTML file
  • frontend/index.ts - Game initialization
  • frontend/game.ts - Game logic and rendering
  • frontend/style.css - Basic styling

Implementation Details

This game uses:

  • HTML5 Canvas for rendering
  • TypeScript for game logic
  • Keyboard controls for player input
  • Simple AI for the computer opponent

View Source

This project was created on Val Town. View the source code to see how it works!

HTTP
  • index.ts
    yawnxyz--ef…4d.web.val.run
Code
frontendREADME.md
H
index.ts
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.