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
- Host: GitHub
- URL: https://github.com/pedrofnseca/game-machine
- Owner: PedroFnseca
- Created: 2024-08-17T18:56:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-15T05:22:50.000Z (almost 2 years ago)
- Last Synced: 2025-04-28T11:11:23.248Z (about 1 year ago)
- Topics: allegro, allegro5, c, desktop-application, game, gcc
- Language: C
- Homepage:
- Size: 371 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 🏗️