Install Bullseye2D
Set up Bullseye2D and start building amazing 2D games with Dart.
Installation Guide
Install Dart SDK
Ensure you have the Dart SDK (version 3.7.3 or higher recommended) installed on your system. If not, download and install it from the official Dart website.
Get Dart SDKActivate Webdev
webdev
is a command-line tool provided by the Dart team to build and serve web applications, including games made with Bullseye2D.
dart pub global activate webdev
If you encounter any issues, refer to the official webdev documentation.
Activate Bullseye2D
The easiest way to get started is by activating Bullseye2D. This gives you access to the library core, examples, and development tools.
dart pub global activate bullseye2d
Create Your First Project
Bullseye2D includes a handy tool to quickly scaffold a new game project:
bullseye2d create my_awesome_game
This will create a new project folder named my_awesome_game
. Navigate into your new project:
cd ./my_awesome_game
Run Your Game
Inside your new project directory (e.g., my_awesome_game
), start the development server:
webdev serve
Open your web browser and navigate to http://localhost:8080 (or the address shown in your terminal) to see your game running!
Start Coding!
Congratulations! You're all set up. Open the web/main.dart
file in your project directory with your favorite code editor and begin crafting your game logic.
Happy game developing with Bullseye2D! 🎯