A simple multiplayer mini golf game made using Love2D and LuaSockets.
- Go to: https://love2d.org/
- Click Download LÖVE for Windows.
- Choose the 64-bit Installer (.exe).
- Run the installer and follow the steps.
- Go to: https://love2d.org/
- Click Download LÖVE for macOS.
- You’ll get a .zip file with a LÖVE app inside.
- Drag LÖVE.app to your Applications folder.
To use love in the terminal:
-
Find the LÖVE executable:
- Go to C:\Program Files\LOVE or wherever you installed it.
- Inside, locate love.exe.
-
Copy the folder path, e.g.:
C:\Program Files\LOVE
-
Add it to PATH:
- Press Win + S, search for “Environment Variables”, and open it.
- Click Environment Variables at the bottom.
- Under System variables, find Path and click Edit.
- Click New, then paste the folder path.
- Click OK on all windows to apply.
-
Test it:
- Open Command Prompt and type:
love --version
If it works, you should see the LÖVE version.
To run LÖVE from Terminal as love, you need to create a command-line alias:
- Open the terminal.
- Run the following:
sudo ln -s /Applications/love.app/Contents/MacOS/love/usr/local/bin/love
- Now test it using the command:
love --version
If it works, you should see the LÖVE version.
- Open your terminal
- Choose a destination for the repository
- Clone the repository:
git clone https://github.com/camblsoup/MiniatureGolf.git
Now that LÖVE is installed and accessible via the terminal:
- Open your terminal.
- Navigate to the folder where
/Gameis by doing:
cd path/to/the/repository/MiniatureGolf/Game
- Run the game by typing the following into the terminal
love .
It is important that you are in the /Game folder as the code relies on a valid path to the /Server folder
If you are the host, select "Host Game" and choose a port number. If you leave this blank, port 7777 will be automatically assigned to you.
When you click "Create game", please wait a moment for a game to start. There will likely be a firewall popup. Please accept this.
Navigate back to Love if your terminal opens up (Please do not close this terminal).
Once you host it, your local IP address will be displayed to share with your players.
Start the game once everyone has joined. Players will not be able to join once the server begins.
If you are joining your friend's game, select "Join Game" and input the local IP address and port exactly as displayed on your friend's screen.
Wait until the host starts the game. Once you leave the game, you will not be able to re-join.