gitmyhub

csbrasil

TypeScript ★ 68 updated 13d ago

FPS de navegador estilo CS 1.6 — arena de sniper satírica Petistas × Bolsonaristas numa Brasília fictícia. 100% Three.js + vanilla JS, zero build, gerado com Kimi K3.

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.

TypeScriptJavaScriptThree.jsAstroSupabasesetup: easycomplexity 2/5

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.

Where it fits