The codespace has noVNC installed, you can access the desktop by going to http://localhost:6080.
To start the demo game simply run perl bin/game.pl
On OSX you need install with homebrew and App::cpm:
brew install raylib
PKG_CONFIG_PATH="/opt/homebrew/opt/libffi/lib/pkgconfig" cpm install
On other systems the installation dance is left as a lemma for the reader. Alien::raylib currently will build an older version of Raylib so you need to use a system library, or a patched version of Alien::raylib.
- Install the latest Ubuntu distribution on WSL from the Microsoft Store. Currently it's Ubuntu 22.04.3 LTS.
- Update the OS:
sudo apt-get update
- Install necessary packages:
sudo apt install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libz-dev
sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev
- Install perlbrew:
curl -L https://install.perlbrew.pl | bash
- Update your PATH:
source ~/perl5/perlbrew/etc/bashrc
- Install perl 5.40.0:
perlbrew install 5.40.0
- Start using perl 5.40.0:
perlbrew switch 5.40.0
- Install cpanm using all the defaults:
cpan App::cpanminus
- Install updated raylib modules:
cpanm https://github.com/perigrin/Alien-raylib5.git
- From your HOME directory clone repo:
git clone https://github.com/perigrin/going-rogue-class.git
- cd to the repo root directory:
cd going-rogue-class
- install dependencies:
cpanm --installdeps .
- Comment out the "use local::lib qw(local);" line in bin/game.pl if it exists.
- Run the game. It should pop up an x11 window. If you see a green @ sign in the middle, you have won!
perl bin/game.pl
# Install perlbrew
curl -L https://install.perlbrew.pl | bash
source ~/perl5/perlbrew/etc/bashrc
# Initialize
perlbrew init
# See what is available
perlbrew available
# Install some Perls
perlbrew install 5.40.0
# Switch to perl 5.40.0
perlbrew switch 5.40.0
cpan App::cpanminus
# Install Alien::RayLib
sudo apt-get install -y libasound2-dev \
libxcursor-dev libxinerama-dev mesa-common-dev \
libx11-dev libxrandr-dev libxi-dev \
libgl1-mesa-dev libglu1-mesa-dev
git clone https://github.com/perigrin/Alien-raylib5
cd Alien-raylib5
cpanm Alien::raylib # To pull Alien raylib dependences
perl Makefile.PL
make install
# Game installatiom
git clone https://github.com/perigrin/going-rogue-class
cd going-rogue-class
cpanm Raylib::FFI
perl bin/game.pl