Skip to content

Dice game based on 'Developing Games on the Raspberry Pi: App Programming with Lua and LÖVE' by Seth Kenlon

License

Notifications You must be signed in to change notification settings

gustavobrossi/dice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice Game

This is a simple dice game built using Lua programming language and Love2D framework. In this game, you can roll a pair of dice against the computer and see who gets the higher roll.

Getting Started

To run the game, you need to have Love2D installed on your system. You can download Love2D from its official website.

Once Love2D is installed, you can clone this repository and run the game by navigating to the project directory in your terminal and executing the following command:

love .

Gameplay

  • Click anywhere on the game window to roll the dice.
  • After clicking, you'll see the outcome of your roll and the computer's roll.
  • The player with the higher roll wins the game.
  • You can cheat by right-clicking to force a win or left-clicking to force a loss.

Controls

  • Left-click: Roll the dice and play normally.
  • Right-click: Cheat by forcing a win against the computer.
  • Middle-click: Cheat by forcing a loss against the computer.

Credits

For more details, please refer to the CREDITS file

License

This project is licensed under the GNU General Public License (GPL) - see the LICENSE file for details.

About

Dice game based on 'Developing Games on the Raspberry Pi: App Programming with Lua and LÖVE' by Seth Kenlon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages