Play a quick browser based 4v4 sniper shooter with no install required
Study the source as an example of a zero build, vanilla JavaScript game built with Three.js
See a worked example of an Astro site combining static pages with server side API routes for a leaderboard
Learn how a full playable game can be generated from a single AI prompt
| rubenmarcus/csbrasil | alemtuzlak/kiira | biasia/gradient-spin | |
|---|---|---|---|
| Stars | 49 | 49 | 49 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | easy | moderate | easy |
| Complexity | 2/5 | 2/5 | 1/5 |
| Audience | general | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
The bundled voice/meme audio pack is not included in the repo due to unclear rights and must be fetched separately.
CS Brasil is a browser based first person shooter built with Three.js, styled after the classic sniper map from Counter-Strike 1.6. The setting is a fictional version of Brasilia, and the two teams are exaggerated, fictional archetypes standing in for Brazil's two big political camps, played as satire rather than as a serious statement, with no gore and no real people depicted. The entire game, including its code, was generated from a single prompt using an AI model called Kimi K3, and the original prompt used to create it is included in the repository. The project is split into two parts. The game itself is plain JavaScript plus a bundled copy of Three.js, requires no build step, and can be run by pointing any basic web server at its folder. Around that sits a small Astro powered website providing a landing page, a characters page, a how to play page, and a couple of server side API routes used for an online leaderboard, with the database access key kept on the server rather than exposed to the browser. To play, you move with WASD, aim with the mouse, crouch with Ctrl or C for steadier aim, and switch between a sniper rifle, a pistol, and a knife. Matches are four versus four with quick respawns, split into short rounds, and whichever team wins three rounds first takes the match. The sniper rifle kills in one hit, and getting several kills in a row triggers announcer style callouts similar to Unreal Tournament. Voice lines and sound effects are loaded from an audio folder that is deliberately left out of the public repository, since the meme audio clips used have unclear rights, so only the code is shared under the MIT license. A separate script can download the actual audio pack from a release if you want the full experience, and without it the game falls back to synthesized sounds. Note that the original Counter-Strike 1.6 sound files themselves belong to Valve and are not included, if you already own that game legally, you can drop in your own copy of its sound files. A leaderboard currently stores nicknames and stats in your browser, with a more permanent database backed version already built but not yet turned on.
A satirical browser sniper shooter styled after Counter-Strike 1.6, set in a fictional Brasilia, with the whole game generated by an AI model from one prompt.
Mainly TypeScript. The stack also includes TypeScript, JavaScript, Three.js.
The game code is free to use for any purpose, including commercial use, as long as you keep the copyright notice, the audio pack has separate, unclear rights and is not included.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly general.
This repo across BitVibe Labs
double-check against the repo, no cap.