Public
Like
pacman
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.
index.ts
https://alexmcroberts--9044785c3b1011f0abee9e149126039e.web.val.run
A Pac-Man inspired game where you control an owl flying around a maze, collecting pellets while avoiding ghosts.
- Control an owl character using arrow keys
- Collect pellets to increase your score
- Avoid colorful ghost enemies
- Simple maze-based gameplay
- Responsive controls and smooth animation
- Use arrow keys (↑↓←→) to move the owl
- Collect all the small pellets to increase your score
- Avoid the moving ghosts - they'll reset your position if they catch you!
- Try to get the highest score possible
frontend/index.html
- Main game interfacefrontend/game.js
- Core game logic and renderingfrontend/style.css
- Game stylingbackend/index.ts
- Simple HTTP server to serve the game
- Built with HTML5 Canvas for smooth 2D graphics
- Pure JavaScript game engine with collision detection
- Responsive design that works on desktop browsers
- Simple maze generation and pathfinding for enemies