🎲 Ludo Player for VS Code
A seamless VS Code extension that lets you play Ludo directly in the sidebar without any distractions. Perfect for quick gaming breaks during coding sessions!
Features
- 🎯 Sidebar Integration: Game lives in the VS Code sidebar - always accessible, never in the way
- 🔍 Quick Access: Search "play ludo" in the command palette or click the game icon in the activity bar
- 🖥️ Seamless Experience: Native-feeling webview with VS Code theme integration
- 🎨 Clean Interface: Hidden browser UI elements for a distraction-free gaming experience
- ⚡ Fast Loading: Optimized loading with visual feedback
- 🔄 Persistent State: Game state is retained when the sidebar is collapsed or hidden
- ⌨️ Keyboard Friendly: Easy navigation and shortcuts
- 🎨 Theme Aware: Adapts to your VS Code theme (dark/light mode)
Usage
Method 1: Activity Bar
- Click the Game Icon: Look for the 🎲 icon in the VS Code activity bar (left sidebar)
- Start Playing: The Ludo game will open in the sidebar panel
Method 2: Command Palette
- Command Palette: Press
Cmd+Shift+P
(Mac) or Ctrl+Shift+P
(Windows/Linux)
- Search: Type "Play Ludo" or "play ludo"
- Start Playing: Select the command and the sidebar will open with the game
Method 3: Quick Focus
- The "Play Ludo" command will automatically focus the sidebar and refresh the game
- Perfect for quickly switching between coding and gaming
UI Design
The sidebar implementation provides:
- Compact Header: Shows game status and VS Code integration
- Responsive Design: Adapts to different sidebar widths
- VS Code Theme Integration: Uses VS Code colors and styling
- Optimized Layout: Perfect for smaller sidebar space
- Loading States: Smooth loading experience with VS Code-styled spinner
Requirements
- VS Code version 1.85.0 or higher
- Internet connection for game loading
- Modern browser engine (built into VS Code)
Installation
For Development/Testing:
- Clone or download this project
- Open the project folder in VS Code
- Press
F5
to launch a new Extension Development Host window
- In the new window, use
Cmd+Shift+P
and search for "Play Ludo"
For Production (when published):
- Open VS Code
- Go to Extensions (
Cmd+Shift+X
)
- Search for "Ludo Player"
- Install the extension
How It Works
This extension creates a seamless gaming experience by:
- Opening the Ludo King game from ludoking.com in a custom webview
- Hiding browser UI elements with custom CSS
- Providing a native-like gaming interface
- Maintaining game state across VS Code sessions
Development
To contribute or modify this extension:
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes during development
npm run watch
# Package for production
npm run package
Commands
Ludo: Play Ludo
- Opens the Ludo game in a new panel
Privacy & Security
- The extension only loads content from ludoking.com
- No user data is collected or stored by this extension
- All game data is handled by the ludoking.com website
- Secure Content Security Policy (CSP) implementation
Troubleshooting
Game not loading?
- Check your internet connection
- Ensure ludoking.com is accessible
- Try refreshing the panel
Panel appears blank?
- Wait a few seconds for the game to load
- Check VS Code developer tools for any errors
- Restart VS Code if issues persist
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Ludo King game by Gametion Technologies
- VS Code Extension development community
Extension Settings
Include if your extension adds any VS Code settings through the contributes.configuration
extension point.
For example:
This extension contributes the following settings:
myExtension.enable
: Enable/disable this extension.
myExtension.thing
: Set to blah
to do something.
Known Issues
Calling out known issues can help limit users opening duplicate issues against your extension.
Release Notes
Users appreciate release notes as you update your extension.
1.0.0
Initial release of ...
1.0.1
Fixed issue #.
1.1.0
Added features X, Y, and Z.
Following extension guidelines
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
Working with Markdown
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
- Split the editor (
Cmd+\
on macOS or Ctrl+\
on Windows and Linux).
- Toggle preview (
Shift+Cmd+V
on macOS or Shift+Ctrl+V
on Windows and Linux).
- Press
Ctrl+Space
(Windows, Linux, macOS) to see a list of Markdown snippets.
Enjoy!
Reference link