blob: 493360b3c462c0f11d7e1f75583d89c425148960 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
██████╗ ██████╗ ███╗ ██╗ ██████╗
██╔══██╗██╔═══██╗████╗ ██║██╔════╝
██████╔╝██║ ██║██╔██╗ ██║██║ ███╗
██╔═══╝ ██║ ██║██║╚██╗██║██║ ██║
██║ ╚██████╔╝██║ ╚████║╚██████╔╝
╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝
===============================================================================
Description:
This is a pong clone made in C using raylib as the main back bone of the code.
My goal with this project is:
1. Support as many platforms as possible. At the current time these are:
- Linux
- NetBSD
- FreeBSD
- Windows
- OpenBSD
- Mac OSX (File loading issue???)
The following platforms are not support, with the reasons why they aren't yet:
- DragonflyBSD (Haven't gotten around to it yet.)
- Haiku (SDL2_Threads not working properly.)
- Hurd (I'll fuckin do it for the memes, mark my words...)
- OpenIndiana (Premake5 doesn't link properly.)
2. Make a fun, simple game.
3. Improve my coding skills. If you have any
criticism of my code, go ahead and leave an issue! Pointing out mistakes
is the only way I can learn.
===============================================================================
Build:
Unix/POSIX:
1. Install the following dependencies:
- Raylib - For Graphics Drawing
- GLFW3 - Raylib dependency
- SDL2 - SDL2_mixer dependency
- SDL2_mixer - For sound
- premake5 - To generate build files
- pkgconf (not pkg-config)
- Mesa
2. Run `premake5 check_deps` to make sure you have all dependencies.
3. Run `premake5 gmake2`
4. Run `make` or `gmake`
5. Run `premake5 install` to install it to the prefix.
Flatpak:
1. Run `premake5 gmake2`
2. Run `flatpak-builder --user --force-clean --install --repo=flatpak_repo build-dir net.iotib.Pong.yml`
3. Generate a distributable file using: `flatpak build-bundle flatpak_repo net.iotib.Pong.flatpak net.iotib.Pong <version>`
4. Once installed, you can run it using `flatpak run net.iotib.Pong`
Windows:
1. Install msys2 (https://www.msys2.org/)
2. Follow the instructions from the unix section.
Mac OSX:
NOTE: There's a potential file loading issue.
1. Install homebrew (https://brew.sh/)
2. Follow the instructions from the unix section.
===============================================================================
|