Public
Like
Game
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
index.ts
https://zalwangojalia--3317cfec3fb811f08f0c76b3cceeab13.web.val.run
A multiplayer game for 4 players where players take turns being "sick" (the seeker) while others hide. Points are awarded for successful hiding and seeking.
- 4 players take turns being the "sick" player (seeker)
- Other 3 players are "hiders"
- Hiders get points for staying hidden
- Seeker gets points for finding hiders
- Game tracks scores and awards rewards based on performance
├── frontend/
│ ├── index.html # Main game interface
│ ├── index.tsx # React game logic
│ └── style.css # Game styling
├── backend/
│ ├── index.ts # API server
│ └── database/
│ ├── migrations.ts # Database setup
│ └── queries.ts # Game data queries
└── shared/
└── types.ts # Shared game types
- Real-time score tracking
- Player management
- Reward system based on performance
- Game session management
- Responsive design
The game runs as an HTTP val. Players can join, play rounds, and track their progress through the web interface.