Install Bullseye2D

Set up Bullseye2D and start building amazing 2D games with Dart.

Installation Guide

1

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 SDK
2

Activate 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.

3

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
4

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
5

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!

6

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! 🎯

What's Next?

Dive deeper into Bullseye2D and join our community.