Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 2048 Game — BDFD

A complete 2048 game for Discord bots built with Bot Designer For Discord (BDFD) using Components V2.

Combine numbered tiles to reach 2048! Features a 4×4 board, multi-page leaderboard, dynamic colors, and 6 language versions.

Game BDFD Languages License


🌍 Available Languages

Language Folder Readme
🇬🇧 English English/ README.md
🇪🇸 Español Español/ LEEME.md
🇫🇷 Français Français/ LISEZMOI.md
🇩🇪 Deutsch Deutsch/ LIESMICH.md
🇮🇹 Italiano Italiano/ LEGGIMI.md
🇵🇹 Português Português/ LEIAME.md

🎯 What is this?

This is the classic 2048 puzzle game adapted for Discord. Players use movement buttons (⬆️ ⬇️ ⬅️ ➡️) to slide and merge numbered tiles on a 4×4 board. The goal is to create a tile showing 2048.

Key features

  • 🎮 4×4 board rendered with Components V2 buttons (16 cell buttons + 4 movement buttons + 2 control buttons)
  • 🏆 Multi-page leaderboard with top players, navigable with ⏮️ ◀️ ▶️ ⏭️ buttons
  • 🎨 Dynamic colors: cell buttons change color based on tile value; container changes color based on game state (blue = playing, green = won, red = lost)
  • 🔒 Owner-only gameplay: only the user who started the game can interact with it (ephemeral warnings for others)
  • 🛡️ Anti-stale gameID: prevents old game buttons from corrupting a new game
  • 🌍 6 language versions: English, Spanish, French, German, Italian, Portuguese
  • BDScript 2 with $try/$catch error handling

📋 Variables to create in BDFD

You must create 2 variables in your BDFD app (under Variables section):

# Name Default value
1 points_2048 0
2 game_2048 no value.

ℹ️ game_2048 is created as a Global variable, but in the code it is always used with a User ID, which automatically turns it into a global-user variable. This way you only have ONE user variable (points_2048).


📁 Repository Structure

Each language folder contains 4 files:

File Purpose
README / LEEME / LISEZMOI / etc. Setup instructions for BDFD
Main Command file The !2048 command code
Callback file The $onInteraction callback code (handles all button clicks + leaderboard navigation)
Leaderboard file The !leaderboard command code

📄 License

This project is licensed under the MIT License — see LICENSE for details.


🤝 Contributing

Found a bug or want to add a new language? Pull requests are welcome!

About

A complete 2048 game for Discord bots built with Bot Designer For Discord (BDFD) using Components V2. Includes 3 commands, multi-page leaderboard, dynamic colors, and 6 language versions (EN/ES/FR/DE/IT/PT).

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors