Play the Decorating Game online here!
This is an interactive web-based game where players can decorate a virtual room by arranging various pieces of furniture and decor, primarily comforters and pillows. The game offers a creative, open-ended experience without specific rules or win conditions.
- The game features 11 different images of room decorations, including comforters and pillows.
- Each decoration piece is positioned on the screen at a specific starting location.
- The game is set on a webpage where players can freely move the decoration pieces.
- Each decoration piece is wrapped in a
<div>
element with a unique ID (pic1, pic2, etc.). - Absolute positioning is used to place each element at a specific location on the screen.
- JavaScript is implemented to make the decoration pieces draggable.
- Event listeners are added for both mouse and touch interactions, ensuring compatibility with desktop and mobile devices.
- When a decoration piece is selected, the game tracks its starting position.
- As the player moves their cursor or finger, the piece's position is updated in real-time.
- Upon release, the decoration piece remains in its new position.
- Players can drag and drop different comforters, pillows, and other room decorations around the virtual space.
- There are no specific rules or win conditions - it's an open-ended, creative decoration experience.
- Players are encouraged to experiment with different layouts and combinations to create their ideal room design.
The game is designed to work seamlessly on both desktop computers and touch-enabled mobile devices.
This simple yet engaging structure allows players to express their creativity by personalizing a virtual room space, promoting imagination and design exploration in a casual gaming environment.
To run the game locally:
- Clone this repository
- Open the
index.html
file in a web browser
No additional setup or dependencies are required.
Contributions to improve the game are welcome. Please feel free to submit a pull request or open an issue to discuss potential changes/additions.
The code in this project is licensed under the MIT License. See the LICENSE file for more details.
Please note that the artwork, characters, and other creative assets in this game are not covered by the MIT License and are protected by copyright. If you are interested in using the artwork or assets, please contact me for permission at ashleysally00@gmail.com.