| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 5100 |
| Technical Name |
dd_bricks |
| License | AGPL-3 |
| Website | http://www.digitaldomus.it |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 5100 |
| Technical Name |
dd_bricks |
| License | AGPL-3 |
| Website | http://www.digitaldomus.it |
DD Bricks - Bricks Game for Odoo 16
Overview
DD Bricks is a custom Odoo 16 module that adds a falling bricks game to the main menu. The game features:
- Three difficulty levels: Easy, Medium, and Hard
- System-wide highscore table: Tracks top scores across all users
- Customizable themes: Administrators can configure custom icons for bricks
Features
Game Mechanics
- Classic gameplay with 7 standard Tetrominos (I, O, T, S, Z, J, L)
- Each Tetromino has a unique color and shape
- Line clearing with scoring based on number of lines cleared
- Increasing speed as the game progresses
- Game over detection when pieces stack to the top
Difficulty Levels
| Level | Speed | Description |
|---|---|---|
| Easy | Slow | Perfect for beginners, pieces fall slowly |
| Medium | Normal | Balanced gameplay for experienced players |
| Hard | Fast | Challenging gameplay with fast piece movement |
Highscore System
- System-wide highscore table
- Tracks top 10 scores
- Records player name, score, difficulty level, and date
- Persistent storage in the database
Customization
Administrators can customize the game appearance:
- Upload custom icon to be superimposed on bricks
- Modify logo on the main screen
Animated Smiley Character
The game features an animated smiley character that reacts to gameplay events in real-time. This provides an engaging and entertaining visual feedback system.
Idle Animations
When no significant game events are occurring, the smiley performs random idle animations, like whistling, checking phone, etc.
Facial Expressions
The smiley cycles through various facial expressions during idle states, like playful, dreamy, etc.
Technical Implementation
- Pure CSS animations using keyframes
- SVG-based character with animatable elements
- Inline SVG loading for internal element styling
- Automatic mood reset after timed durations
- Expression cycling every 2-4 seconds
- Idle animation changes every 8-12 seconds
Configuration
Access Rights
The module creates two user groups:
-
DD Bricks User (
group_dd_bricks_user)- Can access and play the game
- Can view highscores
- Cannot configure game settings
-
DD Bricks Administrator (
group_dd_bricks_admin)- All user permissions
- Can configure game themes
- Can manage game settings
Usage
Playing the Game
- Navigate to the Bricks menu item in the main menu
- Select your difficulty level (Easy, Medium, or Hard)
- Use the following controls:
- â / â: Move piece left/right
- â: Rotate piece
- â: Soft drop (move down faster)
- Space: Hard drop (instant drop)
- Clear lines to score points
- Try to achieve the highest score!
Viewing Highscores
The highscore table is displayed on the main game screen, showing:
- Player name
- Score
- Difficulty level
- Date achieved
License
This module is licensed under the AGPL-3.0 license.
Support
For issues or questions, please contact info@digitaldomus.it.
"
Please log in to comment on this module