-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Description
Use make build_depends && make mmatching && make run
CC=g++
INCLUDE_DIR = -I./
INCLUDE_DIR+= -I./depends/raylib/raylib/include
INCLUDE_DIR+= -I./depends/raygui/src
LIBRARY_DIR = -L./depends/raylib/raylib
LIBRARY_DIR+= -L./depends/raylib/raylib/external/glfw/src
LIBRARY_LINK = -lraylib -lglfw3 -ldl -pthread
BUILD_DEP = $(INCLUDE_DIR) $(LIBRARY_DIR) $(LIBRARY_LINK)
all: mmatching
clean:
-rm mmatching
mmatching:
$(CC) controller.c -o $@ $(BUILD_DEP)
run:
./mmatching;
build_depends:
mkdir -p depends/raygui
mkdir -p depends/raylib
git clone --depth 1 https://github.com/raysan5/raylib.git depends/raylib
git clone --depth 1 https://github.com/raysan5/raygui depends/raygui
cd depends/raylib && cmake . && make
patch-back:
mv controller.old.c controller.c
.SILENT: cleanP.S.:
Im not have gamepad :( If you don't, then you can apply a patch. Only move and zoom works. The rest I did not touch. Basic keyboard support -> https://gist.github.com/blogdron/2a14307a34112f8d605ee2198855b8af
wasd move key pad 1 zoom in key pad 2 zoom out You need to apply a patch for it. Maybe it will be useful to someone
seyoulee, flymin and Phonicavi
Metadata
Metadata
Assignees
Labels
No labels