Conversion to D of the Allegro 5 example that tests al_mouse_set_xy()
.
-
Install a D toolchain.
- On Arch:
# pacman -S dlang
- On Debian/Ubuntu:
# apt-get install ldc dub
- On macOS, install Homebrew, then run
$ brew install ldc dub
.
- On Arch:
-
Install Allegro 5.2.
- On Arch:
# pacman -S pkgconf allegro
- On Debian/Ubuntu:
# apt-get install pkgconf liballegro5-dev
, this will not install any addons for audio, text, ..., those aren't needed for this minimal example. - On macOS:
brew install allegro
- On Arch:
-
Clone this exmousewarp repository. Enter its main directory.
-
Build and run with:
dub