Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gusruben/winball
https://github.com/gusruben/winball
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gusruben/winball
- Owner: gusruben
- Created: 2024-10-08T08:24:10.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-10-22T00:59:20.000Z (3 months ago)
- Last Synced: 2024-10-22T15:57:49.505Z (3 months ago)
- Language: C
- Size: 5.43 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Winball
**Winball** is a little pinball game made for MS-DOS using [Allegro](https://liballeg.org/). Winball was made for [Retrospect](https://retrospect.hackclub.com). The code is messy, because this was my first time using C, but all things considered I think it turned out good.
If you're reading this from Low Skies, the hours are wrong-- I spent about 12 hours on this during the last few days of Retrospect, but my Hackatime was broken for a good chunk of that.
## Running
Winball can be run on any DOS emulator. The easiest way to compile Winball with Allegro is likely [DJGPP](https://www.delorie.com/djgpp/), a C/C++ development system for DOS PCs.
1. Download DJGPP from https://www.delorie.com/djgpp/zip-picker.html - Check the box for 'Allegro' under toolkits. Select an HTTP mirror if you don't want to use FTP.
2. Download the listed zip files, and extract them all into the same folder. Clone Winball next to it.
3. Mount the parent folder in DOSBOX (or your DOS emulator of choice): `mount c C:\path\to\folder`
4. Set the environment variables:
- `set PATH=C:\DJGPP\BIN;%PATH%` (Note: this is the path from inside the DOS emulator, not from your main system)
- `set DJGPP=C:\DJGPP\DJGPP.ENV`
5. `cd` to the Winball folder, and compile it with `gcc -o winball.exe main.c -lalleg`
6. Run `winball.exe`!## Demo
> Video not working? Try watching it [here](https://github.com/user-attachments/assets/4fc3fa43-2a16-4f3e-a1d3-24e993795fd0).
https://github.com/user-attachments/assets/4fc3fa43-2a16-4f3e-a1d3-24e993795fd0