Homage to Dope Wars in Javascript
Knock-off of the classic Dope Wars DOS/TI-83 game. Developed with TypeScript, Vue.js 3, Vite, and Pinia.
Check out the demo: https://wonderful-frangollo-ca35d1.netlify.app
Install and run it locally:
nvm use stable
npm install
npm run dev
Build for production with npm run build
This app uses Google Firebase (with anonymous login) and Firestore for storing high scores. To set it up, create a Firestore database, then update the .env
file with your config info.
For the db rules, use:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read: if request.auth != null
allow create: if request.auth != null &&
// must have exactly 2 fields with keys 'name', 'score'
request.resource.data.size() == 2 && request.resource.data.keys().hasAll(['name', 'score']) &&
// string field must be less than 101 characters
request.resource.data.name is string && request.resource.data.name.size() < 101 &&
// score field must be positive int
request.resource.data.score is int && request.resource.data.score > -1
}
}
}
- Original Dope Wars game
- DOS Font: The Ultimate Oldschool PC Font Pack
- ASCII art car based on art by Hayley Jane Wakenshaw
- "Oh yeah" SFX by Alshred
- Car SFX by AMrdjan
- Cha-ching SFX from Soundboard
- Boxing bell SFX by Benboncan
- Win Jingle by LittleRobotSoundFactory
- Spit SFX by Gidion