An open API service indexing awesome lists of open source software.

https://github.com/pedrofnseca/game-machine

🎰 C game with a graphical interface
https://github.com/pedrofnseca/game-machine

allegro allegro5 c desktop-application game gcc

Last synced: 5 months ago
JSON representation

🎰 C game with a graphical interface

Awesome Lists containing this project

README

          

# Game Machine in C with [Allegro](https://liballeg.org/a5docs/5.2.9/)
### This is a simple game that I made in C using the Allegro library. The game is a slot machine game where you can bet money and try to win. The game has a simple graphical interface and uses sound effects to make it more fun.

## How to run 🚀
This reposity contains a script that will compile the game and run it. Chose the appropriate section for your operating system.

Linux 🐧

1. Clone the repository
```bash
git clone https://github.com/PedroFnseca/game-machine-C.git
```

2. Navigate to the project folder
```bash
cd game-machine-C
```

3. Setup Allegro on your computer by running the setup script
```bash
./scripts/setup.sh
```

4. Run the game
```bash
./scripts/run.sh
```

Windows 🪟

1. Install packages [Allegro](https://github.com/liballeg/allegro5/releases) and [MinGW](https://sourceforge.net/projects/mingw/)
> note: make sure to add the MinGW & Allegro bin folder to the PATH environment variable (ex. C:\MinGW\bin and C:\allegro\bin)

2. Clone the repository
```bash
git clone https://github.com/PedroFnseca/game-machine-C.git
```

3. Navigate to the project folder
```bash
cd game-machine-C
```

4. Run the batch file or click on it
```bash
./scripts/run.bat
```

## How to play
### 🏗️ Under construction 🏗️