LÖVE is a great gaming framework! I created PiLove to make it easier to play Löve games on the Raspberry PI for everyone to share.
It's a Raspberry Pi bootable image. It is based on a Raspbian Jessie derivative OS .
PiLove has the latest version of Löve 0.10.0 in it, up and running. It has the minimal packages and no Xserver so it boots really fast.
The SDL2 library needs to be built with OpenGLES and RaspberryPI support. The RetroPie team have come up with a branch that gets this done.
For SDL 2.0.4 you need to add the option --host=arm-raspberry-linux-gnueabihf .
Then build the official Löve Linux sources on top. There are discussions on the Raspberry PI and Love2d forums.
The source code to create the PiLove image is available here .
Download PiLove v0.3 image, burn it to an SDCard of 2GB size or larger, and boot it up.
You should see Löve running on your display which looks like this.
Pressing the Escape key should bring you to the console login prompt. Type
sysop
for the login name, and
posys
for the password.
The Löve program is available here:
/usr/local/games/love-0.10.0/src/love
.
All versions are available in the downloads page. I also keep a more detailed changelog .
There are no games installed at the moment.. Oooooohhh... !
If you have the time to collect some, drop me an email so we can add them on the next release!
It should be easy, but have not tested fully. SDL2 Debian packages and Löve binaries for Raspbian Jessie, are available at the downloads page .
Install the SDL2 package with
sudo dpkg
, followed by unzipping the Löve binaries tarball that match the SDL2 build.
Please keep in mind that Löve has a special build method which hardcodes the paths during compilation.
This means you need to extract the binaries under the
/usr/local/games
directory, as root, or
rebuild everything yourself
:-)
This problem may appear when trying to run Love on top of an X server.
Export this variable and run your game again:
export SDL_VIDEODRIVER="rpi"
, or try to
unset DISPLAY
.
See this document for more SDL options .
Edit the file
/etc/network/interfaces
to set your ESSID / Passphrase pair, then
sudo systemctl reboot
.
Yes, it should go to the analog output. pulseaudio is automatically started during boot. If it stops working, try to start it with
pulseaudio --start
.
To send audio to HDMI edit /boot/config.txt and uncomment the line
hdmi_drive=2
.
Edit the file
/etc/rc.local
to launch the game of your choosing.
If you prefer to mute to boot log messages, edit
/boot/cmdline.txt
and add this flag
systemd.show_status=0
.
Games will show perfectly fine but there is no touch event support just yet. If you find the way to add this feature let us know !
Here is a list of some resources I found really useful:
Löve is released under the
ZLIB license
.
The Raspberry PI is a trademark of the
Raspberry PI foundation
.
PiLove is free and released under the
MIT License
.
Albert Casals - January 2016