Public
Like
TetrisGame
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.
Viewing readonly version of main branch: v7View latest version
A simple browser-based game where you play as a dog who has stolen a phone from a robot. The goal is to run away from the bot for as long as possible.
- Use the arrow keys or WASD to move the dog around the screen
- Avoid the robot that's chasing you
- The longer you survive, the higher your score
- The robot gets faster over time, making the game progressively more challenging
- Simple, emoji-based graphics
- Increasing difficulty as the game progresses
- Score tracking based on survival time
- Game over screen with final score and restart option
- Responsive design that works on different screen sizes
- Built with HTML5 Canvas for rendering
- Pure JavaScript for game logic
- CSS for styling and UI elements
- Served via a TypeScript HTTP handler in Val Town
- No external dependencies except for Twind (for styling) and error catching
The game is implemented as a TypeScript HTTP handler that serves HTML content with embedded JavaScript and CSS. This approach ensures proper content type handling and avoids parsing errors that can occur when serving HTML files directly in Val Town.
Potential enhancements that could be added:
- Power-ups that temporarily slow down the bot
- Obstacles on the game field
- Multiple levels with different themes
- Sound effects and background music
- High score tracking