This is a standalone web app (works offline) designed to help retro gaming enthusiasts organize random draws for championships. The app randomly selects consoles, games, and opponents, encouraging players to step out of their comfort zones.
Inspired by the chaotic fun of "Chance Time" from Mario Party, the app features a similar draw mechanic: a participant is chosen to spin the wheel and determine the console, number of players, opponents, and the game to be played.
🎥 Watch the video demo:
Enjoyed the idea? Had fun using it? Got suggestions for new features? Consider buying me a beer! 🍺 ^.^
This project started as a quick and simple idea for our retro gaming event. Everything — HTML, CSS, and JavaScript — is crammed into a single index.html
file. It was developed and tested in full screen mode in a 1080p resolution. Many variables and function names are in Portuguese. If you'd like to help improve or translate the code, feel free to submit a pull request. Thanks!
You'll need to edit the JSON lists at the end of the index.html
file to customize your championship.
Replace names and profile images in the participantes
array:
let evento = {
participantes: [
{ nome: "Blake Lively", profileImg: "blake.png", rodada1: 0, rodada2: 0, rodada3: 0, rodada4: 0, total: 0 },
{ nome: "Tom Hanks", profileImg: "tom.png", rodada1: 0, rodada2: 0, rodada3: 0, rodada4: 0, total: 0 },
// Add more players as needed
],
rodadaAtual: 1,
rodadas: new Array(4),
};
Each player needs:
nome
: Player name.profileImg
: Image path (recommended size: 195x177px).
Update the listaDeVideoGames
array with the consoles for your event:
const listaDeVideoGames = [
{ nome: "Dreamcast", imagem: "dreamcast.png" },
{ nome: "GameCube", imagem: "gamecube.png" },
// Add more consoles as needed
];
Define the games for each console in the jogos
array:
const jogos = [
{ console: "SNES", estacao: "x2", jogo: "Mario Kart", desc: "" },
{ console: "PS1", estacao: "x2", jogo: "Tekken 3", desc: "Best of 3 rounds." },
// Add more games as needed
];
console
: Must match a name in thelistaDeVideoGames
.estacao
: Number of players (x2
,x3
, orx4
).desc
: Optional game settings or additional rules.
- Download all files and configure the web app following the instructions above.
- Open
index.html
in your browser. Press F11 to enable full-screen setting (tested with 1080p). - Press Enter to perform the draw.
- After each match, record the results by clicking on the winner or marking a tie.
- Win = 3 points
- Tie = 1 point
- Rounds: The championship runs for 4 rounds (currently hardcoded).
- Final Four: Top 4 players advance to semifinals and finals:
- Semifinals: Win = 12 points, Loss = 6 points.
- Finals: Win = 24 points, Loss = 12 points.
At the end, the app shows an animated awards ceremony highlighting the final standings.
The code likely has some bugs. If the web app enters an inconsistent state, a tip is to clear the browser's local storage. If you're not sure how to do that, you can enable the reset button by setting the variable showReset
to true
.
Music and images belong to their respective owners and were sourced or edited from Google searches or the games being celebrated.
- Lib Slot Machine: https://github.com/josex2r/jQuery-SlotMachine
- CDN libs and framework: keydrown, jquery, bootstrap
- SNES Super Mario Kart font: https://fontstruct.com/fontstructions/show/692065/super_mario_kart
- SNES Super Mario Kart sprites and backgrounds: https://www.spriters-resource.com/snes/smariokart/
- Mario Party Chance Time Video: https://www.youtube.com/watch?v=TfyrCcCMVgo
- Soundtracks: https://downloads.khinsider.com/
- Celebs pictures: https://brightside.me/articles/what-15-celebrities-would-look-like-if-they-had-parts-in-a-new-avatar-movie-810976/
Development: odelot