Simple implementation of polygons, you can create them in the init and draw them

This commit is contained in:
Karma Riuk
2023-03-14 21:46:36 +01:00
parent 7a5bf13575
commit 9fd87b7f29
3 changed files with 61 additions and 2 deletions

View File

@ -11,7 +11,7 @@ CXXFLAGS=-Wall -g -O2 $(PROFILING_CFLAGS) $(GTK_CFLAGS)
LIBS=$(GTK_LIBS) -lm
PROGS=balls
OBJS=balls.o c_index.o game.o gravity.o spaceship.o main.o
OBJS=balls.o c_index.o game.o gravity.o spaceship.o main.o polygons.o
# dependencies (gcc -MM *.cc)
balls.o: balls.cc game.h balls.h vec2d.h gravity.h
@ -24,7 +24,7 @@ stats.o: stats.cc
.PHONY: run
run: balls
./balls
./balls n=0
.PHONY: all
all: $(PROGS)